summaryrefslogtreecommitdiff
path: root/views/index.html
diff options
context:
space:
mode:
authorLinnnus <[email protected]>2024-03-20 18:35:50 +0100
committerLinnnus <[email protected]>2024-03-20 18:35:50 +0100
commit9637c9a833c5bc99f8944d41f95461af23048ddf (patch)
tree50e5f9e8f7c97a7ff6131c910f954c44476cbe1e /views/index.html
parente40ce7849e97a1e0295fb07072d95041b60ec72a (diff)
Add hero image to index
Diffstat (limited to 'views/index.html')
-rw-r--r--views/index.html14
1 files changed, 12 insertions, 2 deletions
diff --git a/views/index.html b/views/index.html
index e98e8e5..5c2c206 100644
--- a/views/index.html
+++ b/views/index.html
@@ -1,7 +1,17 @@
{% extends "base.html" %}
+{% block head %}
+ {# Since the background image is declared in the CSS, we can improve
+ loading times by instructing the browser to start loading the image
+ *before* it has even parsed the CSS. #}
+ <link rel="preload" as="image" href="/static/hero.jpeg">
+ <link rel="stylesheet" href="/static/index.css">
+{% endblock %}
+
{% block content %}
- <h1>Index</h1>
- <p class="important">Welcome to my awesome homepage.</p>
+ <div class="hero">
+ <h1 class="hero__title">Blind</h1>
+ <p class="hero__subtitle">An epic guild for epic gamers</p>
+ </div>
{% endblock %}