diff options
author | 2019-04-18 14:22:27 +0200 | |
---|---|---|
committer | 2019-04-18 14:22:27 +0200 | |
commit | 5d6bf4e26ad46cb4750e932af5f50d31da82d31e (patch) | |
tree | b607bb132c88e9435c42f766a16732dfcef12043 | |
parent | The 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.
-rwxr-xr-x | docker/app/migrate_and_serve.sh | 5 | ||||
-rw-r--r-- | pydis_site/static/css/home/index.css | 17 | ||||
-rw-r--r-- | pydis_site/templates/base/navbar.html | 27 | ||||
-rw-r--r-- | pydis_site/templates/home/index.html | 2 |
4 files changed, 34 insertions, 17 deletions
diff --git a/docker/app/migrate_and_serve.sh b/docker/app/migrate_and_serve.sh index 2fe7841f..1d08da56 100755 --- a/docker/app/migrate_and_serve.sh +++ b/docker/app/migrate_and_serve.sh @@ -9,7 +9,12 @@ echo [i] Applying migrations. python manage.py migrate --verbosity 1 + echo [i] Collecting static files. python manage.py collectstatic --no-input --clear --verbosity 0 + +echo [i] Creating a superuser +echo "from django.contrib.auth import get_user_model; User = get_user_model(); User.objects.create_superuser('admin', 'admin', 'admin')" | python manage.py shell + echo [i] Starting server. python manage.py runserver 0.0.0.0:8000 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> 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> 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> 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> 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> 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> 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 |