-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
…-width-hero-card [DEV-13393] Implement Lena-style hero card
- Loading branch information
Showing
13 changed files
with
225 additions
and
30 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,116 @@ | ||
.container { | ||
position: relative; | ||
display: flex; | ||
align-items: flex-end; | ||
min-height: 500px; | ||
margin: (-$spacing-8) (-$spacing-5) $spacing-7; | ||
|
||
@include tablet-up { | ||
height: 500px; | ||
} | ||
|
||
@include desktop-up { | ||
height: 700px; | ||
margin: 0 0 $spacing-8; | ||
|
||
&:hover .image { | ||
transform: scale(1.05); | ||
} | ||
|
||
&.rounded { | ||
@include border-radius-m; | ||
|
||
overflow: hidden; | ||
} | ||
} | ||
} | ||
|
||
.link { | ||
text-decoration: none; | ||
|
||
.mask { | ||
position: absolute; | ||
inset: 0; | ||
} | ||
} | ||
|
||
.overlay { | ||
position: absolute; | ||
inset: 0; | ||
background: linear-gradient(270deg, rgb(3 7 18 / 0%) 50%, rgb(3 7 18 / 40%) 100%), linear-gradient(180deg, rgb(3 7 18 / 0%) 40%, rgb(3 7 18 / 20%) 62%, rgb(3 7 18 / 40%) 100%); | ||
} | ||
|
||
.image { | ||
position: absolute; | ||
inset: 0; | ||
z-index: -1; | ||
|
||
@include desktop-up { | ||
transform: scale(1); | ||
transition: transform 0.25s ease-in-out; | ||
} | ||
} | ||
|
||
.content { | ||
padding: $spacing-8 $spacing-4; | ||
z-index: 2; | ||
|
||
@include tablet-up { | ||
padding: $spacing-8 $spacing-5; | ||
} | ||
|
||
@include desktop-up { | ||
max-width: 600px; | ||
padding: $spacing-8; | ||
box-sizing: content-box; | ||
} | ||
} | ||
|
||
.categories { | ||
display: flex; | ||
gap: $spacing-1; | ||
margin-bottom: $spacing-3; | ||
|
||
.link { | ||
z-index: 2; | ||
} | ||
|
||
.badge { | ||
color: var(--prezly-white); | ||
background-color: color-mix(in srgb, var(--prezly-white) 20%, transparent); | ||
backdrop-filter: blur(8px); | ||
} | ||
} | ||
|
||
.title { | ||
@include ensure-max-text-height(3, 140%); | ||
|
||
color: var(--prezly-white); | ||
font-size: $font-size-xl; | ||
font-weight: $font-weight-bold; | ||
margin: 0; | ||
|
||
&.expanded { | ||
@include ensure-max-text-height(4, 140%); | ||
} | ||
|
||
@include tablet-up { | ||
font-size: 2.25rem; | ||
line-height: 140%; | ||
} | ||
} | ||
|
||
.subtitle { | ||
@include ensure-max-text-height(3, 160%); | ||
|
||
margin: 0; | ||
margin-top: $spacing-2; | ||
color: var(--prezly-white); | ||
font-size: $font-size-s; | ||
font-weight: $font-weight-regular; | ||
line-height: 160%; | ||
|
||
@include tablet-up { | ||
font-size: $font-size-m; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.