Skip to content

Commit f49d400

Browse files
Merge pull request #726 from python-discord/frontpage-banners
2 parents da9a6eb + 1364a1a commit f49d400

File tree

5 files changed

+21
-1
lines changed

5 files changed

+21
-1
lines changed

pydis_site/static/css/home/index.css

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,11 +49,16 @@ h1 {
4949
margin: auto auto;
5050
}
5151

52-
#wave-hero-right img{
52+
#wave-hero-right img {
5353
border-radius: 10px;
5454
box-shadow: 0 1px 6px rgba(0,0,0,0.16), 0 1px 6px rgba(0,0,0,0.23);
5555
margin-top: 1em;
5656
text-align: right;
57+
transition: all 0.3s cubic-bezier(.25,.8,.25,1);
58+
}
59+
60+
#wave-hero-right img:hover {
61+
box-shadow: 0 14px 28px rgba(0,0,0,0.25), 0 10px 10px rgba(0,0,0,0.22);
5762
}
5863

5964
#wave-hero .wave {
397 KB
Loading
460 KB
Loading
422 KB
Loading

pydis_site/templates/home/index.html

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,13 @@
99
{% block content %}
1010
{% include "base/navbar.html" %}
1111

12+
<!-- Mobile-only Code Jam Banner -->
13+
<section id="mobile-notice" class="is-primary is-hidden-tablet">
14+
<a href="/events/code-jams/9/">
15+
<img src="{% static "images/events/summer_code_jam_2022/front_page_banners/qualifier_release.png" %}" alt="Summer Code Jam 2022">
16+
</a>
17+
</section>
18+
1219
<!-- Wave Hero -->
1320
<section id="wave-hero" class="section is-hidden-mobile">
1421

@@ -37,7 +44,15 @@
3744
></iframe>
3845
</div>
3946
</div>
47+
48+
{# Code Jam Banner #}
49+
<div id="wave-hero-right" class="column is-half">
50+
<a href="/events/code-jams/9/">
51+
<img src="{% static "images/events/summer_code_jam_2022/front_page_banners/qualifier_release.png" %}" alt="Summer Code Jam 2022">
52+
</a>
53+
</div>
4054
</div>
55+
4156
</div>
4257

4358
{# Animated wave elements #}

0 commit comments

Comments
 (0)