From e19b5e12a1e5e626a5ecdb3d3e75b4781699c656 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ondr=CC=8Cej=20Ny=CC=81vlt?= Date: Mon, 8 Jan 2024 17:24:25 +0100 Subject: [PATCH] Fix fonts --- src/layouts/Layout.astro | 15 +++++++++++++++ src/pages/index.astro | 5 +++++ 2 files changed, 20 insertions(+) diff --git a/src/layouts/Layout.astro b/src/layouts/Layout.astro index 79baf3d..9ad9739 100644 --- a/src/layouts/Layout.astro +++ b/src/layouts/Layout.astro @@ -23,6 +23,13 @@ const { title } = Astro.props; type="font/ttf" crossorigin /> + @@ -98,6 +105,14 @@ const { title } = Astro.props; font-style: normal; } + @font-face { + font-family: "Ysabeau"; + src: url("/fonts/Ysabeau-Italic[wght].ttf"); + font-weight: 300 700; + font-display: swap; + font-style: italic; + } + html { box-sizing: border-box; } diff --git a/src/pages/index.astro b/src/pages/index.astro index 1605b74..1e9f2d9 100644 --- a/src/pages/index.astro +++ b/src/pages/index.astro @@ -49,6 +49,11 @@ import Layout from "../layouts/Layout.astro"; .intro { max-width: 40ch; } + + .intro em { + font-weight: bold; + } + .list { --bullet-offset: 1em; }