From 5d6bf4e26ad46cb4750e932af5f50d31da82d31e Mon Sep 17 00:00:00 2001 From: Leon Sandøy Date: Thu, 18 Apr 2019 14:22:27 +0200 Subject: 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. --- docker/app/migrate_and_serve.sh | 5 +++++ pydis_site/static/css/home/index.css | 17 +++++++++++++---- pydis_site/templates/base/navbar.html | 27 +++++++++++++++------------ 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 @@