From 6ede600cefd9ff249e0a087a96b8e0fde50a5657 Mon Sep 17 00:00:00 2001 From: Leon Sandøy Date: Thu, 11 Apr 2019 23:51:02 +0200 Subject: New landing page. Not quite done yet. This probably should've been more than one commit. --- pydis_site/static/css/home/index.css | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) (limited to 'pydis_site/static/css/home') diff --git a/pydis_site/static/css/home/index.css b/pydis_site/static/css/home/index.css index 2d744915..2ead1a12 100644 --- a/pydis_site/static/css/home/index.css +++ b/pydis_site/static/css/home/index.css @@ -16,3 +16,34 @@ height: 5rem; margin-right: 2rem; } + + +.navbar-item.is-large img { + max-height: 3rem; +} + +.navbar-item.is-fullsize { + padding:0; +} + +.navbar-item.is-fullsize img { + max-height: 4.75rem; +} + +.navbar-item.has-no-highlight:hover { + background-color: transparent; +} + +.navbar-item.has-left-margin-1 { + margin-left: 1rem; +} + +.navbar-item.has-left-margin-2 { + margin-left: 2rem; +} + +.navbar-item.has-left-margin-3 { + margin-left: 3rem; +} + + -- cgit v1.2.3 From 4c47d99f707d9d74c85fa6df204b26b600ec140f Mon Sep 17 00:00:00 2001 From: Leon Sandøy Date: Fri, 12 Apr 2019 08:58:32 +0200 Subject: responsive video container --- pydis_site/static/css/base/base.css | 25 ++++++++++++++----------- pydis_site/static/css/home/index.css | 18 ++++++++++++++++++ pydis_site/templates/home/index.html | 2 +- 3 files changed, 33 insertions(+), 12 deletions(-) (limited to 'pydis_site/static/css/home') diff --git a/pydis_site/static/css/base/base.css b/pydis_site/static/css/base/base.css index e9b40758..f9c557d5 100644 --- a/pydis_site/static/css/base/base.css +++ b/pydis_site/static/css/base/base.css @@ -1,3 +1,17 @@ +html { + overflow:auto; +} + +body.site { + display: flex; + min-height: 100vh; + flex-direction: column; +} + +main.site-content { + flex: 1; +} + #django-logo { padding-bottom: 2px; background: url(https://static.djangoproject.com/img/logos/django-logo-negative.png) no-repeat center; @@ -18,14 +32,3 @@ #pydis-text { font-weight: bold; } - - -body.site { - display: flex; - min-height: 100vh; - flex-direction: column; -} - -main.site-content { - flex: 1; -} diff --git a/pydis_site/static/css/home/index.css b/pydis_site/static/css/home/index.css index 2ead1a12..3516c6a5 100644 --- a/pydis_site/static/css/home/index.css +++ b/pydis_site/static/css/home/index.css @@ -46,4 +46,22 @@ margin-left: 3rem; } +.video-container { + position: relative; + padding-bottom: 56.25%; + padding-top: 30px; + height: 0; + overflow: hidden; +} +.video-container iframe, +.video-container object, +.video-container embed { + position: absolute; + top: 0; + left: 0; + width: 100%; + height: 100%; + max-width: 560px; + max-height: 315px; +} diff --git a/pydis_site/templates/home/index.html b/pydis_site/templates/home/index.html index 511e05e5..6eb444d2 100644 --- a/pydis_site/templates/home/index.html +++ b/pydis_site/templates/home/index.html @@ -29,7 +29,7 @@ we've got someone who can help you if you get stuck.
+ pythondiscord/site +
+ pythondiscord/seasonalbot +
- pythondiscord/site -
- pythondiscord/seasonalbot -