redesign blocks présentation et slider actus sur l'intro

This commit is contained in:
Valentin
2024-10-31 20:08:58 +01:00
parent 42ed7763d0
commit c56dadee02
15 changed files with 433 additions and 301 deletions

View File

@@ -1,61 +1,72 @@
.home_introduction {
background-color: rgb(27, 197, 112); // to remove
position: relative;
border-bottom: solid 2px $teal;
background-color: white;
width: 100%;
box-sizing: border-box;
padding: 4rem 1rem;
h2 {
display: none;
}
> .logo {
display: flex;
justify-content: center;
align-items: center;
width: 100%;
padding: 4rem 0;
h2 {
display: none;
}
> div {
z-index: 1;
position: relative;
}
> .logo {
text-align: center;
width: 100%;
margin-bottom: 3rem;
img {
width: 35vw;
@media (min-width: $breakpoint_tablet) {
width: 25vw;
}
@media (min-width: $breakpoint_desktop) {
width: 18vw;
}
}
}
article > div {
height: unset !important;
p {
@include main_text_content();
@media (min-width: $breakpoint_desktop) {
margin-left: 12.5vw;
max-width: 50vw;
}
}
@media (min-width: $breakpoint_tablet) {
padding: 0 !important;
}
}
div.more-link {
@include fluo_button();
margin-top: 3rem;
margin-bottom: 1.5rem;
display: flex;
justify-content: center;
align-items: center;
@media (min-width: $breakpoint_desktop) {
display: flex;
justify-content: flex-end;
}
margin-bottom: 2rem;
img {
width: 50%;
height: auto;
@media (min-width: $breakpoint_tablet) {
width: 100%;
}
@media (min-width: $breakpoint_desktop) {
//width: 18vw;
}
}
@media (min-width: $breakpoint_tablet) {
padding-left: 12.5vw;
padding-right: 12.5vw;
width: 170%;
margin: 0 3rem;
}
}
article > div {
height: unset !important;
min-height: 100%;
p {
@include main_text_content();
width: 100%;
@media (min-width: $breakpoint_tablet) {
padding-right: 3rem;
}
}
@media (min-width: $breakpoint_tablet) {
padding: 0 !important;
}
}
div.more-link {
@include fluo_button();
margin-top: 3rem;
margin-bottom: 1.5rem;
display: flex;
justify-content: center;
align-items: center;
@media (min-width: $breakpoint_tablet) {
position: absolute;
left:0;
right:0;
}
}
@media (min-width: $breakpoint_tablet) {
padding: 8rem 1rem;
padding-top: 4rem;
margin: 6rem 0;
margin-left: 20vw;
margin-right: 20vw;
width: calc(100% - 40vw);
display: flex;
justify-content: space-around;
}
}
// plus sur l'accueil
.home_consultation {
position: relative;
@include beige_gradient();

View File

@@ -39,5 +39,12 @@
src: url('../fonts/Barlow/barlow-light.woff2') format('woff2'),
url('../fonts/Barlow/barlow_light.woff') format('woff');
font-weight: 300;
font-style: normal;
font-style: normal
}
@font-face {
font-family: 'Barlow Condensed';
src: url('../fonts/Barlow/BarlowCondensed-Regular.woff2') format('woff2');
font-weight: normal;
font-style: normal;
}

View File

@@ -24,4 +24,4 @@ em {
#block-erabletheme-titredepage {
display: none;
}
}

View File

@@ -1,7 +1,7 @@
/* SIZES */
$sm_font_size: 0.8rem;
$m_font_size: 0.9rem;
$l_font_size: 1.3rem;
$l_font_size: 1.2rem;
$xl_font_size: 1.6rem;
$main_font_size: 1rem;
$title_size: 2.3rem;
@@ -9,14 +9,18 @@ $title_size: 2.3rem;
/* MIXINS */
@mixin main_title() {
font-family: "Barlow", sans-serif;
font-size: $title_size;
font-family: "Barlow Condensed", sans-serif;
font-size: $l_font_size;
padding: 0 $x_margin;
margin-top: 1rem;
color: $teal;
text-transform: uppercase;
a {
color: $teal;
}
@media (min-width: $breakpoint_tablet) {
font-size: $title_size;
}
}
@mixin main_text_content() {
@@ -27,9 +31,12 @@ $title_size: 2.3rem;
@mixin sous_titre() {
font-family: "Marianne", sans-serif;
font-size: $l_font_size;
font-size: $m_font_size;
color: $teal;
font-weight: 800;
@media (min-width: $breakpoint_tablet) {
font-size: $l_font_size;
}
}
@mixin sous_titre_alt() {
@@ -56,4 +63,4 @@ $title_size: 2.3rem;
a:hover {
background-color: $fluo_green;
}
}
}

