fix small screens and make full height

This commit is contained in:
2023-05-09 10:30:41 +10:00
parent fb2f2d9739
commit bd4ba41b0b

View File

@@ -3,7 +3,7 @@
<SMLoading v-if="!loaded" large />
<template v-else>
<div class="hero-background" :style="heroStyles"></div>
<SMContainer class="align-items-start">
<SMContainer class="hero-container">
<div class="hero-content">
<h1>{{ props.title }}</h1>
<p>{{ props.excerpt }}</p>
@@ -108,7 +108,7 @@ if (props.imageUrl && props.imageUrl !== "") {
display: flex;
position: relative;
overflow: hidden;
min-height: 700px;
min-height: 101vh;
.hero-background {
position: absolute;
@@ -121,6 +121,10 @@ if (props.imageUrl && props.imageUrl !== "") {
background-size: cover;
}
.hero-container {
align-items: flex-start;
}
.hero-content {
position: relative;
margin: 150px 32px 120px;
@@ -175,6 +179,10 @@ if (props.imageUrl && props.imageUrl !== "") {
@media only screen and (max-width: 640px) {
.hero {
.hero-container {
align-items: center;
}
.hero-content {
margin: 150px 0;
}