mirror of
https://gitlab.com/vyla-entertainment/home-frontend.git
synced 2026-11-19 23:37:30 -05:00
Released New Website
This commit is contained in:
91
src/styles/sections/features.css
Normal file
91
src/styles/sections/features.css
Normal file
@@ -0,0 +1,91 @@
|
||||
.features-container {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: clamp(3.5rem, 8vw, 6rem);
|
||||
width: 70%;
|
||||
}
|
||||
|
||||
.feature-block {
|
||||
display: grid;
|
||||
grid-template-columns: 1fr 1fr;
|
||||
align-items: center;
|
||||
gap: clamp(2rem, 6vw, 5rem);
|
||||
}
|
||||
|
||||
.feature-block-reverse {
|
||||
grid-template-columns: 1fr 1fr;
|
||||
}
|
||||
|
||||
.feature-block-reverse .feature-media {
|
||||
order: 2;
|
||||
}
|
||||
|
||||
.feature-block-reverse .feature-copy {
|
||||
order: 1;
|
||||
}
|
||||
|
||||
.feature-media {
|
||||
width: min(100%, 800px);
|
||||
aspect-ratio: 16 / 9;
|
||||
border-radius: var(--radius-lg);
|
||||
background: var(--color-bg-card);
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
.feature-media img,
|
||||
.feature-media video {
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
object-fit: cover;
|
||||
object-position: center;
|
||||
display: block;
|
||||
}
|
||||
|
||||
.feature-copy {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
align-items: flex-start;
|
||||
gap: 1rem;
|
||||
text-align: left;
|
||||
max-width: 420px;
|
||||
}
|
||||
|
||||
.feature-title {
|
||||
text-align: left;
|
||||
color: var(--color-fg);
|
||||
font-weight: 400;
|
||||
font-size: clamp(1.75rem, 3vw, 2.25rem);
|
||||
letter-spacing: -0.02em;
|
||||
}
|
||||
|
||||
.feature-copy .section-subtitle {
|
||||
font-size: 1rem;
|
||||
line-height: 1.6;
|
||||
}
|
||||
|
||||
@media (max-width: 768px) {
|
||||
|
||||
.features-container {
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
.feature-media {
|
||||
width: 100% !important;
|
||||
aspect-ratio: 4 / 3;
|
||||
max-height: 420px !important;
|
||||
height: 200px !important;
|
||||
border-radius: var(--radius-lg);
|
||||
background: var(--color-bg-card);
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
.feature-block,
|
||||
.feature-block-reverse {
|
||||
grid-template-columns: 1fr;
|
||||
}
|
||||
|
||||
.feature-block-reverse .feature-media,
|
||||
.feature-block-reverse .feature-copy {
|
||||
order: initial;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user