View File

@@ -1,8 +1,11 @@
.views-row {
article {
article.actu-teaser {
background-color: white;
padding: 2rem;
box-sizing: border-box;
> div:first-of-type {
width: 100%;
height: 30vh;
aspect-ratio: 16 / 9;
overflow: hidden;
padding-left: $x_margin;
padding-right: $x_margin;
@@ -13,40 +16,41 @@
height: auto;
width: 100%;
}
}
@media (min-width: $breakpoint_tablet) {
height: 20vh;
.legende {
display: none !important;
}
}
}
.preview_meta {
font-family: "Marianne", sans-serif;
font-size: $m_font_size;
font-size: $sm_font_size;
width: auto;
display: flex;
justify-content: space-between;
color: $teal;
border-top: solid 1px $teal;
margin: 0 $x_margin;
margin-top: 1.3rem;
padding-top: 0.7rem;
> div:first-of-type {
font-weight: 800;
@media (min-width: $breakpoint_tablet) {
font-size: $m_font_size;
}
}
.preview_sous_titre {
font-family: "Marianne", sans-serif;
font-size: $l_font_size;
font-size: $m_font_size;
padding: 5px $x_margin;
@media (min-width: $breakpoint_tablet) {
font-size: $l_font_size;
padding-top: 0;
}
}
h2 {
@include main_title();
margin-bottom: 0.5rem;
}
}
}
}

View File

@@ -1,12 +1,18 @@
.slick-container {
@include beige_gradient();
width: 100vw;
border-bottom: solid 2px $teal;
div.views-row article {
width: 100%;
margin-bottom: 5rem;
@media screen and (min-width: $breakpoint_tablet) {
width: 200vw;
transform: translateX(-50vw);
}
div.views-row {
padding: 0 3vw;
@media screen and (min-width: $breakpoint_tablet) {
padding: 0 6vw;
}
> article {
width: 100%;
> div:first-of-type { // container du lien image
width: 100%;
height: 30vh !important;
overflow-y: hidden;
padding: 0 !important;
display: flex;
@@ -21,9 +27,6 @@
}
}
}
@media (min-width: $breakpoint_desktop) {
height: 50vh !important;
}
}
@media (min-width: $breakpoint_tablet) {
.preview_meta {
@@ -33,48 +36,75 @@
h2, .preview_sous_titre {
padding-left: 0;
padding-right: 0;
}
}
}
}
}
}
.slick-arrow {
display: none !important;
width: 2rem;
height: 2rem;
width: 1.5rem;
height: 1.5rem;
border-radius: 1.5rem;
border: solid 1px $teal;
top: unset;
bottom: 5%;
background-color: rgba(255, 255, 255, 0.4) !important;
background-color: $teal !important;
transition: background-color 0.3s ease;
@media (min-width: $breakpoint_desktop) {
transform: translateY(-5rem);
top: unset !important;
bottom: calc(-25px - 4rem);
@media (min-width: $breakpoint_tablet) {
width: 2rem;
height: 2rem;
bottom: calc(-25px - 6rem);
}
&:hover {
background-color: white !important;
&::before {
color: $teal;
}
}
&::before {
opacity: 1 !important;
color: white;
font-weight: bold;
font-family: 'Marianne', sans-serif;
display: block;
font-size: $sm_font_size !important;
@media (min-width: $breakpoint_tablet) {
font-size: $l_font_size !important;
}
}
}
.slick-arrow:hover {
background-color: rgba(255, 255, 255, 0.8) !important;
.slick-prev {
left: 20vw;
@media (min-width: $breakpoint_desktop) {
left: calc(50vw + 35vw);
}
}
.slick-arrow::before {
color: $teal;
font-family: 'Marianne', sans-serif;
display: block;
padding-bottom: 3px;
.slick-next {
right: 20vw;
@media (min-width: $breakpoint_desktop) {
right: calc(50vw + 35vw);
}
}
> div > div > div:first-of-type {
z-index: 2;
position: relative;
margin-bottom: 4rem;
@media (min-width: $breakpoint_tablet) {
margin-bottom: 6rem;
}
}
#carousel_dots {
position: relative;
margin-top: -15px;
ul {
position: relative;
bottom: 0;
li.slick-active button::before{
color: $fluo_green;
}
li button::before{
color: rgba(0.9, 0.9, 0.9, 1);
}
}
@media (min-width: $breakpoint_desktop) {
margin-top: 4vh;
}
z-index: 1;
position: relative;
margin-top: -15px;
ul {
position: relative;
bottom: 0;
li.slick-active button::before{
color: $teal;
}
li button::before{
color: rgba(0.9, 0.9, 0.9, 1);
}
}
}
footer {
@include fluo_button();
@@ -82,16 +112,4 @@
margin-top: 4rem;
margin-bottom: 4rem;
}
@media (min-width: $breakpoint_tablet) {
padding: 0 12.5vw;
.slick-prev, .slick-next {
display: block !important;
}
.slick-prev {
left: -5rem;
}
.slick-next {
right: -5rem;
}
}
}
}

