mirror of
https://github.com/ourongxing/newsnow.git
synced 2025-01-18 18:59:15 +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 (
|
||||
<>
|
||||
<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>
|
||||
|
@ -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>
|
||||
|
@ -9,6 +9,12 @@ body,
|
||||
padding: 0;
|
||||
}
|
||||
|
||||
@font-face {
|
||||
font-family: 'Baloo 2';
|
||||
src: url("/Baloo2-Bold.subset.ttf");
|
||||
}
|
||||
|
||||
|
||||
html.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: {
|
||||
"color-base": "color-neutral-800 dark:color-neutral-300",
|
||||
|
Loading…
x
Reference in New Issue
Block a user