Skip to content

Commit

Permalink
Fix missing prize icons
Browse files Browse the repository at this point in the history
Fixes #1
Followed this workaround googlefonts/noto-emoji#438 (comment)
  • Loading branch information
eeeps committed Jun 24, 2024
1 parent ffd1e91 commit 69b8b3f
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 1 deletion.
1 change: 1 addition & 0 deletions .eleventy.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,5 @@ module.exports = function( eleventyConfig ) {
eleventyConfig.addPassthroughCopy( 'style.css' );
eleventyConfig.addPassthroughCopy( 'baabo.js' );
eleventyConfig.addPassthroughCopy( '_redirects' );
eleventyConfig.addPassthroughCopy( 'fonts' );
}
2 changes: 1 addition & 1 deletion _includes/base.11ty.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ return `
<!-- Google Fonts -->
<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=Bungee+Shade&family=Outfit:wght@500&family=Noto+Emoji&display=swap" rel="stylesheet">
<link href="https://fonts.googleapis.com/css2?family=Bungee+Shade&family=Outfit:wght@500&display=swap" rel="stylesheet">
<link rel="stylesheet" href="/style.css">
Expand Down
Binary file added fonts/NotoEmoji-Regular.woff2
Binary file not shown.
8 changes: 8 additions & 0 deletions style.css
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
@font-face {
font-family: "Noto Emoji";
src: url("/fonts/NotoEmoji-Regular.woff2") format("woff2");
font-weight: normal;
font-style: normal;
}

* {
box-sizing: border-box;
}
Expand Down Expand Up @@ -185,6 +192,7 @@ h4 {

.emoji {
font-family: 'Noto Emoji';
font-weight: 400;
font-size: 4rem;
display: block;
line-height: 1;
Expand Down

0 comments on commit 69b8b3f

Please sign in to comment.