aboutsummaryrefslogtreecommitdiffstats
path: root/pysite/templates
diff options
context:
space:
mode:
Diffstat (limited to 'pysite/templates')
-rw-r--r--pysite/templates/base.html19
-rw-r--r--pysite/templates/navbar.html16
2 files changed, 35 insertions, 0 deletions
diff --git a/pysite/templates/base.html b/pysite/templates/base.html
new file mode 100644
index 00000000..f8a24962
--- /dev/null
+++ b/pysite/templates/base.html
@@ -0,0 +1,19 @@
+{# Base template, with a few basic style definitions. #}
+{% load static %}
+
+<!DOCTYPE html>
+<head>
+ <meta charset="utf-8">
+ <meta name="viewport" content="width=device-width, initial-scale=1, viewport-fit=cover">
+ <title>Python Discord | {% block page_title %}Website{% endblock %}</title>
+ <meta name="description" content="{% block page_description %}We're a large, friendly community focused around the Python programming language. Our community is open to those who wish to learn the language, as well as those looking to help others.{% endblock %}">
+ <link rel="stylesheet" href="{% static 'css/bulma.css' %}">
+ {% block head %}{% endblock %}
+</head>
+<body>
+ {% block body %}
+ {% endblock %}
+</body>
+
+
+<!-- vim: set ft=htmldjango: -->
diff --git a/pysite/templates/navbar.html b/pysite/templates/navbar.html
new file mode 100644
index 00000000..0efa51c2
--- /dev/null
+++ b/pysite/templates/navbar.html
@@ -0,0 +1,16 @@
+{% extends 'base.html' %}
+{% load static %}
+
+{% block head %}
+ <link rel="stylesheet" href="{% static 'css/navbar.css' %}">
+{% endblock %}
+{% block body %}
+ <nav class="navbar is-dark" role="navigation" aria-label="main navigation">
+ <div class="navbar-brand">
+ <img src="{% static 'assets/logo-banner.svg' %}" class="navbar-brand navbar-icon" alt="Python Discord">
+ </div>
+ </nav>
+ {{ block.super }}
+{% endblock %}
+
+<!-- vim: set ft=htmldjango: -->