fix: properly load ubuntu font
This commit is contained in:
parent
3955e219e6
commit
245ad3a625
3 changed files with 68 additions and 68 deletions
|
|
@ -4,6 +4,8 @@ import Header from "../components/Header.astro";
|
|||
import Footer from "../components/Footer.astro";
|
||||
import { SITE_TITLE, SITE_DESCRIPTION } from "../consts";
|
||||
import DarkModeToggle from "../components/DarkModeToggle.astro";
|
||||
import "@fontsource/ubuntu";
|
||||
import "@fontsource/ubuntu/700.css";
|
||||
|
||||
interface Props {
|
||||
title?: string;
|
||||
|
|
@ -59,9 +61,7 @@ const { title = SITE_TITLE, description = SITE_DESCRIPTION } = Astro.props;
|
|||
|
||||
<div>
|
||||
<Header />
|
||||
<main
|
||||
class="w-full lg:w-[768px] max-w-[calc(100%-2em)] mx-auto p-2"
|
||||
>
|
||||
<main class="w-full lg:w-[768px] max-w-[calc(100%-2em)] mx-auto p-2">
|
||||
<slot />
|
||||
</main>
|
||||
</div>
|
||||
|
|
|
|||
|
|
@ -5,7 +5,7 @@
|
|||
*/
|
||||
|
||||
body {
|
||||
font-family: "Ubuntu";
|
||||
font-family: "Ubuntu", sans-serif;
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
text-align: left;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue