Skip to content
This repository was archived by the owner on Dec 7, 2024. It is now read-only.
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Binary file added public/fonts/Montserrat.woff2
Binary file not shown.
38 changes: 38 additions & 0 deletions src/components/Fonts.astro
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
<style>
/* latin */
@font-face {
font-family: "Montserrat";
font-style: normal;
font-weight: 100;
src: url(https://telecom-etude.fr/fonts/Montserrat.woff2) format("woff2");
unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329,
U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* latin */
@font-face {
font-family: "Montserrat";
font-style: normal;
font-weight: 300;
src: url(https://telecom-etude.fr/fonts/Montserrat.woff2) format("woff2");
unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329,
U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* latin */
@font-face {
font-family: "Montserrat";
font-style: normal;
font-weight: 400;
src: url(https://telecom-etude.fr/fonts/Montserrat.woff2) format("woff2");
unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329,
U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* latin */
@font-face {
font-family: "Montserrat";
font-style: normal;
font-weight: 600;
src: url(https://telecom-etude.fr/fonts/Montserrat.woff2) format("woff2");
unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329,
U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
</style>
8 changes: 2 additions & 6 deletions src/layouts/BaseLayout.astro
Original file line number Diff line number Diff line change
Expand Up @@ -8,19 +8,15 @@ export interface Props {
const { title } = Astro.props;
import faviconLink from "../website-data/imgs/favicon.png";
import "../css/font-awesome.css";
import Fonts from "../components/Fonts.astro";
---

<!DOCTYPE html>
<html lang={i18next.language}>
<head>
<Header title={t(title)} desc={t("description")} />
<link rel="sitemap" href="/sitemap-index.xml" />
<link rel="preconnect" href="https://fonts.googleapis.com" />
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin />
<link
href="https://fonts.googleapis.com/css2?family=Montserrat:wght@100;300;400;600"
rel="stylesheet"
/>
<Fonts />
<link rel="icon" type="image/svg+xml" href={faviconLink} />
</head>
<body>
Expand Down