chore(website): remove old website

This commit is contained in:
Elian Doran
2025-09-27 01:42:15 +03:00
parent 3cf0ec5740
commit a11797fe6e
77 changed files with 76 additions and 904 deletions

View File

@@ -0,0 +1,40 @@
import "./Header.css";
import { useLocation } from 'preact-iso';
import DownloadButton from './DownloadButton';
interface HeaderLink {
url: string;
text: string;
external?: boolean;
}
const HEADER_LINKS: HeaderLink[] = [
{ url: "https://docs.triliumnotes.org/", text: "Documentation", external: true },
{ url: "/donate", text: "Support us" }
]
export function Header() {
const { url } = useLocation();
return (
<header>
<div class="content-wrapper">
<a class="banner" href="/">
<img src="./src/assets/icon-color.svg" width="300" height="300" />&nbsp;<span>Trilium Notes</span>
</a>
<nav>
{HEADER_LINKS.map(link => (
<a
href={link.url}
className={url === link.url && 'active'}
target={link.external && "_blank"}
>{link.text}</a>
))}
</nav>
<DownloadButton />
</div>
</header>
);
}