Skip to content
This repository was archived by the owner on Dec 5, 2025. It is now read-only.

Commit bfb3409

Browse files
authored
Merge pull request #561 from kodadot/svg
Fixed logo to svg, added new loader
2 parents f375af4 + f6b8c65 commit bfb3409

File tree

11 files changed

+51
-24
lines changed

11 files changed

+51
-24
lines changed

public/img/icons/favicon-32x32.png

344 Bytes
Loading

public/koda300x300.svg

Lines changed: 12 additions & 0 deletions
Loading
-26.2 KB
Binary file not shown.

src/assets/infinity.svg

Lines changed: 6 additions & 0 deletions
Loading

src/assets/koda300x300.svg

Lines changed: 12 additions & 0 deletions
Loading

src/components/Navbar.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
<template #brand>
99
<b-navbar-item tag="router-link" :to="{ path: '/' }" class="logo">
1010
<img
11-
src="/kodadot_lgbt_320px.png"
11+
src="/koda300x300.svg"
1212
alt="First NFT market explorer on Kusama and Polkadot"
1313
class="logo__img"
1414
>

src/components/rmrk/Gallery/Gallery.vue

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -166,19 +166,10 @@ export default class Gallery extends Vue {
166166
sortBy: { blockNumber: -1 }
167167
};
168168
private first = 12;
169-
private placeholder = require('@/assets/kodadot_logo_v1_transparent_400px.png');
169+
private placeholder = require('@/assets/koda300x300.svg');
170170
private currentValue = 1;
171171
private total = 0;
172172
173-
// public mounted() {
174-
// window.onscroll = () => {
175-
// const bottomOfWindow = document.documentElement.scrollTop + window.innerHeight === document.documentElement.scrollHeight;
176-
// if (bottomOfWindow) {
177-
// console.log('!!!!!!!!!!!!!!!! [END]')
178-
// }
179-
// }
180-
// }
181-
182173
get isLoading() {
183174
return this.$apollo.queries.nfts.loading
184175
}

src/components/rmrk/Gallery/GalleryCard.vue

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,15 +4,15 @@
44
<div class="card-image" v-if="image">
55
<b-image
66
:src="image"
7-
:src-fallback="require('@/assets/kodadot_logo_v1_transparent_400px.png')"
7+
:src-fallback="placeholder"
88
alt="Simple image"
99
ratio="1by1"
1010
></b-image>
1111
</div>
1212

1313
<div v-else class="card-image">
1414
<b-image
15-
:src="require('@/assets/kodadot_logo_v1_transparent_400px.png')"
15+
:src="placeholder"
1616
alt="Simple image"
1717
ratio="1by1"
1818
></b-image>
@@ -51,7 +51,7 @@ export default class GalleryCard extends Vue {
5151
@Prop() public price!: string;
5252
@Prop() public metadata!: string;
5353
54-
private placeholder = require('@/assets/kodadot_logo_v1_transparent_400px.png');
54+
private placeholder = require('@/assets/koda300x300.svg');
5555
5656
async mounted() {
5757
if (this.metadata) {

src/components/rmrk/Gallery/GalleryItem.vue

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,12 +21,12 @@
2121
<div class="image-preview has-text-centered" :class="{fullscreen: isFullScreenView}">
2222
<b-image
2323
v-if="!isLoading && imageVisible && !meta.animation_url"
24-
:src="meta.image || require('@/assets/kodadot_logo_v1_transparent_400px.png')"
25-
:src-fallback="require('@/assets/kodadot_logo_v1_transparent_400px.png')"
24+
:src="meta.image || require('@/assets/koda300x300.svg')"
25+
:src-fallback="require('@/assets/koda300x300.svg')"
2626
alt="KodaDot NFT minted multimedia"
2727
ratio="1by1"
2828
></b-image>
29-
<img class="fullscreen-image" :src="meta.image || require('@/assets/kodadot_logo_v1_transparent_400px.png')" alt="KodaDot NFT minted multimedia">
29+
<img class="fullscreen-image" :src="meta.image || require('@/assets/koda300x300.svg')" alt="KodaDot NFT minted multimedia">
3030
<b-skeleton height="524px" size="is-large" :active="isLoading"></b-skeleton>
3131
<MediaResolver v-if="meta.animation_url" :class="{ withPicture: imageVisible }" :src="meta.animation_url" :mimeType="mimeType" />
3232
</div>

src/components/shared/Loader.vue

Lines changed: 12 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,10 @@
11
<template>
2-
<b-loading is-full-page v-model="isLoading" :can-cancel="true">
3-
<div class="loading-icon" ><span v-if="status" class="loading-text">{{ $t(status) }}</span></div>
4-
</b-loading>
2+
<b-loading is-full-page v-model="isLoading" :can-cancel="true">
3+
<figure>
4+
<img class="loading-icon" :src="placeholder" />
5+
<figcaption v-if="status" class="loading-text">{{ $t(status) }}</figcaption>
6+
</figure>
7+
</b-loading>
58
</template>
69

710
<script lang="ts" >
@@ -12,19 +15,22 @@ export default class Loader extends Vue {
1215
@Prop(String) public status!: string;
1316
@Prop(Boolean) public value!: boolean;
1417
18+
protected placeholder = require('@/assets/infinity.svg');
19+
1520
get isLoading() {
1621
return this.value;
1722
}
1823
1924
set isLoading(value: boolean) {
20-
this.$emit('input', value)
25+
this.$emit('input', value);
2126
}
2227
}
2328
</script>
2429

2530
<style scoped>
2631
.loading-text {
27-
position: relative;
28-
top: 4em;
32+
position: relative;
33+
max-width: 200px;
34+
text-align: center;
2935
}
3036
</style>

0 commit comments

Comments
 (0)