Files
Gainsight/Custom_Templates/customer_templates/Gainsight University/_homepage_hero.html.liquid
2024-10-18 16:38:15 -04:00

154 lines
2.9 KiB
Plaintext

<div class="np-homepage-hero gs-bg-navy">
<div class="np-max-width hero-wrapper">
<div class="homepage-hero-content">
<div class="hero-logo">
<img alt="{{ current_school.name }}" src="https://s3.amazonaws.com/static.northpass.com/gainsight-university/gs-logo-light.svg" />
</div>
<div class="np-homepage-subheadline">
{{ homepage.subheadline }}
</div>
{% comment %} <div class="hero-video-wrapper">
<div class="hero-video-text">Don't know where to start? Watch the overview</div>
<div class="hero-video-button" onclick="showVideoPopup()">Watch the Video</div>
</div> {% endcomment %}
</div>
<div class="hero-graphic">
<img src="https://s3.amazonaws.com/static.northpass.com/gainsight-university/gs-university-hero-img.svg" />
</div>
</div>
</div>
<script>
function showVideoPopup() {
console.log("show popup")
}
</script>
<style>
.np-homepage-hero {
color: #fff;
display: block;
overflow: hidden;
}
.homepage-hero-content {
text-align: center;
padding: 50px 16px 24px;
}
.hero-logo {
max-width: 350px;
margin: 0 auto 12px;
}
.hero-logo img {
max-width: 100%;
}
.np-homepage-hero .np-homepage-subheadline {
font-size: 18px;
font-weight: 400;
line-height: 26px;
letter-spacing: -0.25px;
opacity: 1;
margin-bottom: 20px;
}
.hero-video-wrapper {
background: #184B72;
font-weight: 700;
font-size: 14px;
}
.hero-video-text {
padding: 12px 8px;
}
.hero-video-button {
padding: 12px;
background: #28628E;
font-weight: 500;
text-align: center;
cursor: pointer;
}
.hero-graphic img {
bottom: -4px;
position: relative;
padding: 0 16px;
max-width: 100%;
}
@media (min-width: 768px) {
.hero-wrapper {
display: flex;
align-items: center;
height: 350px;
}
.homepage-hero-content {
width: 60%;
padding: 16px;
text-align: left;
}
.hero-logo {
margin: 0 0 32px;
max-width: unset;
}
.hero-video-wrapper {
display: flex;
justify-content: space-between;
align-items: center;
}
.hero-video-text,
.hero-video-button {
padding: 20px 16px;
}
.hero-graphic {
width: 40%;
height: 100%;
}
.hero-graphic img {
max-width: unset;
right: unset;
left: 0;
bottom: unset;
height: 100%;
width: auto;
padding: 0;
}
}
@media (min-width: 1024px) {
.homepage-hero-content,
.hero-graphic {
width: 50%;
}
}
@media (min-width: 1200px) {
.hero-wrapper {
height: 360px;
}
.homepage-hero-content {
width: 40%;
}
.hero-graphic {
width: 60%;
display: flex;
justify-content: end;
}
.hero-graphic img {
right: 0;
left: unset;
}
}
</style>