View File

@@ -174,9 +174,6 @@ body.toolbar-fixed header[role="banner"] {
padding: 0;
align-items: center;
flex-direction: column;
@media screen and (min-width: $breakpoint_desktop) {
padding-top: 3rem;
}
> li {
width: 100%;
display: flex;
@@ -264,53 +261,51 @@ body.toolbar-fixed header[role="banner"] {
}
}
#block-erabletheme-navigationprincipale {
width: 100vw;
display: none;
position: absolute;
padding-top: 1rem;
// background-color: white;
// box-shadow: 0px 4px 4px rgba(0, 0, 0, 0.2);
@media (min-width: $breakpoint_desktop) {
display: block;
}
ul {
width: 100%;
display: flex;
padding: 1rem 10vw;
justify-content: space-around;
// border-top: solid 1px $dark_green;
li {
font-family: 'Marianne', sans-serif;
font-size: $m_font_size;
padding: 4px 12px;
background-color: white;
transition: background-color 0.3s ease;
&:first-of-type {
display: flex;
justify-items: center;
&::after {
content: url(../assets/icons/arrow-down-s-line.svg);
display: inline-block;
height: 1rem;
width: 1rem;
margin-left: 0.2rem;
}
background: linear-gradient(to bottom, white, transparent);
width: 100vw;
display: none;
position: absolute;
padding-top: 1rem;
@media (min-width: $breakpoint_desktop) {
display: block;
}
ul {
width: 100%;
display: flex;
padding: 1rem 10vw;
justify-content: space-around;
li {
font-family: 'Marianne', sans-serif;
font-size: $m_font_size;
padding: 4px 12px;
background-color: white;
transition: background-color 0.3s ease;
&:first-of-type {
display: flex;
justify-items: center;
&::after {
content: url(../assets/icons/arrow-down-s-line.svg);
display: inline-block;
height: 1rem;
width: 1rem;
margin-left: 0.2rem;
}
&:hover, &.submenu-open {
}
&:hover, &.submenu-open {
background-color: $fluo_green;
}
a {
font-weight: 800;
color: black;
&:is-active {
background-color: $fluo_green;
}
a {
font-weight: 800;
color: black;
&:is-active {
background-color: $fluo_green;
}
}
}
}
}
}
}
}
#block-erabletheme-leprogramme {
position: absolute;
position: fixed;
background-color: white;
max-height: 0vh;
overflow: hidden;
@@ -327,6 +322,9 @@ body.toolbar-fixed header[role="banner"] {
margin: 0.5rem 0;
a {
color: black;
&:hover, &.is-active {
font-weight: 800;
}
}
}
}