diff options
author | 2018-03-13 12:36:42 +0000 | |
---|---|---|
committer | 2018-03-13 12:36:42 +0000 | |
commit | 94a2d1a6d25303258b23a75c103244c8e34bd56b (patch) | |
tree | 066d766b0e344321e6df41aaacda1dfa6b0e51e2 | |
parent | Merge branch 'master' of github.com:discord-python/site (diff) |
Update info section with an index
-rw-r--r-- | pysite/views/main/info/index.py | 2 | ||||
-rw-r--r-- | templates/main/info/index.html | 41 | ||||
-rw-r--r-- | templates/main/navigation.html | 16 |
3 files changed, 50 insertions, 9 deletions
diff --git a/pysite/views/main/info/index.py b/pysite/views/main/info/index.py index 371a5353..4c44f01c 100644 --- a/pysite/views/main/info/index.py +++ b/pysite/views/main/info/index.py @@ -9,4 +9,4 @@ class IndexView(RouteView): name = "info" def get(self): - return redirect("/info/resources") + return self.render("main/info/index.html") diff --git a/templates/main/info/index.html b/templates/main/info/index.html new file mode 100644 index 00000000..fe779a3b --- /dev/null +++ b/templates/main/info/index.html @@ -0,0 +1,41 @@ +{% extends "main/base.html" %} +{% block title %}Information{% endblock %} +{% block content %} + <div class="uk-section"> + <div class="uk-container uk-container-small"> + <article class="uk-article"> + <h1 class="uk-article-title hover-title" id="top"> + Information + + <a href="#top" class="uk-text-primary" title="Permanent link to this header"> + <i class="fas fa-paragraph" data-fa-transform="shrink-8"></i> + </a> + </h1> + <p class="uk-article-meta"> + What you need, when you need it + </p> + + <p> + <strong>Getting Help</strong> + <a href="/info/help"><i class="fas fa-link"></i></a> + <br /> + <span class="uk-text-meta">How to ask for help - and how to interpret the responses</span> + </p> + + <p> + <strong>Resources</strong> + <a href="/info/resources"><i class="fas fa-link"></i></a> + <br /> + <span class="uk-text-meta">A page full of useful resources for learning and working with Python</span> + </p> + + <p> + <strong>Server Rules</strong> + <a href="/info/rules"><i class="fas fa-link"></i></a> + <br /> + <span class="uk-text-meta">Rules and infraction information for our server</span> + </p> + </article> + </div> + </div> +{% endblock %}
\ No newline at end of file diff --git a/templates/main/navigation.html b/templates/main/navigation.html index 3178895e..9cc2cb3d 100644 --- a/templates/main/navigation.html +++ b/templates/main/navigation.html @@ -31,9 +31,9 @@ <li class="uk-nav-divider uk-hidden@m"></li> {% if current_page.startswith("info") %} - <li class="uk-nav-header uk-active">Information</li> + <li class="uk-nav-header uk-active"><a href="/info">Information</a></li> {% else %} - <li class="uk-nav-header">Information</li> + <li class="uk-nav-header"><a href="/info">Information</a></li> {% endif %} {% if current_page == "info/help" %} @@ -42,18 +42,18 @@ <li><a href="/info/help">Getting Help</a></li> {% endif %} - {% if current_page == "info/rules" %} - <li class="uk-active"><a href="/info/rules">Server Rules</a></li> - {% else %} - <li><a href="/info/rules">Server Rules</a></li> - {% endif %} - {% if current_page == "info/resources" %} <li class="uk-active"><a href="/info/resources">Resources</a></li> {% else %} <li><a href="/info/resources">Resources</a></li> {% endif %} + {% if current_page == "info/rules" %} + <li class="uk-active"><a href="/info/rules">Server Rules</a></li> + {% else %} + <li><a href="/info/rules">Server Rules</a></li> + {% endif %} + <li class="uk-nav-divider"></li> </ul> </div> |