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

View File

@ -1,3 +1,4 @@
{% if category and category.icon_id %} {% 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 %} {% endif %}