yintai-company-home/src/components/Banner.module.css

100 lines
1.5 KiB
CSS

/* Hero */
.hero {
position: relative;
min-height: 100vh;
background-size: cover;
background-position: center;
padding-bottom: 3.125rem;
display: flex;
flex-direction: column;
justify-content: flex-end;
}
.bgSwiper {
position: absolute;
inset: 0;
z-index: 0;
width: 100%;
height: 100%;
}
.bgSwiper :global(.swiper-slide) {
height: 100%;
}
.bgSlide {
position: absolute;
inset: 0;
width: 100%;
height: 100%;
background-size: cover;
background-position: center;
}
.heroOverlay {
position: absolute;
inset: 0;
z-index: 1;
pointer-events: none;
background: linear-gradient(
to right,
rgba(0, 0, 0, 0.5) 0%,
rgba(0, 0, 0, 0.2) 60%,
transparent 100%
);
}
.heroContent {
position: relative;
z-index: 1;
padding: 0 1.5rem;
padding-left: 13.5%;
display: flex;
flex-direction: column;
justify-content: flex-end;
}
.heroTitle {
font-size: 3.75rem;
font-weight: 700;
color: #fff;
letter-spacing: 0.05em;
}
.heroTitleMedium {
font-size: 2.5rem;
}
.heroSubtitle {
font-size: 2.5rem;
font-weight: 700;
color: #fff;
letter-spacing: 0.05em;
}
.heroDesc {
max-width: 56.25rem;
font-size: 1.25rem;
color: rgba(255, 255, 255, 0.95);
margin: 0;
letter-spacing: 0.02em;
}
.heroLargeDesc {
font-size: 2.125rem;
color: rgba(255, 255, 255, 0.95);
margin: 0;
letter-spacing: 0.02em;
}
.breadcrumb {
display: flex;
flex-direction: row;
gap: 0.3125rem;
color: #fff;
text-decoration: none;
font-size: 1rem;
margin-top: 6.25rem;
}