aboutsummaryrefslogtreecommitdiffstats
path: root/pydis_site
diff options
context:
space:
mode:
authorGravatar Leon Sandøy <[email protected]>2019-04-18 14:22:27 +0200
committerGravatar Leon Sandøy <[email protected]>2019-04-18 14:22:27 +0200
commit5d6bf4e26ad46cb4750e932af5f50d31da82d31e (patch)
treeb607bb132c88e9435c42f766a16732dfcef12043 /pydis_site
parentThe GitHub API stuff is done now, including data caching. Just a couple of mi... (diff)
Adding a default admin panel user to migrate_and_serve, adding hrefs for all the links, fixing a bug with the banner highlighting, and making the sponsors hero a little bigger.
Diffstat (limited to 'pydis_site')
-rw-r--r--pydis_site/static/css/home/index.css17
-rw-r--r--pydis_site/templates/base/navbar.html27
-rw-r--r--pydis_site/templates/home/index.html2
3 files changed, 29 insertions, 17 deletions
diff --git a/pydis_site/static/css/home/index.css b/pydis_site/static/css/home/index.css
index d1d1c01e..9aad02e5 100644
--- a/pydis_site/static/css/home/index.css
+++ b/pydis_site/static/css/home/index.css
@@ -17,10 +17,6 @@
margin-right: 2rem;
}
-.navbar-item.is-large img {
- max-height: 3rem;
-}
-
.navbar-item.is-fullsize {
padding:0;
}
@@ -89,6 +85,19 @@ span.repo-language-dot.css {
margin-left: 1.2rem;
}
+#navbar-banner {
+ background-color: transparent;
+}
+
+#navbar-banner img {
+ max-height: 3rem;
+}
+
+#sponsors-hero {
+ padding-top: 2rem;
+ padding-bottom: 3rem;
+}
+
@media screen and (min-width: 1088px) {
.column.is-half, .column.is-half-tablet {
flex: none;
diff --git a/pydis_site/templates/base/navbar.html b/pydis_site/templates/base/navbar.html
index 842d29d5..6a7e683f 100644
--- a/pydis_site/templates/base/navbar.html
+++ b/pydis_site/templates/base/navbar.html
@@ -4,7 +4,7 @@
<nav class="navbar is-primary" role="navigation" aria-label="main navigation">
<div class="navbar-brand">
- <a class="navbar-item is-large has-left-margin-1 has-no-highlight" href="#">
+ <a id="navbar-banner" class="navbar-item has-left-margin-1" href="/">
<img src="{% static "images/navbar/pydis_banner_no_square.svg" %}" alt="Python Discord logo"/>
</a>
@@ -19,32 +19,32 @@
{# Content on the right side of the navbar #}
<div class="navbar-menu is-paddingless" id="navbar_menu">
<div class="navbar-end">
- {# Rules #}
- <a class="navbar-item" href="#">
- <span class="icon is-size-4 is-medium"><i class="fas fa-book"></i></span>
- <span>&nbsp;Rules</span>
+ {# GitHub #}
+ <a class="navbar-item" href="https://github.com/python-discord">
+ <span class="icon is-size-4 is-medium"><i class="fab fa-github"></i></span>
+ <span>&nbsp;GitHub</span>
</a>
{# Reddit #}
- <a class="navbar-item" href="#">
+ <a class="navbar-item" href="https://reddit.com/r/python">
<span class="icon is-size-4 is-medium"><i class="fab fa-reddit-alien"></i></span>
<span>&nbsp;Reddit</span>
</a>
{# YouTube #}
- <a class="navbar-item" href="#">
+ <a class="navbar-item" href="https://youtube.com/pythondiscord">
<span class="icon is-size-4 is-medium"><i class="fab fa-youtube"></i></span>
<span>&nbsp;YouTube</span>
</a>
{# Patreon #}
- <a class="navbar-item" href="#">
+ <a class="navbar-item" href="http://patreon.com/python_discord">
<span class="icon is-size-4 is-medium"><i class="fab fa-patreon"></i></span>
<span>&nbsp;Patreon</span>
</a>
{# RedBubble #}
- <a class="navbar-item" href="#">
+ <a class="navbar-item" href="https://www.redbubble.com/people/PythonDiscord/shop">
<span class="icon is-size-4 is-medium"><i class="fas fa-tshirt"></i></span>
<span>&nbsp;Merch</span>
</a>
@@ -56,24 +56,27 @@
</a>
<div class="navbar-dropdown">
<a class="navbar-item">
- Code Jams
+ Resources
</a>
<a class="navbar-item">
FAQ
</a>
<a class="navbar-item">
+ Rules
+ </a>
+ <a class="navbar-item">
Privacy
</a>
<hr class="navbar-divider">
<a class="navbar-item">
- Report an issue
+ Code Jams
</a>
</div>
</div>
</div>
{# Join us on Discord! #}
- <a class="navbar-item is-fullsize has-no-highlight has-left-margin-1" href="#">
+ <a class="navbar-item is-fullsize has-no-highlight has-left-margin-1" href="https://discord.gg/python">
<img class="is-hidden-touch" src="{% static "images/navbar/navbar_discordjoin.svg" %}" alt="Join us on Discord!"/>
</a>
</div>
diff --git a/pydis_site/templates/home/index.html b/pydis_site/templates/home/index.html
index 6bbf5444..6057ca18 100644
--- a/pydis_site/templates/home/index.html
+++ b/pydis_site/templates/home/index.html
@@ -79,7 +79,7 @@
<!-- Sponsors -->
<section class="section-sp hero is-light">
- <div class="hero-body">
+ <div id="sponsors-hero" class="hero-body">
<div class="container">
<h1 class="title is-6 has-text-grey">
Sponsors