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 Footer from "../components/Footer.astro";
|
||||||
import { SITE_TITLE, SITE_DESCRIPTION } from "../consts";
|
import { SITE_TITLE, SITE_DESCRIPTION } from "../consts";
|
||||||
import DarkModeToggle from "../components/DarkModeToggle.astro";
|
import DarkModeToggle from "../components/DarkModeToggle.astro";
|
||||||
|
import "@fontsource/ubuntu";
|
||||||
|
import "@fontsource/ubuntu/700.css";
|
||||||
|
|
||||||
interface Props {
|
interface Props {
|
||||||
title?: string;
|
title?: string;
|
||||||
|
|
@ -59,9 +61,7 @@ const { title = SITE_TITLE, description = SITE_DESCRIPTION } = Astro.props;
|
||||||
|
|
||||||
<div>
|
<div>
|
||||||
<Header />
|
<Header />
|
||||||
<main
|
<main class="w-full lg:w-[768px] max-w-[calc(100%-2em)] mx-auto p-2">
|
||||||
class="w-full lg:w-[768px] max-w-[calc(100%-2em)] mx-auto p-2"
|
|
||||||
>
|
|
||||||
<slot />
|
<slot />
|
||||||
</main>
|
</main>
|
||||||
</div>
|
</div>
|
||||||
|
|
|
||||||
|
|
@ -5,7 +5,7 @@
|
||||||
*/
|
*/
|
||||||
|
|
||||||
body {
|
body {
|
||||||
font-family: "Ubuntu";
|
font-family: "Ubuntu", sans-serif;
|
||||||
margin: 0;
|
margin: 0;
|
||||||
padding: 0;
|
padding: 0;
|
||||||
text-align: left;
|
text-align: left;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue