diff options
| author | 2018-02-07 10:13:36 +0000 | |
|---|---|---|
| committer | 2018-02-07 10:13:36 +0000 | |
| commit | 7bc5e8bee74bb0a8b879a38f69748d40558a5e0b (patch) | |
| tree | 2a12cbf3363fcf2989bccdf01b655f35c52f792f /templates | |
| parent | Merge pull request #1 from discord-python/feature/gunicorn-config (diff) | |
Static files; basic templates
Diffstat (limited to '')
| -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  |