Compare commits
5 Commits
d8d5552e20
...
492110c921
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
492110c921 | ||
|
|
d04899ddb4 | ||
|
|
0e10fb2ed8 | ||
|
|
84a0359a4a | ||
|
|
9c6bca64b9 |
|
|
@ -43,6 +43,7 @@
|
||||||
@import './blocks/heading.css';
|
@import './blocks/heading.css';
|
||||||
@import './blocks/decorative-shapes.css';
|
@import './blocks/decorative-shapes.css';
|
||||||
@import './blocks/narrative-card.css';
|
@import './blocks/narrative-card.css';
|
||||||
|
@import './blocks/scroll-story-block.css';
|
||||||
|
|
||||||
/* ########### LIBS ############ */
|
/* ########### LIBS ############ */
|
||||||
@import './libs/swiper.css';
|
@import './libs/swiper.css';
|
||||||
|
|
|
||||||
|
|
@ -1,28 +1,53 @@
|
||||||
.narrative-card {
|
.narrative-card {
|
||||||
@apply bg-white border border-primary p-12 mx-auto max-w-screen-lg;
|
@apply p-12 py-24 mx-auto max-w-screen-lg;
|
||||||
|
|
||||||
|
> * {
|
||||||
|
position: relative;
|
||||||
|
z-index: 1;
|
||||||
|
}
|
||||||
|
&:after {
|
||||||
|
content: '';
|
||||||
|
background-image: url('../resources/img/skew-background.svg');
|
||||||
|
background-size: 100% 100%;
|
||||||
|
background-repeat: no-repeat;
|
||||||
|
background-position: center;
|
||||||
|
@apply absolute inset-0;
|
||||||
|
transform: scaleX(-1);
|
||||||
|
}
|
||||||
|
|
||||||
|
.narrative-card__cover {
|
||||||
|
@apply rotate-3;
|
||||||
|
}
|
||||||
|
|
||||||
|
&--even,
|
||||||
|
&:nth-of-type(even) {
|
||||||
|
&:after {
|
||||||
|
transform: scaleX(1);
|
||||||
|
}
|
||||||
|
.narrative-card__cover {
|
||||||
|
@apply rotate-[-3deg];
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
&--has-cover {
|
&--has-cover {
|
||||||
@apply grid grid-cols-2 gap-32 items-center;
|
@apply grid grid-cols-2 gap-24 items-center;
|
||||||
grid-template-columns: 4fr 1fr;
|
grid-template-columns: 3.5fr 1fr;
|
||||||
|
|
||||||
&--left {
|
&--left {
|
||||||
grid-template-columns: 1fr 4fr;
|
grid-template-columns: 1fr 3.5fr;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
&__cover {
|
&__cover {
|
||||||
@apply w-full h-auto object-cover border border-primary mx-auto;
|
--margin: 1rem;
|
||||||
|
@apply flex justify-center items-center w-full h-auto object-cover border border-primary mx-auto;
|
||||||
aspect-ratio: 1/1;
|
aspect-ratio: 1/1;
|
||||||
}
|
|
||||||
|
|
||||||
&:nth-child(odd) {
|
img {
|
||||||
.narrative-card__cover {
|
@apply w-full h-full object-cover;
|
||||||
@apply rotate-3;
|
width: calc(100% - var(--margin));
|
||||||
}
|
height: calc(100% - var(--margin));
|
||||||
}
|
object-position: center;
|
||||||
&:nth-child(even) {
|
|
||||||
.narrative-card__cover {
|
|
||||||
@apply rotate-[-3deg];
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
3
resources/css/blocks/scroll-story-block.css
Normal file
3
resources/css/blocks/scroll-story-block.css
Normal file
|
|
@ -0,0 +1,3 @@
|
||||||
|
.scroll-story-block {
|
||||||
|
@apply py-12 flex flex-col gap-12;
|
||||||
|
}
|
||||||
3
resources/img/skew-background.svg
Normal file
3
resources/img/skew-background.svg
Normal file
|
|
@ -0,0 +1,3 @@
|
||||||
|
<svg width="1216" height="407" viewBox="0 0 1216 407" fill="none" xmlns="http://www.w3.org/2000/svg" preserveAspectRatio="none">
|
||||||
|
<path d="M0.5 11.1045V406.5H1205.51L1215.49 0.503906L0.5 11.1045Z" fill="white" stroke="#136F63"/>
|
||||||
|
</svg>
|
||||||
|
After Width: | Height: | Size: 235 B |
|
|
@ -1,5 +1,6 @@
|
||||||
import menuInit from './header';
|
import menuInit from './header';
|
||||||
import initFooterShapes from './footer';
|
import initFooterShapes from './footer';
|
||||||
|
|
||||||
window.addEventListener('load', function () {
|
window.addEventListener('load', function () {
|
||||||
menuInit();
|
menuInit();
|
||||||
initFooterShapes();
|
initFooterShapes();
|
||||||
Loading…
Reference in New Issue
Block a user