aboutsummaryrefslogtreecommitdiffstats
path: root/pydis_site
diff options
context:
space:
mode:
authorGravatar ChrisJL <[email protected]>2022-06-19 19:28:10 +0100
committerGravatar GitHub <[email protected]>2022-06-19 19:28:10 +0100
commitf49d4001f3010b2b636b7562885676b247844d9f (patch)
tree05d1f6c76d84e0a604fa90dc638a03b012997256 /pydis_site
parentMerge pull request #724 from python-discord/events-css (diff)
parentAdd hover transition to match welcome video. (diff)
Merge pull request #726 from python-discord/frontpage-banners
Diffstat (limited to 'pydis_site')
-rw-r--r--pydis_site/static/css/home/index.css7
-rw-r--r--pydis_site/static/images/events/summer_code_jam_2022/front_page_banners/live_now.pngbin0 -> 406158 bytes
-rw-r--r--pydis_site/static/images/events/summer_code_jam_2022/front_page_banners/qualifier_release.pngbin0 -> 470631 bytes
-rw-r--r--pydis_site/static/images/events/summer_code_jam_2022/front_page_banners/sign_up.pngbin0 -> 432495 bytes
-rw-r--r--pydis_site/templates/home/index.html15
5 files changed, 21 insertions, 1 deletions
diff --git a/pydis_site/static/css/home/index.css b/pydis_site/static/css/home/index.css
index 7ec8af74..e1d70370 100644
--- a/pydis_site/static/css/home/index.css
+++ b/pydis_site/static/css/home/index.css
@@ -49,11 +49,16 @@ h1 {
margin: auto auto;
}
-#wave-hero-right img{
+#wave-hero-right img {
border-radius: 10px;
box-shadow: 0 1px 6px rgba(0,0,0,0.16), 0 1px 6px rgba(0,0,0,0.23);
margin-top: 1em;
text-align: right;
+ transition: all 0.3s cubic-bezier(.25,.8,.25,1);
+}
+
+#wave-hero-right img:hover {
+ box-shadow: 0 14px 28px rgba(0,0,0,0.25), 0 10px 10px rgba(0,0,0,0.22);
}
#wave-hero .wave {
diff --git a/pydis_site/static/images/events/summer_code_jam_2022/front_page_banners/live_now.png b/pydis_site/static/images/events/summer_code_jam_2022/front_page_banners/live_now.png
new file mode 100644
index 00000000..eb30bf7e
--- /dev/null
+++ b/pydis_site/static/images/events/summer_code_jam_2022/front_page_banners/live_now.png
Binary files differ
diff --git a/pydis_site/static/images/events/summer_code_jam_2022/front_page_banners/qualifier_release.png b/pydis_site/static/images/events/summer_code_jam_2022/front_page_banners/qualifier_release.png
new file mode 100644
index 00000000..1e45024b
--- /dev/null
+++ b/pydis_site/static/images/events/summer_code_jam_2022/front_page_banners/qualifier_release.png
Binary files differ
diff --git a/pydis_site/static/images/events/summer_code_jam_2022/front_page_banners/sign_up.png b/pydis_site/static/images/events/summer_code_jam_2022/front_page_banners/sign_up.png
new file mode 100644
index 00000000..f807418e
--- /dev/null
+++ b/pydis_site/static/images/events/summer_code_jam_2022/front_page_banners/sign_up.png
Binary files differ
diff --git a/pydis_site/templates/home/index.html b/pydis_site/templates/home/index.html
index c7350cac..95c8dd5f 100644
--- a/pydis_site/templates/home/index.html
+++ b/pydis_site/templates/home/index.html
@@ -9,6 +9,13 @@
{% block content %}
{% include "base/navbar.html" %}
+ <!-- Mobile-only Code Jam Banner -->
+ <section id="mobile-notice" class="is-primary is-hidden-tablet">
+ <a href="/events/code-jams/9/">
+ <img src="{% static "images/events/summer_code_jam_2022/front_page_banners/qualifier_release.png" %}" alt="Summer Code Jam 2022">
+ </a>
+ </section>
+
<!-- Wave Hero -->
<section id="wave-hero" class="section is-hidden-mobile">
@@ -37,7 +44,15 @@
></iframe>
</div>
</div>
+
+ {# Code Jam Banner #}
+ <div id="wave-hero-right" class="column is-half">
+ <a href="/events/code-jams/9/">
+ <img src="{% static "images/events/summer_code_jam_2022/front_page_banners/qualifier_release.png" %}" alt="Summer Code Jam 2022">
+ </a>
+ </div>
</div>
+
</div>
{# Animated wave elements #}