fix: hero image not loading in portal homepage (#31699) (cherry picked from commit 8a6432ec3f4bf63c39d1f687f618cec2360ebccf) Co-authored-by: Rucha Mahabal <ruchamahabal2@gmail.com>
This commit is contained in:
parent
c6fbb7b27d
commit
5b7b58322f
@ -1,7 +1,6 @@
|
|||||||
/* csslint ignore:start */
|
/* csslint ignore:start */
|
||||||
{% if homepage.hero_image %}
|
{% if homepage.hero_image %}
|
||||||
.hero-image {
|
.hero-image {
|
||||||
background-image: url("{{ homepage.hero_image }}");
|
|
||||||
background-size: cover;
|
background-size: cover;
|
||||||
padding: 10rem 0;
|
padding: 10rem 0;
|
||||||
}
|
}
|
||||||
|
@ -5,7 +5,11 @@
|
|||||||
{% block content %}
|
{% block content %}
|
||||||
<main>
|
<main>
|
||||||
{% if homepage.hero_section_based_on == 'Default' %}
|
{% if homepage.hero_section_based_on == 'Default' %}
|
||||||
<section class="hero-section border-bottom {%if homepage.hero_image%}hero-image{%endif%}">
|
<section class="hero-section border-bottom {%if homepage.hero_image%}hero-image{%endif%}"
|
||||||
|
{% if homepage.hero_image %}
|
||||||
|
style="background-image: url('{{ homepage.hero_image }}');"
|
||||||
|
{%- endif %}
|
||||||
|
>
|
||||||
<div class="container py-5">
|
<div class="container py-5">
|
||||||
<h1 class="d-none d-sm-block display-4">{{ homepage.tag_line }}</h1>
|
<h1 class="d-none d-sm-block display-4">{{ homepage.tag_line }}</h1>
|
||||||
<h1 class="d-block d-sm-none">{{ homepage.tag_line }}</h1>
|
<h1 class="d-block d-sm-none">{{ homepage.tag_line }}</h1>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user