Added inter font
This commit is contained in:
@@ -2,16 +2,28 @@
|
||||
@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 {
|
||||
|
||||
BIN
public/fonts/Inter-Italic.woff2
Normal file
BIN
public/fonts/Inter-Italic.woff2
Normal file
Binary file not shown.
BIN
public/fonts/Inter.woff2
Normal file
BIN
public/fonts/Inter.woff2
Normal file
Binary file not shown.
@@ -30,13 +30,7 @@ if (title) {
|
||||
<title>{ renderedTitle }</title>
|
||||
</head>
|
||||
|
||||
<body class="bg-stone-50">
|
||||
<div class="container transition-all">
|
||||
<div class="h-screen py-12 px-24 shadow-sm bg-white">
|
||||
<div class="mt-32">
|
||||
<slot />
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<body class="bg-slate-950 text-white">
|
||||
<slot />
|
||||
</body>
|
||||
</html>
|
||||
|
||||
@@ -1,11 +1,12 @@
|
||||
---
|
||||
import Heading from '../components/Heading.astro';
|
||||
import Layout from '../layouts/Layout.astro';
|
||||
---
|
||||
|
||||
<Layout>
|
||||
<main>
|
||||
<h1 class="text-4xl font-bold">
|
||||
<Heading tag="h1">
|
||||
Titre
|
||||
</h1>
|
||||
</Heading>
|
||||
</main>
|
||||
</Layout>
|
||||
|
||||
Reference in New Issue
Block a user