Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

📝(content) Add LumaFusion Beta announcement post #499

Merged
merged 18 commits into from
Nov 9, 2022
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Update homepage banner to allow for fallbacks
  • Loading branch information
Sam Richard committed Oct 24, 2022
commit 56a5e8483dd6893d8fb8403a0465c3f5fe3cd023
6 changes: 3 additions & 3 deletions site/_components/banner-interstitial.njk
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
#}-->
{% from 'icon.njk' import icon %} {% macro bannerInterstitial(content, microcopy) %}
<article class="banner-interstitial {{'banner-interstitial--no-cta' if not content.cta}}">
<div class="banner-interstitial__inner {{'theme theme__' + content.theme.theme if content.theme}}">
<div class="banner-interstitial__inner {% if content.theme.theme %}theme theme__{{content.theme.theme}}{% elif content.tag %}background-color--{{content.normalizedTag}}{% endif %}">
<div class="banner-interstitial__content">
<div class="banner-interstitial__text">
<small class="banner-interstitial__eyebrow type--h2">{{microcopy.featured.eyebrow}}</small>
Expand All @@ -36,8 +36,8 @@
<img class="banner-interstitial--background-pattern" src="{{content.theme.background}}" alt="" />
{% endif %} {% else %}
<picture>
<source media="(min-width: 720px)" srcset="ix:https://landings/news/top/banner-{{tagSlug}}.svg" />
<img class="banner-interstitial--background-pattern" src="ix:https://landings/news/banner-{{tagSlug}}.svg" alt="" />
<source media="(min-width: 720px)" srcset="ix:https://landings/news/top/banner-{{content.normalizedTag}}.svg" />
<img class="banner-interstitial--background-pattern" src="ix:https://landings/news/banner-{{content.normalizedTag}}.svg" alt="" />
</picture>
{% endif %}
</div>
Expand Down
12 changes: 11 additions & 1 deletion site/sass/components/_banner-interstitial.scss
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@
&__eyebrow,
&__title,
&__copy {
color: var(--white);
color: inherit;
}

&__copy {
Expand All @@ -59,12 +59,16 @@
}

&__cta {
border-color: currentColor;
color: inherit;
display: inline-flex;
margin-top: 1.75rem;
}

&__image-wrapper {
height: 100%;
max-width: pxRem(746px);
overflow: hidden;
// Stretch image wrapper outside of the banner's wrapper.
width: math.percentage(math.div(456px, 327px));

Expand All @@ -81,4 +85,10 @@
&__image {
object-fit: cover;
}

&--background-pattern {
float: right;
max-height: 100%;
width: auto;
}
}