index page projets

This commit is contained in:
Valentin
2024-11-05 01:44:18 +01:00
parent 018960837d
commit bd1b450a45
34 changed files with 1084 additions and 382 deletions

View File

@@ -1,21 +1,17 @@
.fullpage {
margin-bottom: 10vh;
margin-top: -3vh;
padding-top: 3vh;
@include beige_gradient();
padding-bottom: 3vh;
background-color: white;
position: relative;
> h2 {
margin-top: 5vh;
h2 {
margin-top: 5vh !important;
margin-bottom: 7vh;
background-color: $beige;
z-index: 1;
position: relative;
width: auto;
display: inline-block;
@include main_title();
@media (min-width: $breakpoint_tablet) {
background-color: unset;
}
}
.legende {
@@ -26,17 +22,7 @@
.fullpage_content {
> h2 {
margin-top: 5vh;
margin-bottom: 1rem;
background-color: $beige;
z-index: 1;
position: relative;
width: auto;
display: inline-block;
@include main_title();
@media (min-width: $breakpoint_tablet) {
background-color: unset;
}
}
.sous_titre {
@@ -82,7 +68,6 @@
display: none;
}
h3, h4, h5, h6 {
margin-bottom: 1rem;
padding-left: $x_margin;
@@ -94,14 +79,15 @@
margin-bottom: 8vh;
}
@media (min-width: $breakpoint_tablet) {
margin-top: 2vh;
padding-top: 0;
width: 75vw;
margin-left: 12.5vw;
margin-top: 5vh;
padding-top: 0;
width: 75vw;
margin-left: 12.5vw;
}
@media (min-width: $breakpoint_desktop) {
width: 50%;
margin-left: 25%;
margin-top: 13vh;
width: 50vw;
margin-left: 25%;
}
&.large-container {
@@ -112,3 +98,91 @@
}
}
}
main:has(#block-erabletheme-leprogramme-2) {
.fullpage {
@media (min-width: $breakpoint_tablet) {
width: 70vw;
margin-left: 2vw;
}
@media (min-width: $breakpoint_desktop) {
width: 50vw;
margin-left: 3vw;
margin-right: 24vw;
}
}
}
aside.layout-sidebar-first:has(#block-erabletheme-leprogramme-2) {
height: auto;
margin-top: 2vh;
margin-bottom: 2vh;
@media screen and (min-width: $breakpoint_tablet) {
margin-top: 5vh;
margin-bottom: 0;
}
@media screen and (min-width: $breakpoint_desktop) {
margin-top: 13vh;
}
> div {
width: auto;
display: inline-block;
@media screen and (min-width: $breakpoint_tablet) {
position: sticky;
top: 5vh;
width: 27vw;
}
@media screen and (min-width: $breakpoint_desktop) {
top: 12vh;
width: 22vw;
}
#block-erabletheme-leprogramme-2 {
padding: 1.5rem;
background-color: white;
margin-left: 2vw;
> h2 {
padding-bottom: 1rem;
border-bottom: solid 1px $teal;
display: flex;
justify-content: space-between;
cursor: pointer;
> span {
@include sous_titre();
}
> div {
mask-image: url('/themes/erabletheme/assets/icons/arrow-down-s-line.svg');
background-size: contain;
background-color: $teal;
width: 1.3rem;
height: 1.3rem;
color: $teal;
transform: rotate(0deg);
transition: transform 0.3s ease;
&.closed {
transform: rotate(180deg);
}
}
}
> ul {
max-height: 100vh;
overflow: hidden;
transition: max-height 0.6s ease;
> li {
margin: 1rem 0;
@include main_text_content();
> a {
color: black;
font-size: $m_font_size;
&:hover,
&.is-active {
font-weight: 800;
}
}
}
&.closed {
max-height: 0vh;
}
}
}
}
}

View File

@@ -1,57 +1,77 @@
.paragraph--type--membre-equipe {
height: auto;
display: grid;
grid-template-columns: 30vw auto 1fr;
grid-auto-rows: auto;
margin-bottom: 5vh;
> div:first-of-type {
grid-row: 1 / 3;
display: flex;
align-items: center;
> div {
width: 20vw;
height: 20vw;
overflow: hidden;
height: auto;
display: grid;
grid-template-columns: 30vw auto 1fr;
grid-auto-rows: auto;
margin-bottom: 5vh;
padding: 0 3vw !important;
&:first-of-type {
margin-top: 5vh;
}
> div:first-of-type {
grid-row: 1 / 3;
display: flex;
align-items: center;
> div {
width: 20vw;
height: 20vw;
position: relative;
img {
border-radius: 10vw;
img {
width: 100%;
height: 100%;
object-fit: cover;
}
}
width: 100%;
height: 100%;
object-fit: cover;
}
&::after {
top: 0;
left: 0;
position: absolute;
content: '';
height: 100%;
width: 100%;
background-image: url('/themes/erabletheme/assets/cercle_dessin.svg');
background-size: cover;
display: block;
pointer-events: none;
}
}
}
> div:nth-of-type(2),
> div:nth-of-type(3) {
margin-bottom: 2vh;
align-self: flex-end;
@include sous_titre();
}
> div:nth-of-type(3) {
padding-left: 0.5rem;
}
> div:last-of-type {
grid-column: 2 / 4;
@include main_text_content();
> div > p {
margin-top: 0 !important;
padding-left: 0;
}
}
@media (min-width: $breakpoint_tablet) {
grid-template-columns: 10vw auto 1fr;
> div:first-of-type > div {
width: 10vw;
height: 10vw;
border-radius: 5vw;
}
> div:nth-of-type(2),
> div:nth-of-type(3) {
margin-bottom: 2vh;
align-self: flex-end;
@include sous_titre();
> div:nth-of-type(2) {
padding-left: 3vw;
}
> div:nth-of-type(3) {
padding-left: 0.5rem;
}
> div:last-of-type {
grid-column: 2 / 4;
@include main_text_content();
}
@media (min-width: $breakpoint_tablet) {
grid-template-columns: 10vw auto 1fr;
> div:first-of-type > div {
width: 10vw;
height: 10vw;
border-radius: 5vw;
}
> div:nth-of-type(2) {
padding-left: 3vw;
}
> div:last-of-type {
padding-left: 3vw;
}
> div:last-of-type > div > p {
padding-left: 3vw;
}
}
}

View File

@@ -2,7 +2,8 @@
background-color: white;
width: 100%;
box-sizing: border-box;
padding: 4rem 1rem;
padding: 3rem 1rem;
margin: 2rem 0;
h2 {
display: none;
}
@@ -15,14 +16,11 @@
img {
width: 50%;
height: auto;
@media (min-width: $breakpoint_tablet) {
@media (min-width: $breakpoint_desktop) {
width: 100%;
}
@media (min-width: $breakpoint_desktop) {
//width: 18vw;
}
}
@media (min-width: $breakpoint_tablet) {
@media (min-width: $breakpoint_desktop) {
width: 170%;
margin: 0 3rem;
}
@@ -34,8 +32,12 @@
@include main_text_content();
width: 100%;
@media (min-width: $breakpoint_tablet) {
padding-left: 3rem;
padding-right: 3rem;
}
@media (min-width: $breakpoint_desktop) {
padding-left: 0;
}
}
@media (min-width: $breakpoint_tablet) {
padding: 0 !important;
@@ -61,6 +63,8 @@
margin-left: 20vw;
margin-right: 20vw;
width: calc(100% - 40vw);
}
@media (min-width: $breakpoint_desktop) {
display: flex;
justify-content: space-around;
}
@@ -122,13 +126,46 @@
}
}
#sites-map-container {
#popup {
h3 {
@include sous_titre();
.map-projets {
background-color: white;
padding: 1rem 0;
margin-left: $x_margin;
width: calc(100% - #{$x_margin} * 2);
@media (min-width: $breakpoint_tablet) {
margin-left: 20vw;
width: calc(100% - 40vw);
}
@media (min-width: $breakpoint_desktop) {
margin-left: 25vw;
width: calc(100% - 50vw);
}
> h2 {
@include main_title();
}
> .projets_intro {
padding: 0 3vw;
@include main_text_content();
h1, h2, h3,
h4, h5, h6 {
@include sous_titre_alt();
}
p {
@include main_text_content();
a {
color: black;
}
> p {
margin: 1rem 0;
}
}
> #sites-map-container {
margin: 0 2rem;
width: calc(100% - 4rem);
#popup {
h3 {
@include sous_titre();
}
p {
@include main_text_content();
}
}
}
}

View File

@@ -116,6 +116,7 @@
grid-row: 1/7;
align-self: center;
justify-self: center;
position: relative;
> img {
width: 10rem;
height: 10rem;
@@ -123,6 +124,18 @@
padding: 1rem;
margin-right: 1rem;
}
&::after {
top: 1.2rem;
left: 1.2rem;
position: absolute;
content: '';
width: 8rem;
height: 8rem;
background-image: url('/themes/erabletheme/assets/cercle_dessin.svg');
background-size: cover;
display: block;
pointer-events: none;
}
}
> p.occupation {
grid-column: 2;

View File

@@ -11,6 +11,7 @@
display: grid;
grid-template-columns: 0.3fr 1fr;
align-items: center;
padding: 0 3vw;
> div:first-of-type {
> div {
width: 30vw;

View File

@@ -0,0 +1,150 @@
.fullpage.projets {
padding-top: 5vh;
> .intro_map {
@media (min-width: $breakpoint_desktop) {
display: flex;
flex-direction: row;
}
> header {
margin-right: 5vw;
padding: 0 3vw;
@include main_text_content();
h1, h2, h3,
h4, h5, h6 {
padding: 0 !important;
margin: 0 !important;
@include sous_titre_alt();
}
> h2 {
margin-bottom: 5vh !important;
padding-bottom: 3.5vh !important;
border-bottom: 1px solid $teal;
@include main_title();
@media (min-width: $breakpoint_desktop) {
width: 100%;
}
}
}
.projets_intro {
display: none;
}
#sites-map-container {
width: 70%;
padding: 0 !important;
@media screen and (min-width: $breakpoint_tablet) {
width: 50%;
}
@media (min-width: $breakpoint_desktop) {
margin-right: 8vw !important;
width: 85%;
}
#popup {
h3 {
@include sous_titre();
}
p {
@include main_text_content();
}
}
}
}
> .projets_list {
display: grid;
margin: 3vh $x_margin;
margin-top: 8vh;
grid-template-columns: 1fr;
gap: 2rem;
@media (min-width: $breakpoint_tablet) {
grid-template-columns: repeat(2, 1fr);
}
@media (min-width: $breakpoint_desktop) {
grid-template-columns: repeat(3, 1fr);
}
> h3 {
display: none;
}
> .views-row{
display: grid;
grid-template-columns: 0.5fr 1fr;
grid-template-rows: repeat(4, auto);
> .views-field-field-diaporama {
grid-column: 1;
grid-row: 1/5;
align-self: center;
> .field-content {
width: 8rem;
height: 8rem;
> a {
width: 100%;
height: 100%;
overflow: hidden;
display: block;
display: flex;
align-items: center;
justify-content: center;
img {
width: 100%;
height: 100%;
mask-image: url('/themes/erabletheme/assets/shapes/shape_1.svg');
mask-repeat: no-repeat;
mask-size: 100% 100%;
mask-position: center;
object-fit: cover;
}
}
}
}
> .views-field-title {
grid-column: 2;
grid-row: 1;
margin-bottom: 1rem;
a {
color: $teal;
}
@include sous_titre();
}
> .views-field-field-sous-titre {
grid-column: 2;
grid-row: 2;
font-size: 1.1rem !important;
margin-bottom: 1rem;
line-height: 1.3;
a {
color: black;
}
@include sous_titre_alt();
}
> .views-field-field-localisation-textuel {
grid-column: 2;
grid-row: 3;
margin-bottom: 1rem;
@include main_text_content();
a {
color: black;
}
}
> .views-field-field-th {
grid-column: 2;
grid-row: 4;
ul {
li {
display: inline-block;
font-size: 0.8rem !important;
background-color: #d3f0ea;
margin: 0.2rem;
transition: background-color 0.3s ease;
@include main_text_content();
&:hover {
background-color: #8ec2b8;
}
a {
display: block;
color: black;
padding: 0.2rem 0.4rem;
}
}
}
}
}
}
}

View File

@@ -6,8 +6,20 @@
}
} */
body {
background-color: lightgrey;
}
.layout-container {
margin: 0 !important;
display: flex;
}
main:has(#block-erabletheme-leprogramme-2) {
display: flex;
flex-direction: column-reverse;
@media screen and (min-width: $breakpoint_tablet) {
flex-direction: row-reverse;
}
}
strong {

View File

@@ -5,7 +5,7 @@
box-sizing: border-box;
> div:first-of-type {
width: 100%;
aspect-ratio: 16 / 9;
aspect-ratio: 20 / 9;
overflow: hidden;
padding-left: $x_margin;
padding-right: $x_margin;
@@ -49,6 +49,7 @@
h2 {
margin-bottom: 0.5rem;
margin-top: 1rem !important;
@include main_title();
}
}

View File

@@ -22,5 +22,6 @@
@import "_partenaires.scss";
@import "_consultation.scss";
@import "_meetup.scss";
@import "_projets.scss";
@import "_actualites.scss";
@import "_faq.scss";