mirror of
https://github.com/ourongxing/newsnow.git
synced 2025-01-19 03:09:14 +08:00
feat: set brand font
This commit is contained in:
parent
303f7b136a
commit
c49044e974
BIN
public/Baloo2-Bold.subset.ttf
Normal file
BIN
public/Baloo2-Bold.subset.ttf
Normal file
Binary file not shown.
@ -67,17 +67,17 @@ export function Header() {
|
|||||||
return (
|
return (
|
||||||
<>
|
<>
|
||||||
<span className="flex">
|
<span className="flex">
|
||||||
<Link to="/" className="flex gap-2 text-2xl font-mono font-bold line-height-none">
|
<Link to="/" className="flex gap-2 items-center">
|
||||||
<img src={logo} alt="logo" className="h-12" />
|
<img src={logo} alt="logo" className="h-10" />
|
||||||
<span className="flex flex-col">
|
<span className="text-2xl font-brand line-height-none!">
|
||||||
<span>News</span>
|
<p>News</p>
|
||||||
<span>
|
<p className="mt--1">
|
||||||
<span className="color-red-6">N</span>
|
<span className="color-red-6">N</span>
|
||||||
<span>ow</span>
|
<span>ow</span>
|
||||||
</span>
|
</p>
|
||||||
</span>
|
</span>
|
||||||
</Link>
|
</Link>
|
||||||
<a className="btn-pure text-sm ml-1">
|
<a className="btn-pure text-sm ml-1 font-mono">
|
||||||
{`v${Version}`}
|
{`v${Version}`}
|
||||||
</a>
|
</a>
|
||||||
</span>
|
</span>
|
||||||
|
@ -50,7 +50,7 @@ function RootComponent() {
|
|||||||
>
|
>
|
||||||
<Outlet />
|
<Outlet />
|
||||||
</main>
|
</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>
|
<a href={`${Homepage}/LICENCE`}>MIT LICENCE</a>
|
||||||
<span>
|
<span>
|
||||||
<span> © 2024 By </span>
|
<span> © 2024 By </span>
|
||||||
|
@ -9,6 +9,12 @@ body,
|
|||||||
padding: 0;
|
padding: 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@font-face {
|
||||||
|
font-family: 'Baloo 2';
|
||||||
|
src: url("/Baloo2-Bold.subset.ttf");
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
html.dark {
|
html.dark {
|
||||||
color-scheme: dark;
|
color-scheme: dark;
|
||||||
}
|
}
|
||||||
|
@ -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: {
|
shortcuts: {
|
||||||
"color-base": "color-neutral-800 dark:color-neutral-300",
|
"color-base": "color-neutral-800 dark:color-neutral-300",
|
||||||
|
Loading…
x
Reference in New Issue
Block a user