Skip to content

Commit e9cdc9b

Browse files
committed
logo
1 parent 9acec44 commit e9cdc9b

File tree

3 files changed

+6
-4
lines changed

3 files changed

+6
-4
lines changed

src/components/globals/Footer.astro

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,8 @@ import cdnify from "@/lib/cdnify";
1111
>
1212
<div class="flex w-full gap-2">
1313
<div class="flex flex-1 items-center gap-1.5 text-xl font-medium tracking-tight">
14-
<img src={cdnify([true, "/index/logo.png"])} class="h-7 w-7" />
14+
<img src={cdnify([true, "/index/logo-light.png"])} class="inline-block aspect-square w-7 dark:hidden" />
15+
<img src={cdnify([true, "/index/logo-dark.png"])} class="hidden aspect-square w-7 dark:inline-block" />
1516
Xenitane&trade;
1617
</div>
1718
<div class="flex flex-1 justify-end gap-3">

src/components/globals/Header.astro

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,8 @@ const links: [string, string][] = [
2323
>
2424
<div class="flex w-full items-center gap-4">
2525
<a class="flex gap-2" href="/">
26-
<img src={cdnify([true, "/index/logo.png"])} class="aspect-square h-9" alt="logo" />
26+
<img src={cdnify([true, "/index/logo-light.png"])} class="inline-block aspect-square w-9 dark:hidden" alt="logo" />
27+
<img src={cdnify([true, "/index/logo-dark.png"])} class="hidden aspect-square w-9 dark:inline-block" alt="logo" />
2728
<span class="text-3xl font-medium tracking-tighter">Xenitane&trade;</span>
2829
</a>
2930
<input type="checkbox" id="__is_nav_sidebar_open" class="hidden" />

src/layouts/BaseLayout.astro

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ type Props = {
88
99
export type BaseLayoutProps = Props;
1010
11-
const { title, description, keywords, image = cdnify([true, "/index/logo.png"]) } = Astro.props;
11+
const { title, description, keywords, image = cdnify([true, "/index/logo-light.png"]) } = Astro.props;
1212
import { SITE_TITLE } from "@/constants";
1313
1414
import "@fontsource/geist-sans/100.css";
@@ -37,7 +37,7 @@ import cn from "@/lib/cn";
3737
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />
3838
<meta http-equiv="content-language" content="en-us" />
3939
<meta name="robots" content="index, follow" />
40-
<link rel="icon" type="image/png" href={cdnify([true, "/index/logo.png"])} />
40+
<link rel="icon" type="image/png" href={cdnify([true, "/index/logo-light.png"])} />
4141
<meta name="generator" content={Astro.generator} />
4242

4343
<!-- sitemap -->

0 commit comments

Comments
 (0)