diff options
Diffstat (limited to 'templates')
-rw-r--r-- | templates/base.html | 17 | ||||
-rw-r--r-- | templates/index.html | 19 | ||||
-rw-r--r-- | templates/navigation.html | 18 |
3 files changed, 44 insertions, 10 deletions
diff --git a/templates/base.html b/templates/base.html new file mode 100644 index 00000000..9e00af20 --- /dev/null +++ b/templates/base.html @@ -0,0 +1,17 @@ +<!DOCTYPE html> +<html lang="en"> +<head> + {% block head %} + <title>Python | {% block title %}{% endblock %}</title> + <meta charset="UTF-8"> + <meta name="viewport" content="width=device-width, initial-scale=1"> + <script defer src="https://use.fontawesome.com/releases/v5.0.6/js/all.js"></script> + <script defer src="https://cdnjs.cloudflare.com/ajax/libs/uikit/3.0.0-beta.39/js/uikit.min.js"></script> + <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/uikit/3.0.0-beta.39/css/uikit.min.css" /> + {% endblock %} +</head> +<body> +{% include "navigation.html" %} +{% block content %}{% endblock %} +</body> +</html>
\ No newline at end of file diff --git a/templates/index.html b/templates/index.html index 07bd4541..418347d2 100644 --- a/templates/index.html +++ b/templates/index.html @@ -1,10 +1,9 @@ -<!DOCTYPE html> -<html lang="en"> -<head> - <meta charset="UTF-8"> - <title>Python | Home</title> -</head> -<body> -<p>Coming soon:tm:</p> -</body> -</html>
\ No newline at end of file +{% extends "base.html" %} +{% block title %}Home{% endblock %} +{% block content %} + <div class="uk-container uk-section"> + <h1 class="uk-title uk-text-center"> + Coming soon :tm: + </h1> + </div> +{% endblock %}
\ No newline at end of file diff --git a/templates/navigation.html b/templates/navigation.html new file mode 100644 index 00000000..d1f1f363 --- /dev/null +++ b/templates/navigation.html @@ -0,0 +1,18 @@ +<div class="uk-container uk-container-expand uk-section-secondary"> + <nav data-uk-navbar class="uk-navbar-container uk-navbar-transparent"> + <div class="uk-navbar-left"> + <a href="/" class="uk-navbar-item uk-logo"> + <img src="/static/logos/logo_discord.png" style="height: 50px;"/> + </a> + </div> + <div class="uk-navbar-right"> + <ul class="uk-navbar-nav"> + {% if current_page == "index" %} + <li class="uk-active"><a href="/">Home</a></li> + {% else %} + <li><a href="/">Home</a></li> + {% endif %} + </ul> + </div> + </nav> +</div>
\ No newline at end of file |