Skip to content

Commit 38140fb

Browse files
author
Simon L. Lange
committed
Bellcom theme: Enabling hero bg image with overlay
1 parent d2e411e commit 38140fb

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

web/themes/custom/subsites/bellcom_theme/src/scss/sections/hero.scss

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@
55
align-items: center;
66
padding: 80px 0;
77

8+
9+
810
.hero__inner-wrapper {
911
max-width: 1440px;
1012
margin: 0 auto;

web/themes/custom/subsites/bellcom_theme/templates/paragraphs/paragraph--landingpage_hero_banner.html.twig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
<div class="hero-wrapper" style="background-color:{% if selectedBackground == 'black' %} #212529;
33
{% elseif selectedBackground == 'white' %} #fff; {% elseif selectedBackground == 'green' %} #344E41
44
{% elseif selectedBackground == 'blue' %} #22223B; {% elseif selectedBackground == 'grey' %} #343A40;
5-
{% elseif selectedBackground == 'sand' %} #DAD7CD; {% endif %}">
5+
{% elseif selectedBackground == 'sand' %} #DAD7CD; {% endif %} {% if paragraph.field_hero_bg_image.value %} background:linear-gradient(0deg, rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url({{ file_url(paragraph.field_hero_bg_image.entity.fileuri) }}); background-size: cover; {% endif %}">
66
<div class="hero__inner-wrapper">
77
<div class="hero__text-wrapper">
88
{% if paragraph.field_hero_heading.value %}

0 commit comments

Comments
 (0)