Skip to content

Commit

Permalink
Merge pull request #11515 from MozillaFoundation/feature/2708-hero
Browse files Browse the repository at this point in the history
MozFest - 2708 Hero
  • Loading branch information
chris-lawton authored Dec 11, 2023
2 parents bae6ed6 + 1d94e1c commit 202a79c
Show file tree
Hide file tree
Showing 5 changed files with 45 additions and 15 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
{% block bodyclass %}mozfest {% if banner_video_type %}banner-type-{{ banner_video_type }}{% endif %}{% endblock %}

{% block hero_guts %}
{% include "partials/primary_heroguts.html" with root=root page=page homepage=True banner_video_type=banner_video_type %}
{% include "partials/primary_hero.html" with page=page %}
{% endblock %}

{% block bootstrap_width %}col-lg-12{% endblock %}
Expand Down
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 %}
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>
Original file line number Diff line number Diff line change
@@ -1,20 +1,10 @@
{% load wagtailcore_tags wagtailimages_tags %}

<div id="hero">
{% if homepage %}
{% if page.banner_carousel %}
{# Hero with carousel and featured video below #}
{% include "fragments/hero/carousel_hero.html" with page=page banner_video_type=banner_video_type %}
{% else %}
{# Hero with hardcoded video as background #}
{% include "fragments/hero/hardcoded_video_hero.html" with page=page banner_video_type=banner_video_type %}
{% endif %}
{% else %}
<div class="banner">
{% include "fragments/hero/normal.html" with page=page %}
</div>
{% include "partials/intro_section.html" %}
{% endif %}
<div class="banner">
{% include "fragments/hero/normal.html" with page=page %}
</div>
{% include "partials/intro_section.html" %}

{% if singleton_page == True %}
{% include "partials/intro_and_content_divider.html" with wrapper_class="d-md-none" %}
Expand Down
1 change: 1 addition & 0 deletions tailwind.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -230,6 +230,7 @@ module.exports = {
},
purple: {
100: "#fa00ff",
200: "#8e769d"
},
},
"dear-internet": {
Expand Down

0 comments on commit 202a79c

Please sign in to comment.