feat(website): clickable header banner

This commit is contained in:
Elian Doran 2025-09-26 23:40:05 +03:00
parent 74c248bce2
commit 7990c60ce7
No known key found for this signature in database
2 changed files with 11 additions and 4 deletions

View File

@ -15,6 +15,14 @@ header .content-wrapper {
gap: 1em;
}
header a.banner {
display: flex;
align-items: center;
justify-items: center;
text-decoration: none;
color: inherit;
}
header > .content-wrapper,
section.hero-section > .content-wrapper {
min-width: 80vw;

View File

@ -8,12 +8,11 @@ export function Header() {
return (
<header>
<div class="content-wrapper">
<img src="./src/assets/icon-color.svg" width="300" height="300" />&nbsp;<span>Trilium Notes</span>
<a class="banner" href="/">
<img src="./src/assets/icon-color.svg" width="300" height="300" />&nbsp;<span>Trilium Notes</span>
</a>
<nav>
<a href="/" class={url == '/' && 'active'}>
Home
</a>
<a href="/404" class={url == '/404' && 'active'}>
404
</a>