added banner for mobile
parent
aacbab62b8
commit
f5995aeed8
Binary file not shown.
After Width: | Height: | Size: 300 KiB |
|
@ -49,13 +49,12 @@ body:not(.has-hero) .md-content__inner {
|
||||||
margin-left: calc(50% - 50vw);
|
margin-left: calc(50% - 50vw);
|
||||||
margin-right: calc(50% - 50vw);
|
margin-right: calc(50% - 50vw);
|
||||||
|
|
||||||
/* Background setup */
|
/* DEFAULT (DESKTOP) BACKGROUND */
|
||||||
background:
|
background:
|
||||||
linear-gradient(to bottom, rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0)),
|
linear-gradient(to bottom, rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0)),
|
||||||
url('../assets/banner3.png') no-repeat center center;
|
url('../assets/banner3.png') no-repeat center center;
|
||||||
background-size: cover;
|
background-size: cover;
|
||||||
background-attachment: fixed; /* Optional: parallax effect */
|
background-attachment: fixed;
|
||||||
|
|
||||||
/* Content centering */
|
/* Content centering */
|
||||||
display: flex;
|
display: flex;
|
||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
|
@ -214,6 +213,11 @@ body:not(.has-hero) .md-content__inner {
|
||||||
@media screen and (max-width: 76.25em) {
|
@media screen and (max-width: 76.25em) {
|
||||||
.hero-banner {
|
.hero-banner {
|
||||||
min-height: 70vh;
|
min-height: 70vh;
|
||||||
|
/* MOBILE BACKGROUND - Override the desktop image */
|
||||||
|
background-image:
|
||||||
|
linear-gradient(to bottom, rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0)),
|
||||||
|
url('../assets/banner3m.png');
|
||||||
|
background-attachment: scroll; /* Disable parallax on mobile for performance */
|
||||||
}
|
}
|
||||||
|
|
||||||
body:not(.has-hero) .md-content__inner {
|
body:not(.has-hero) .md-content__inner {
|
||||||
|
|
Loading…
Reference in New Issue