Skip to content

Commit 1754cfa

Browse files
authored
Merge pull request #330 from kodadot/fix-koda-logo
2 parents 5cc5d59 + f16502c commit 1754cfa

File tree

6 files changed

+12
-6
lines changed

6 files changed

+12
-6
lines changed

ogi/components/OgImage/base.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<script setup lang="ts">
22
import type { CSSProperties } from 'vue'
3-
3+
import { KODA_LOGO_URL } from '@/utils/constants'
44
// inherited attrs can mess up the satori parser
55
defineOptions({
66
inheritAttrs: false,
@@ -32,7 +32,7 @@ const cover: ComputedRef<CSSProperties> = computed(() => {
3232
class="flex flex-col justify-end h-full w-full bg-slate-900/75 text-white p-10 text-2xl font-bold absolute inset-0"
3333
>
3434
<img
35-
src="https://raw.githubusercontent.com/kodadot/kodadot-presskit/main/pre-v4/png/KodalightV4.png"
35+
:src="KODA_LOGO_URL"
3636
alt="logo"
3737
class="absolute left-10 bottom-10 w-60"
3838
/>

ogi/components/OgImage/blog.vue

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
<script setup lang="ts">
22
import type { CSSProperties } from 'vue'
3+
import { KODA_LOGO_URL } from '@/utils/constants'
34
45
// inherited attrs can mess up the satori parser
56
defineOptions({
@@ -29,7 +30,7 @@ const cover: CSSProperties = {
2930
</div>
3031

3132
<img
32-
src="https://raw.githubusercontent.com/kodadot/kodadot-presskit/main/pre-v4/png/KodalightV4.png"
33+
:src="KODA_LOGO_URL"
3334
alt="logo"
3435
class="w-60 absolute right-20 bottom-20"
3536
/>

ogi/components/OgImage/collection.vue

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
<script setup lang="ts">
22
import { chainNames, type Prefix } from '@kodadot1/static';
33
import type { CSSProperties } from 'vue'
4+
import { KODA_LOGO_URL } from '@/utils/constants'
45
56
// inherited attrs can mess up the satori parser
67
defineOptions({
@@ -54,7 +55,7 @@ const networkName = chainNames[props.network as Prefix]
5455
</div>
5556

5657
<img
57-
src="https://raw.githubusercontent.com/kodadot/kodadot-presskit/main/pre-v4/png/KodalightV4.png"
58+
:src="KODA_LOGO_URL"
5859
alt="logo"
5960
class="absolute top-10 right-10 w-40"
6061
/>

ogi/components/OgImage/drops.vue

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
<script setup lang="ts">
22
import type { CSSProperties } from 'vue'
3+
import { KODA_LOGO_URL } from '@/utils/constants'
34
45
defineOptions({
56
inheritAttrs: false,
@@ -38,7 +39,7 @@ const cover: CSSProperties = {
3839
</div>
3940

4041
<img
41-
src="https://raw.githubusercontent.com/kodadot/kodadot-presskit/main/pre-v4/png/KodalightV4.png"
42+
:src="KODA_LOGO_URL"
4243
alt="logo"
4344
class="absolute top-10 right-10 w-40"
4445
/>

ogi/components/OgImage/gallery.vue

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
<script setup lang="ts">
22
import type { CSSProperties } from 'vue'
3+
import { KODA_LOGO_URL } from '@/utils/constants'
34
45
// inherited attrs can mess up the satori parser
56
defineOptions({
@@ -54,6 +55,6 @@ const parsePrice = computed(() =>
5455
</div>
5556
</div>
5657

57-
<img src="https://raw.githubusercontent.com/kodadot/kodadot-presskit/main/pre-v4/png/KodalightV4.png" alt="logo"
58+
<img :src="KODA_LOGO_URL" alt="logo"
5859
class="absolute top-20 right-20 w-40" />
5960
</template>

ogi/utils/constants.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
2+
export const KODA_LOGO_URL = 'https://raw.githubusercontent.com/kodadot/nft-gallery/main/public/koda_logo_fill.png';

0 commit comments

Comments
 (0)