Skip to content
22 changes: 12 additions & 10 deletions src/components/BGImage/BGImage.styles.js
Original file line number Diff line number Diff line change
@@ -1,40 +1,43 @@
import styled from "styled-components";
import { GatsbyImage } from "gatsby-plugin-image";


export const BGWrapper = styled.div`
position: relative;
width: 100%;
margin: 0 auto;
overflow: hidden;
`;

export const FakeBGImg = styled(GatsbyImage)`
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
max-height: 32rem;
z-index: 0;
border-radius: 10px;
opacity:1;
@media (min-width: 768px){
opacity:0;
opacity: 0.22;
@media (min-width: 768px) {
opacity: 0;
display: none !important;
}
}
`;

export const FakeBGImgStatic = styled.img`
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
max-height: 32rem;
z-index: 0;
border-radius: 10px;
opacity: 1;
opacity: 0.22;
object-fit: cover;
pointer-events: none;

@media (min-width: 768px){
@media (min-width: 768px) {
opacity: 0;
display: none !important;
}
Expand All @@ -45,9 +48,8 @@ export const Content = styled.div`
width: 100%;
height: 100%;
z-index: 2;
@media (max-width: 767px){
position: absolute;
@media (max-width: 767px) {
display: flex;
justify-content: center;
}
}
`;
70 changes: 53 additions & 17 deletions src/sections/Home/Banner-4/banner4.style.js
Original file line number Diff line number Diff line change
Expand Up @@ -221,32 +221,42 @@ const Banner1SectionWrapper = styled.section`
}
}
@media only screen and (max-width: 767px) {
min-height: 320px;
padding: 1.2rem 0 1.5rem 0;
min-height: auto;
padding: 1.5rem 0 0 0;
.video-wrapper {
width: 100%;
padding-bottom: 56.25%; /* Maintain 16:9 aspect ratio */
}
.section-title-wrapper {
min-width: 100%;
text-align: center;
}
.video-col{
display: none;
}
.section-title {
text-align: center !important;
h1 {
margin: 0rem;
font-size: 1.82rem;
margin: 0 auto 0.6rem auto;
font-size: 2.1rem;
line-height: 2.5rem;
max-width: 18ch;
text-align: center !important;
}
h2 {
font-size: 1.15rem;
width: 80%;
font-size: 1.2rem;
width: 100%;
margin: 0 auto 1.2rem auto;
text-align: center !important;
}
}
p {
font-size: 1.1rem;
width:60%;
}
.vintage-box-container {
justify-content: center;
}
.vintage-box{
&:before{
content: none;
Expand All @@ -257,29 +267,48 @@ const Banner1SectionWrapper = styled.section`
}
}
@media only screen and (max-width: 480px) {
min-height: 180px;
padding: 0.7rem 0 1rem 0;
min-height: auto;
padding: 1.5rem 0 0 0;
.video-wrapper {
width: 100%;
padding-bottom: 60%;
}
padding: 2rem 0;
.section-title {
h1 {
margin: 0 auto 0.6rem auto;
font-size: 1.95rem;
line-height: 2.35rem;
max-width: 12ch;
text-align: center !important;
}
h2 {
font-size: 1.1rem;
width: 100%;
margin: 0 auto 1.2rem auto;
text-align: center !important;
}
}
.vintage-box{
&:before{
content: none;
}
}
}
@media only screen and (max-width: 430px) {
padding: 1rem 0;
padding: 1.2rem 0 0 0;
.section-title {
h1 {
margin: 0rem;
font-size: 1.8rem;
margin: 0 auto 0.6rem auto;
font-size: 1.85rem;
line-height: 2.25rem;
max-width: 12ch;
text-align: center !important;
}
h2 {
font-size: 1rem;
width: 80%;
font-size: 1.05rem;
width: 100%;
margin: 0 auto 1.2rem auto;
text-align: center !important;
}
}
p {
Expand All @@ -300,13 +329,17 @@ const Banner1SectionWrapper = styled.section`
@media only screen and (max-width: 380px) {
.section-title{
h1 {
font-size: 1.6rem;
line-height: 1.7rem;
margin: 0 auto 0.6rem auto;
font-size: 1.65rem;
line-height: 2rem;
max-width: 12ch;
text-align: center !important;
/* margin: 0 0 30px 0; */
}
h2 {
font-size: 1rem;
width:100%;
text-align: center !important;
}
}
p {
Expand All @@ -321,8 +354,11 @@ const Banner1SectionWrapper = styled.section`
@media only screen and (max-width: 330px) {
.section-title{
h1 {
margin: 0 auto 0.6rem auto;
font-size: 23px;
line-height: 35px;
line-height: 30px;
max-width: 12ch;
text-align: center !important;
}
}
}
Expand Down