feat: set brand font

This commit is contained in:
Ou 2024-10-13 02:09:36 +08:00
parent 303f7b136a
commit c49044e974
5 changed files with 21 additions and 8 deletions

Binary file not shown.

View File

@ -67,17 +67,17 @@ export function Header() {
return (
<>
<span className="flex">
<Link to="/" className="flex gap-2 text-2xl font-mono font-bold line-height-none">
<img src={logo} alt="logo" className="h-12" />
<span className="flex flex-col">
<span>News</span>
<span>
<Link to="/" className="flex gap-2 items-center">
<img src={logo} alt="logo" className="h-10" />
<span className="text-2xl font-brand line-height-none!">
<p>News</p>
<p className="mt--1">
<span className="color-red-6">N</span>
<span>ow</span>
</span>
</p>
</span>
</Link>
<a className="btn-pure text-sm ml-1">
<a className="btn-pure text-sm ml-1 font-mono">
{`v${Version}`}
</a>
</span>

View File

@ -50,7 +50,7 @@ function RootComponent() {
>
<Outlet />
</main>
<footer className="py-6 flex flex-col items-center justify-center text-sm text-neutral-500">
<footer className="py-6 flex flex-col items-center justify-center text-sm text-neutral-500 font-mono">
<a href={`${Homepage}/LICENCE`}>MIT LICENCE</a>
<span>
<span> © 2024 By </span>

View File

@ -9,6 +9,12 @@ body,
padding: 0;
}
@font-face {
font-family: 'Baloo 2';
src: url("/Baloo2-Bold.subset.ttf");
}
html.dark {
color-scheme: dark;
}

View File

@ -26,6 +26,13 @@ export default defineConfig({
}
}
}],
[
"font-brand",
{
"font-family": `"Baloo 2", ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas,
"Liberation Mono", "Courier New", monospace; `,
},
],
],
shortcuts: {
"color-base": "color-neutral-800 dark:color-neutral-300",