fix: use static template

This commit is contained in:
Dariusz Niemczyk 2024-01-12 18:56:08 +01:00
parent d1b9beca6d
commit ee2c93908a
No known key found for this signature in database
2 changed files with 17 additions and 7 deletions

View File

@ -1,9 +1,11 @@
{% load static %}
<!DOCTYPE html>
<style>
@font-face {
font-family: "Press Start 2P";
src: url("static/fonts/pressstart2p-regular-webfont.woff2") format("woff2"),
url("static/fonts/pressstart2p-regular-webfont.woff") format("woff");
src: url("{% static fonts/pressstart2p-regular-webfont.woff2 %}") format("woff2"),
url("{% fonts/pressstart2p-regular-webfont.woff %}") format("woff");
font-weight: normal;
font-style: normal;
}
@ -24,6 +26,7 @@
font-family: "Press Start 2P", cursive;
box-sizing: border-box;
}
#app {
padding: 1rem;
background: black;
@ -35,20 +38,25 @@
text-shadow: 0px 0px var(--glowSize);
font-size: 6rem;
flex-direction: column;
.txt {
font-size: 1.8rem;
}
}
@keyframes blink {
0% {
opacity: 0;
}
49% {
opacity: 0;
}
50% {
opacity: 1;
}
100% {
opacity: 1;
}
@ -61,8 +69,9 @@
}
</style>
<html lang="en">
<div id="app">
<div>500</div>
<div class="txt">Something went wrong...<span class="blink">_</span></div>
</div>
<div id="app">
<div>500</div>
<div class="txt">Something went wrong...<span class="blink">_</span></div>
</div>
</html>

View File

@ -1,3 +1,4 @@
{% if category and category.icon_id %}
<div class="containericon" title="{{ category.name }}"><img src="/static/icons/{{ category.icon_id }}.svg" /></div>
<div class="containericon" title="{{ category.name }}"><img src="{% static /icons/{{ category.icon_id }}.svg %}" />
</div>
{% endif %}