Skip to content

Commit

Permalink
Merge pull request #10483 from roiLeo/fix/console/warnings
Browse files Browse the repository at this point in the history
🔧 dev console warnings
  • Loading branch information
vikiival committed Jun 20, 2024
2 parents 8f6e455 + e41bec2 commit 4035bc0
Showing 1 changed file with 7 additions and 9 deletions.
16 changes: 7 additions & 9 deletions components/why-koda/HeroSection.vue
Original file line number Diff line number Diff line change
Expand Up @@ -2,19 +2,12 @@
<section class="border-b relative max-md:flex max-md:flex-col-reverse">
<div class="!container mx-auto max-md:px-4">
<div class="max-md:py-16 md:py-[96px] md:w-min lg:w-auto">
<h1 class="flex items-center gap-6 flex-wrap items-center">
<h1 class="flex flex-wrap items-center gap-6">
<span class="text-7xl font-bold text-center capitalize md:inline">
{{ $t('why') }}
</span>
<div class="h-[calc(100%-13px)] flex items-center">
<img
src="/Koda_logo.svg"
alt="koda logo"
class="h-full dark:hidden" />
<img
src="/Koda_logo_dark.svg"
alt="koda logo dark mode"
class="h-full hidden dark:block" />
<img :src="logoSrc" alt="koda logo" class="h-full" />
</div>
</h1>

Expand Down Expand Up @@ -75,6 +68,8 @@ defineProps<{
const NFTS_PER_STRIP = 7
const AMOUNT_OF_STRIPS = 2
const { isDarkMode } = useTheme()
const { data: collections } = await useAsyncData(
() =>
getDrops({
Expand Down Expand Up @@ -115,4 +110,7 @@ const { data: items } = await useAsyncData(
)
const nftsByStrip = computed(() => chunk(items?.value ?? [], NFTS_PER_STRIP))
const logoSrc = computed(
() => `/Koda_logo${isDarkMode.value ? '_dark' : ''}.svg`,
)
</script>

0 comments on commit 4035bc0

Please sign in to comment.