now with self-hosted fonts
All checks were successful
/ build (push) Successful in 20s
/ deploy (push) Successful in 15s

This commit is contained in:
Louis Guidez reind33r 2024-02-08 23:07:59 +01:00
parent 7161e37cdb
commit 554ca60390
5 changed files with 38 additions and 2 deletions

View file

@ -2,6 +2,9 @@ module.exports = function(eleventyConfig) {
// Copying static assets // Copying static assets
eleventyConfig.addPassthroughCopy("src/style.css"); eleventyConfig.addPassthroughCopy("src/style.css");
eleventyConfig.addPassthroughCopy("src/photo.png"); eleventyConfig.addPassthroughCopy("src/photo.png");
eleventyConfig.addPassthroughCopy("src/advent_pro_500.woff2");
eleventyConfig.addPassthroughCopy("src/advent_pro_600.woff2");
eleventyConfig.addPassthroughCopy("src/updock_400.woff2");
// Configuring permalinks to be ~.html instead of ~/ // Configuring permalinks to be ~.html instead of ~/
eleventyConfig.addGlobalData("permalink", () => { eleventyConfig.addGlobalData("permalink", () => {

BIN
src/advent_pro_500.woff2 Normal file

Binary file not shown.

BIN
src/advent_pro_600.woff2 Normal file

Binary file not shown.

View file

@ -1,5 +1,38 @@
@import url('https://fonts.googleapis.com/css2?family=Updock&family=Advent+Pro:wght@500&display=swap'); /**
@import url('https://fonts.googleapis.com/css2?family=Updock&family=Advent+Pro:wght@600&display=swap'); * Fonts
*/
/* latin */
@font-face {
font-family: 'Advent Pro';
font-style: normal;
font-weight: 500;
font-stretch: 100%;
font-display: swap;
src: url("advent_pro_500.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: 'Advent Pro';
font-style: normal;
font-weight: 600;
font-stretch: 100%;
font-display: swap;
src: url("advent_pro_600.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: 'Updock';
font-style: normal;
font-weight: 400;
font-display: swap;
src: url("updock_400.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;
}
/** /**
* Styles * Styles

BIN
src/updock_400.woff2 Normal file

Binary file not shown.