feat: Use minecraft font

This commit is contained in:
overflowerror 2024-08-03 17:19:24 +02:00
parent 90bd9ef5ca
commit 005dc8026b
8 changed files with 36 additions and 0 deletions

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

View file

@ -0,0 +1,2 @@
license: Public Domain
link: https://www.fontspace.com/minecraft-font-f28180

28
html/styles/fonts.css Normal file
View file

@ -0,0 +1,28 @@
@font-face {
font-family: 'Minecraft';
src: url('../fonts/minecraft-font/MinecraftRegular.otf') format('opentype');
font-weight: normal;
font-style: normal;
}
@font-face {
font-family: 'Minecraft';
src: url('../fonts/minecraft-font/MinecraftItalic.otf') format('opentype');
font-weight: normal;
font-style: italic;
}
@font-face {
font-family: 'Minecraft';
src: url('../fonts/minecraft-font/MinecraftBold.otf') format('opentype');
font-weight: bold;
font-style: normal;
}
@font-face {
font-family: 'Minecraft';
src: url('../fonts/minecraft-font/MinecraftBoldItalic.otf') format('opentype');
font-weight: bold;
font-style: italic;
}

View file

@ -1,3 +1,7 @@
* {
font-family: 'Minecraft', sans-serif;
}
body {
padding: 0;
margin: 0;
@ -43,6 +47,7 @@ h1 {
}
.middle .or, .middle .spinner {
color: white;
font-size: 5vw;
position: absolute;
top: 50%;

View file

@ -3,6 +3,7 @@
<head>
<title><?= $title ?? ""; ?></title>
<link rel="stylesheet" type="text/css" href="/styles/main.css" />
<link rel="stylesheet" type="text/css" href="/styles/fonts.css" />
<script type="application/javascript" src="/js/bundle.js"></script>
</head>
<body>