-
Notifications
You must be signed in to change notification settings - Fork 153
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #11515 from MozillaFoundation/feature/2708-hero
MozFest - 2708 Hero
- Loading branch information
Showing
5 changed files
with
45 additions
and
15 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
20 changes: 20 additions & 0 deletions
20
network-api/networkapi/mozfest/templates/mozfest/mozfest_landing_page.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
{% extends "./mozfest-base.html" %} | ||
{% load wagtailcore_tags mofo_common %} | ||
|
||
{% block page_title %} | ||
{% environment_prefix %} | ||
{{ page.title }} | ||
{% endblock page_title %} | ||
|
||
{% block mozfest_body_id %}landing-page{% endblock mozfest_body_id %} | ||
{% block bodyclass %}mozfest{% endblock bodyclass %} | ||
|
||
{% block hero_guts %} | ||
{% include "partials/primary_hero.html" with page=page %} | ||
{% endblock hero_guts %} | ||
|
||
{% block bootstrap_width %}col-lg-12{% endblock bootstrap_width %} | ||
|
||
{% block footer_block %} | ||
{% include "partials/mozfest_footer.html" %} | ||
{% endblock footer_block %} |
19 changes: 19 additions & 0 deletions
19
network-api/networkapi/mozfest/templates/partials/primary_hero.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
{% load wagtailimages_tags %} | ||
|
||
{% image page.hero_image fill-1500x620 as hero_image %} | ||
<div class="tw-relative tw-dark tw-w-full tw-h-[470px] large:tw-h-[620px] tw-bg-center tw-bg-cover" style="background-image:url('{{ hero_image.url }}')"> | ||
<div class="tw-bg-gradient-to-t tw-from-black tw-via-black tw-via-30% tw-to-festival-purple-200 tw-inset-0 tw-absolute tw-opacity-80"></div> | ||
<div class="container"> | ||
<div class="tw-row"> | ||
<div class="tw-px-8 tw-absolute tw-w-full tw-bottom-12 large:tw-w-6/12 large:tw-bottom-24"> | ||
<p class="tw-bg-blue-05 tw-inline-block tw-text-black tw-text-sm tw-uppercase tw-py-3 tw-px-6 tw-rounded-3xl"> | ||
<span>1st-3rd June 2024</span> | ||
<span>| Maldives</span> | ||
</p> | ||
<h1 class="tw-h1-heading">MozFest House: 2024</h1> | ||
<p class="tw-body-large">Dedicated to creating a healthier and more inclusive internet.</p> | ||
<a class="tw-btn-secondary" href="#">Get your tickets</a> | ||
</div> | ||
</div> | ||
</div> | ||
</div> |
18 changes: 4 additions & 14 deletions
18
network-api/networkapi/mozfest/templates/partials/primary_heroguts.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -230,6 +230,7 @@ module.exports = { | |
}, | ||
purple: { | ||
100: "#fa00ff", | ||
200: "#8e769d" | ||
}, | ||
}, | ||
"dear-internet": { | ||
|