Skip to content

Commit b47b119

Browse files
committed
fix(header): display existing YGit schema logo
1 parent 946b155 commit b47b119

1 file changed

Lines changed: 49 additions & 2 deletions

File tree

src/components/layout/Header/Header.astro

Lines changed: 49 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,58 @@ import TopNavigation from '@/components/layout/TopNavigation';
44
import { GITHUB_URL, SITE_NAME } from '@/constants/config';
55
import { ROUTES } from '@/constants/routes';
66
import { CodeXml, Menu, Search } from '@lucide/astro';
7+
import logoDark from '../../../../assets/logo/logo-dark.png';
78
---
9+
810
<header class="sticky top-0 z-50 h-[var(--header-height)] border-b border-border bg-background max-md:h-[var(--header-mobile-height)]">
911
<Container class="flex h-full items-center justify-between gap-4">
10-
<div class="flex items-center gap-2"><button id="mobile-menu-button" class="inline-flex min-h-11 min-w-11 items-center justify-center rounded-button border border-border bg-transparent text-content hover:bg-surface-hover lg:hidden" type="button" aria-label="Open navigation" aria-controls="mobile-drawer" aria-expanded="false"><Menu size={19} aria-hidden="true" /></button><a class="text-h3 font-bold text-text no-underline" href={ROUTES.home}>{SITE_NAME}</a></div>
12+
<div class="flex min-w-0 items-center gap-2">
13+
<button
14+
id="mobile-menu-button"
15+
class="inline-flex min-h-11 min-w-11 items-center justify-center rounded-button border border-border bg-transparent text-content hover:bg-surface-hover lg:hidden"
16+
type="button"
17+
aria-label="Open navigation"
18+
aria-controls="mobile-drawer"
19+
aria-expanded="false"
20+
>
21+
<Menu size={19} aria-hidden="true" />
22+
</button>
23+
24+
<a
25+
class="inline-flex min-h-11 min-w-0 items-center no-underline"
26+
href={ROUTES.home}
27+
aria-label={`${SITE_NAME} home`}
28+
>
29+
<img
30+
class="h-7 w-auto max-w-[150px] object-contain sm:h-8 sm:max-w-[190px]"
31+
src={logoDark.src}
32+
width={logoDark.width}
33+
height={logoDark.height}
34+
alt=""
35+
decoding="async"
36+
/>
37+
</a>
38+
</div>
39+
1140
<TopNavigation />
12-
<div class="flex items-center gap-2"><a class="hidden min-h-10 items-center gap-2 rounded-button border border-border px-3 text-md text-muted no-underline hover:bg-surface-hover hover:text-text md:flex" href={ROUTES.search}><Search size={16} aria-hidden="true" /><span>Search</span><kbd class="rounded border border-border px-1 font-mono text-xs">/</kbd></a><a class="inline-flex min-h-11 min-w-11 items-center justify-center rounded-button text-muted hover:bg-surface-hover hover:text-text lg:hidden" href={GITHUB_URL} aria-label="GitHub repository"><CodeXml size={19} aria-hidden="true" /></a></div>
41+
42+
<div class="flex items-center gap-2">
43+
<a
44+
class="hidden min-h-10 items-center gap-2 rounded-button border border-border px-3 text-md text-muted no-underline hover:bg-surface-hover hover:text-text md:flex"
45+
href={ROUTES.search}
46+
>
47+
<Search size={16} aria-hidden="true" />
48+
<span>Search</span>
49+
<kbd class="rounded border border-border px-1 font-mono text-xs">/</kbd>
50+
</a>
51+
52+
<a
53+
class="inline-flex min-h-11 min-w-11 items-center justify-center rounded-button text-muted hover:bg-surface-hover hover:text-text lg:hidden"
54+
href={GITHUB_URL}
55+
aria-label="GitHub repository"
56+
>
57+
<CodeXml size={19} aria-hidden="true" />
58+
</a>
59+
</div>
1360
</Container>
1461
</header>

0 commit comments

Comments
 (0)