Skip to content

Commit

Permalink
image source fix
Browse files Browse the repository at this point in the history
  • Loading branch information
prokawsar committed Oct 17, 2024
1 parent afca219 commit 5aa951e
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 8 deletions.
2 changes: 1 addition & 1 deletion src/lib/components/layouts/Footer.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
<div class="mx-auto flex w-full max-w-7xl flex-row">
<div class="flex flex-1 flex-col gap-5">
<div>
<img src={FooterLogo} class="h-10" alt="footer logo" />
<img src={base + FooterLogo} class="h-10" alt="footer logo" />
</div>
<div class="grid grid-cols-2 flex-row gap-3 lg:flex">
{#each communityList as community}
Expand Down
2 changes: 1 addition & 1 deletion src/lib/components/layouts/Header.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
<a href="{base}/" aria-label={config.headerTitle}>
<div class="flex items-center justify-between">
<div class="mr-3">
<img src={HeaderLogo} alt="Logo" class="h-10 w-auto" />
<img src={base + HeaderLogo} alt="Logo" class="h-10 w-auto" />
</div>
</div>
</a>
Expand Down
8 changes: 4 additions & 4 deletions src/lib/components/sections/Hero.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -44,8 +44,8 @@
<div class="relative flex w-full flex-row items-center justify-between gap-1 py-10 md:mb-10">
<!-- BG Images -->
<div class="flex-1">
<img class="hidden md:block xl:max-w-[60%]" src={leftImg} alt="left" />
<img class="md:hidden" src={mobLeftImg} alt="left" />
<img class="hidden md:block xl:max-w-[60%]" src={base + leftImg} alt="left" />
<img class="md:hidden" src={base + mobLeftImg} alt="left" />
</div>

<!-- Center part -->
Expand Down Expand Up @@ -105,8 +105,8 @@

<!-- BG Images -->
<div class="flex flex-1 justify-end">
<img class="hidden md:block xl:max-w-[50%]" src={rightImg} alt="right" />
<img class="md:hidden" src={mobRightImg} alt="right" />
<img class="hidden md:block xl:max-w-[50%]" src={base + rightImg} alt="right" />
<img class="md:hidden" src={base + mobRightImg} alt="right" />
</div>
</div>

Expand Down
2 changes: 0 additions & 2 deletions svelte.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,6 @@ const config = {
// handleHttpError: 'warn'
// }
},
// Consult https://kit.svelte.dev/docs/integrations#preprocessors
// for more information about preprocessors
preprocess: [mdsvex(mdsvexConfig), vitePreprocess()]
}

Expand Down

0 comments on commit 5aa951e

Please sign in to comment.