diff --git a/assets/css/main.css b/assets/css/main.css index 2b7548e..1d6192c 100644 --- a/assets/css/main.css +++ b/assets/css/main.css @@ -2,20 +2,32 @@ @tailwind components; @tailwind utilities; -body { - font-family: - 'Public Sans', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif; - font-weight: 300; +@font-face { + font-family: "Inter"; + src: url("/fonts/Inter.woff2") format("woff2 supports variations"), + url("/fonts/Inter.woff2") format("woff2-variations"); + font-weight: 400 700; + font-style: normal; + font-display: swap; } -@layer components { - .h-screen-n { - @apply min-h-screen pt-16 - } +@font-face { + font-family: "Inter"; + src: url("/fonts/Inter-Italic.woff2") format("woff2 supports variations"), + url("/fonts/Inter-Italic.woff2") format("woff2-variations"); + font-weight: 400 700; + font-style: italic; + font-display: swap; +} + +body { + font-family: + "Inter", system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif; + font-weight: 300; } @layer utilities { .flow > * + * { margin-top: .5em; } -} \ No newline at end of file +} diff --git a/public/fonts/Inter-Italic.woff2 b/public/fonts/Inter-Italic.woff2 new file mode 100644 index 0000000..a9783a3 Binary files /dev/null and b/public/fonts/Inter-Italic.woff2 differ diff --git a/public/fonts/Inter.woff2 b/public/fonts/Inter.woff2 new file mode 100644 index 0000000..b61bb0d Binary files /dev/null and b/public/fonts/Inter.woff2 differ diff --git a/src/layouts/Layout.astro b/src/layouts/Layout.astro index 9750cfa..2b57596 100644 --- a/src/layouts/Layout.astro +++ b/src/layouts/Layout.astro @@ -30,13 +30,7 @@ if (title) { { renderedTitle } - -
-
-
- -
-
-
+ + diff --git a/src/pages/index.astro b/src/pages/index.astro index b379006..8de1805 100644 --- a/src/pages/index.astro +++ b/src/pages/index.astro @@ -1,11 +1,12 @@ --- +import Heading from '../components/Heading.astro'; import Layout from '../layouts/Layout.astro'; ---
-

+ Titre -

+