contenu des étapes

This commit is contained in:
Valentin
2024-09-29 21:36:21 +02:00
parent ebb3ceb6d5
commit a4452388cd
25 changed files with 1410 additions and 500 deletions

View File

@@ -4,6 +4,8 @@ $body-margin-x: 30px;
$body-margin-y: 5px;
$body-margin-bottom: 4vh;
$modale-x-padding: 5vw;
$sm-font-size: 0.8rem;
$m-font-size: 1.4rem;
$l-font-size: 1.8rem;
@@ -23,6 +25,9 @@ body{
margin: 0;
padding: 0;
overflow-y: scroll;
&.no-scroll {
overflow-y: hidden;
}
.layout-container {
> header {
z-index: 2;
@@ -127,7 +132,7 @@ body{
justify-content: center;
align-items: center;
width: 2.4rem;
transition: transform 0.3s ease-out;
transition: transform 0.3s ease-out, opacity 0.3s ease-out;
> div {
width: 100%;
height: 3px;
@@ -469,15 +474,13 @@ body{
display: block;
width: 20px;
height: 10px;
&:first-of-type, &:last-of-type {
height: 8px;
clip-path: polygon(0 0, 100% 0, 50% 100%);
}
&:first-of-type {
transform: rotate(180deg);
}
> div:first-of-type {
height: 8px;
clip-path: polygon(0 0, 100% 0, 50% 100%);
transform: rotate(180deg);
}
> div:last-of-type {
height: 8px;
clip-path: polygon(0 0, 100% 0, 50% 100%);
}
}
}
@@ -503,127 +506,410 @@ body{
}
}
}
> #content-modale > div {
z-index: 2;
position: relative;
top: 15vh;
left: 25vw;
width: 50vw;
background-color: white;
img {
width: 100%;
height: auto;
object-fit: cover;
}
> div {
width: 100%;
overflow: hidden;
}
> header {
margin-bottom: 3rem;
> .cover {
max-height: 60vh;
display: flex;
justify-content: center;
overflow: hidden;
> #content-modale {
> div:not(.image-viewer-wrapper, .image-modale) {
padding-bottom: 40vh;
background-color: red;
> .content-wrapper {
left: 25vw;
width: 50vw;
top: 15vh;
z-index: 2;
position: relative;
z-index: 0;
}
> .cartouche {
position: absolute;
top: 2rem;
padding: 1rem 1.5rem;
background-color: $brand-color;
z-index: 1;
> p {
margin-block-start: 0;
margin-block-end: 0;
}
> p:last-of-type {
font-weight: bold;
}
}
> .brand-pattern {
display: block;
width: 100%;
height: 120px;
> .pattern {
display: block;
background-color: white;
img {
width: 100%;
height: 100%;
background-image: url(/themes/custom/caravane/assets/imgs/motif-caravane-invert-tile.png);
background-size: 300px;
background-size: repeat;
height: auto;
object-fit: cover;
}
}
> .locality {
position: relative;
z-index: 1;
width: 50%;
margin-left: 25%;
margin-top: -245px;
> .top-triangle {
display: block;
> div {
width: 100%;
height: 100px;
display: flex;
clip-path: polygon(-1% 100%, 50% 0, 101% 100%);
background-color: white;
margin-bottom: -1px;
overflow: hidden;
}
> .locality-title {
min-height: 115px;
display: block;
background-color: white;
padding: 1rem 2rem;
display: flex;
align-items: center;
> h1 {
> header {
// margin-bottom: 3rem;
> .cover {
max-height: 60vh;
display: flex;
justify-content: center;
overflow: hidden;
position: relative;
z-index: 0;
}
> .cartouche {
position: absolute;
top: 2rem;
padding: 1rem 1.5rem;
background-color: $brand-color;
z-index: 1;
> p {
margin-block-start: 0;
margin-block-end: 0;
}
> p:last-of-type {
font-weight: bold;
}
}
> .locality {
position: relative;
z-index: 1;
width: 50%;
margin-left: 25%;
margin-top: -245px;
> .top-triangle {
display: block;
width: 100%;
height: 100px;
display: flex;
clip-path: polygon(-1% 100%, 50% 0, 101% 100%);
background-color: white;
margin-bottom: -1px;
}
> .locality-title {
min-height: 115px;
display: block;
background-color: white;
padding: 1rem 2rem;
display: flex;
align-items: center;
> h1 {
width: 100%;
font-size: $xl-font-size;
margin-block-start: 0;
margin-block-end: 0;
font-family: 'Joost', sans-serif;
text-align: center;
> em {
font-style: normal;
font-weight: lighter;
}
}
}
}
}
> main {
width: 100%;
padding: 0 $modale-x-padding;
box-sizing: border-box;
> #sensible-map {
width: calc(100% + $modale-x-padding);
margin-left: calc(($modale-x-padding / 2) * -1);
margin-top: calc($modale-x-padding / 2);
> figure {
margin: 0;
.vh--message {
font-size: $sm-font-size;
top: 1rem;
left: 1rem;
bottom: unset;
background-color: rgba(255, 255, 255, 0.6);
color: $main-color-light;
}
> figcaption {
margin-left: calc($modale-x-padding / 2);
}
}
}
> .partie {
width: 100%;
font-size: $xl-font-size;
margin-block-start: 0;
margin-block-end: 0;
font-family: 'Joost', sans-serif;
text-align: center;
> em {
font-style: normal;
font-weight: lighter;
display: inline-block;
> .partie-title,
> .chiffres-cles {
> h3 {
position: relative;
display: inline-block;
> p {
display: inline-block;
font-size: $l-font-size;
font-family: 'Joost', sans-serif;
margin: 0;
z-index: 1;
position: relative;
padding: 0 0.5rem;
}
> .underline {
z-index: 0;
left: 0;
top: 1.4rem;
position: absolute;
width: 100%;
display: inline-block;
height: 0.8rem;
}
}
}
> .chiffres-cles {
> div {
display: grid;
gap: 2rem;
grid-template-columns: 1fr 1fr 1fr;
align-content: flex-start;
margin: 2rem 0;
> div {
display: flex;
flex-direction: column;
align-items: flex-start;
justify-content: flex-start;
> .chiffre {
padding-left: 1rem;
font-size: $xl-font-size;
font-weight: bold;
font-family: 'Joost', sans-serif;
margin: 0;
> p {
margin: 0;
}
}
> .chiffre-caption {
padding-left: 1rem;
font-size: $sm-font-size;
margin: 0;
}
}
}
}
> .partie-content {
img {
margin-top: 2rem;
cursor: pointer;
transition: transform 0.3s ease-out;
&:hover {
transform: scale(1.01);
}
}
}
> .diaporama {
width: calc(100% + 2 * #{$modale-x-padding});
margin-top: 5rem;
margin-bottom: 3rem;
margin-left: -$modale-x-padding;
figure {
margin: 0 calc(#{$modale-x-padding} / 2);
> img {
width: 100%;
}
> figcaption {
padding-bottom: 2rem;
}
}
}
> .videos iframe {
margin: 2rem 0;
}
}
.caption {
font-size: $sm-font-size;
color: $main-color-light;
margin-top: 0.2rem;
margin-bottom: 1.8rem;
}
}
.brand-pattern {
display: block;
width: 100%;
height: 120px;
> .pattern {
display: block;
width: 100%;
height: 100%;
background-image: url(/themes/custom/caravane/assets/imgs/motif-caravane-invert-tile.png);
background-size: 300px;
background-size: repeat;
}
}
.pattern-bottom {
width: calc(100% + $modale-x-padding * 2);
margin-left: -$modale-x-padding;
height: 180px;
margin-top: -90px;
}
.related-etape-links {
position: absolute;
margin-top: -3rem;
width: calc(100% - $modale-x-padding);
margin-left: -$modale-x-padding;
padding: 0 calc($modale-x-padding / 2);
display: grid;
grid-template-columns: 1fr 1fr;
> .card {
width: 80%;
display: flex;
align-items: center;
cursor: pointer;
transition: transform 0.3s ease-out;
&:hover {
transform: scale(1.05);
}
&.next {
grid-column: 2 / span 1;
justify-self: flex-end;
}
> .icon {
z-index: 2;
width: 10px;
height: 30px;
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
> div {
display: block;
width: 20px;
height: 10px;
&:first-of-type, &:last-of-type {
height: 8px;
clip-path: polygon(0 0, 100% 0, 50% 100%);
}
&:first-of-type {
transform: rotate(180deg);
}
}
}
> .card-content {
z-index: 1;
background-color: white;
display: flex;
width: 100%;
> .infos {
width: 60%;
text-align: center;
> .titre {
padding: 1rem 0.5rem;
font-weight: bold;
font-family: 'Joost', sans-serif;
font-size: $m-font-size;
> span {
font-weight: lighter;
}
}
> .date {
font-size: $sm-font-size;
font-family: 'Marianne', sans-serif;
font-weight: lighter;
padding-bottom: 1rem;
}
}
> .vignette {
width: 40%;
position: relative;
> img {
top: 0;
position: absolute;
width: 100%;
height: 100%;
object-fit: cover;
}
}
}
}
}
}
}
> main {
> .image-viewer-wrapper {
backdrop-filter: blur(3px);
position: fixed;
top: 0;
left: 0;
width: 100%;
padding: 0 5vw;
box-sizing: border-box;
> .partie {
display: inline-block;
> .partie-title {
> h3 {
position: relative;
display: inline-block;
> p {
display: inline-block;
font-size: $l-font-size;
font-family: 'Joost', sans-serif;
margin: 0;
z-index: 1;
position: relative;
padding: 0 0.5rem;
}
> .underline {
z-index: 0;
left: 0;
top: 1.4rem;
position: absolute;
width: 100%;
display: inline-block;
height: 1rem;
height: 100%;
z-index: 100;
> .img-modale {
background-color: rgba(0, 0, 0, 0.8);
width: 100%;
height: 100%;
display: flex;
justify-content: center;
align-items: center;
}
> .simple-viewer {
> .img-wrapper {
max-width: 60%;
display: flex;
flex-direction: column;
> img {
width: 100%;
}
> figcaption {
margin: 0;
background-color: white;
font-size: $sm-font-size;
padding: 0.5rem 1.5rem;
}
}
}
> .swiper-viewer {
z-index: 1;
> .swiper-wrapper {
height: 100%;
width: 100%;
swiper-container {
height: 95%;
swiper-slide {
display: flex;
justify-content: center;
align-items: flex-start;
figure {
margin-top: 3%;
max-width: 60%;
height: 80%;
img {
height: -webkit-fill-available;
max-width: 100%;
margin-bottom: -5px;
object-fit: cover;
}
figcaption {
margin: 0;
background-color: white;
font-size: $sm-font-size;
padding: 0.5rem 1.5rem;
}
}
}
}
}
}
> .close-button {
position: fixed;
top: 2rem;
right: $body-margin-x;
background-color: unset;
border: none;
display: block;
height: 3rem;
width: 3rem;
border-radius: 1.5rem;
cursor: pointer;
background-color: white;
padding: 0;
display: flex;
justify-content: center;
align-items: center;
z-index: 2;
> div {
display: block;
height: 2px;
border-radius: 4px;
width: 60%;
background-color: $main-color;
position: absolute;
transition: transform 0.3s ease;
&:nth-of-type(1) {
transform: rotate(45deg) scale(1);
}
&:nth-of-type(2) {
transform: rotate(-45deg) scale(1);
}
}
&:hover {
> div:nth-of-type(1) {
transform: rotate(45deg) scale(1.1);
}
> div:nth-of-type(2) {
transform: rotate(-45deg) scale(1.1);
}
}
}
}
}
}