new design bandeau actu home

This commit is contained in:
Ouidade Soussi Chiadmi 2025-03-15 00:47:01 +01:00
parent b1c23fe6a1
commit b81d9a77bd
5 changed files with 425 additions and 261 deletions

File diff suppressed because one or more lines are too long

View File

@ -1530,46 +1530,54 @@ footer {
padding-bottom: 0rem;
}
}
#actus-caroussel .content-actus .view .view-rows-wrapper {
display: flex;
flex-direction: row;
flex-wrap: nowrap;
width: 100vw;
}
#actus-caroussel .content-actus .views-row {
padding: 1rem;
}
@media (max-width: 550px) {
#actus-caroussel .content-actus .views-row {
width: 296px !important;
padding-top: 3rem;
}
}
#actus-caroussel .content-actus .views-row article.node-type-actualite div {
#actus-caroussel .content-actus .view-rows-wrapper {
display: flex;
flex-direction: column;
align-items: flex-start;
flex-wrap: wrap;
}
#actus-caroussel .content-actus .views-row article.node-type-actualite div .field_field_images {
order: 1;
background-color: black;
-moz-border-radius: 9px; /* pour Mozilla */
-khtml-border-radius: 9px; /* pour Safari et Chrome */
-webkit-border-radius: 9px; /* pour Safari sur Mac */
border-radius: 9px; /* CSS3 */
#actus-caroussel .content-actus .views-row {
display: flex;
margin: auto;
width: 50%;
font-size: 0.5rem;
margin-top: 1rem;
margin-bottom: 1rem;
padding-bottom: 1rem;
display: flex;
flex-direction: row;
align-items: center;
border-bottom: solid black 0.5px;
}
#actus-caroussel .content-actus .views-row .node-type-actualite .content-wrapper-actu {
display: grid;
grid-template-columns: 1fr 2fr;
grid-template-rows: repeat(5 1fr);
}
#actus-caroussel .content-actus .views-row .node-type-actualite .content-wrapper-actu .field_field_images {
grid-column: 1;
grid-row: 1/span 5;
width: 250px;
margin-right: 1rem;
}
#actus-caroussel .content-actus .views-row .node-type-actualite .content-wrapper-actu .field_field_images .actu-diaporama {
width: 100%;
margin-bottom: 0.6rem;
display: flex;
flex-direction: row;
align-items: center !important;
margin: auto;
margin-right: 1rem;
}
@media (max-width: 550px) {
#actus-caroussel .content-actus .views-row article.node-type-actualite div .field_field_images {
height: 170px;
}
#actus-caroussel .content-actus .views-row .node-type-actualite .content-wrapper-actu .field_field_images .actu-diaporama .slick-list {
margin: auto;
padding-top: 0 !important;
}
#actus-caroussel .content-actus .views-row article.node-type-actualite div .field_field_images div.cadre-img-zoom {
height: 100%;
display: block;
#actus-caroussel .content-actus .views-row .node-type-actualite .content-wrapper-actu .field_field_images .actu-diaporama .slick-list .cadre-img-zoom {
display: flex;
margin: auto;
width: 250px;
height: auto;
}
#actus-caroussel .content-actus .views-row article.node-type-actualite div .field_field_images div.cadre-img-zoom img {
#actus-caroussel .content-actus .views-row .node-type-actualite .content-wrapper-actu .field_field_images .actu-diaporama .slick-list .cadre-img-zoom img {
width: 100%;
height: auto;
object-fit: cover;
@ -1578,106 +1586,161 @@ footer {
-webkit-border-radius: 9px; /* pour Safari sur Mac */
border-radius: 9px; /* CSS3 */
}
@media (max-width: 550px) {
#actus-caroussel .content-actus .views-row article.node-type-actualite div .field_field_images div.cadre-img-zoom img {
max-height: 170px;
}
#actus-caroussel .content-actus .views-row .node-type-actualite .content-wrapper-actu .field_field_images .actu-diaporama .slick-list blockquote.image-field-caption {
margin: 0;
}
#actus-caroussel .content-actus .views-row article.node-type-actualite div .field_field_type_d_actualite {
#actus-caroussel .content-actus .views-row .node-type-actualite .content-wrapper-actu .field_field_images .actu-diaporama .slick-list blockquote.image-field-caption p {
margin-top: 0;
font-size: 0.4rem;
}
#actus-caroussel .content-actus .views-row .node-type-actualite .content-wrapper-actu .field_field_images .actu-diaporama button {
margin: auto;
transform: none;
top: 30%;
height: 0;
width: 0;
}
#actus-caroussel .content-actus .views-row .node-type-actualite .content-wrapper-actu .field_field_images .actu-diaporama button:before {
transform: scale(0.4) !important;
}
#actus-caroussel .content-actus .views-row .node-type-actualite .content-wrapper-actu .field_field_images .actu-diaporama button:before:hover {
filter: brightness(1.75);
}
#actus-caroussel .content-actus .views-row .node-type-actualite .content-wrapper-actu .field_field_images .actu-diaporama button.slick-next {
right: 15%;
padding: 0;
}
#actus-caroussel .content-actus .views-row .node-type-actualite .content-wrapper-actu .field_field_images .actu-diaporama button.slick-prev {
left: 5%;
padding: 0;
}
#actus-caroussel .content-actus .views-row .node-type-actualite .content-wrapper-actu .field_field_type_d_actualite,
#actus-caroussel .content-actus .views-row .node-type-actualite .content-wrapper-actu .field_field_date,
#actus-caroussel .content-actus .views-row .node-type-actualite .content-wrapper-actu .field_field_site,
#actus-caroussel .content-actus .views-row .node-type-actualite .content-wrapper-actu .field_title,
#actus-caroussel .content-actus .views-row .node-type-actualite .content-wrapper-actu .field_body,
#actus-caroussel .content-actus .views-row .node-type-actualite .content-wrapper-actu .field_field_liens {
grid-column: 2;
}
#actus-caroussel .content-actus .views-row .node-type-actualite .content-wrapper-actu .field_field_type_d_actualite {
order: 2;
}
#actus-caroussel .content-actus .views-row .node-type-actualite .content-wrapper-actu .field_field_type_d_actualite a {
text-transform: uppercase;
color: red;
font-size: 0.5rem;
font-family: "gilroy-bold";
font-size: 0.6rem;
font-weight: 600;
display: inline-flex;
flex-direction: row;
align-items: center;
}
#actus-caroussel .content-actus .views-row article.node-type-actualite div .field_field_type_d_actualite::before {
content: url("../img/type-actu.svg");
padding-right: 0.3rem;
padding-bottom: 0.2rem;
#actus-caroussel .content-actus .views-row .node-type-actualite .content-wrapper-actu .field_field_type_d_actualite a::before {
content: "";
display: inline-block;
width: 16px; /* Ajuste la largeur */
height: 16px; /* Ajuste la hauteur */
background-image: url("../img/type-actu.svg");
background-size: contain;
background-repeat: no-repeat;
padding-right: 0.4rem;
}
#actus-caroussel .content-actus .views-row article.node-type-actualite div .field_field_type_d_actualite a {
color: red;
}
#actus-caroussel .content-actus .views-row article.node-type-actualite div .field_field_date {
#actus-caroussel .content-actus .views-row .node-type-actualite .content-wrapper-actu .field_field_date {
order: 3;
color: red;
font-size: 0.6rem;
font-weight: 600;
display: inline-flex;
flex-direction: row;
align-items: center;
font-size: 0.5rem;
font-family: "gilroy-bold";
}
#actus-caroussel .content-actus .views-row article.node-type-actualite div .field_field_date::before {
content: url("../img/date-actu.svg");
padding-right: 0.3rem;
#actus-caroussel .content-actus .views-row .node-type-actualite .content-wrapper-actu .field_field_date::before {
content: "";
display: inline-block;
width: 16px; /* Ajuste la largeur */
height: 16px; /* Ajuste la hauteur */
background-image: url("../img/date-actu.svg");
background-size: contain;
background-repeat: no-repeat;
padding-right: 0.4rem;
}
#actus-caroussel .content-actus .views-row article.node-type-actualite div .field_title {
#actus-caroussel .content-actus .views-row .node-type-actualite .content-wrapper-actu .field_field_site {
order: 4;
padding-top: 0.2rem;
}
#actus-caroussel .content-actus .views-row article.node-type-actualite div .field_title h2 {
#actus-caroussel .content-actus .views-row .node-type-actualite .content-wrapper-actu .field_field_site a {
color: red;
font-size: 0.6rem;
font-weight: 600;
display: inline-flex;
align-items: center;
padding-left: 0.2rem;
}
#actus-caroussel .content-actus .views-row .node-type-actualite .content-wrapper-actu .field_field_site a::before {
content: "";
display: inline-block;
width: 10px; /* Ajuste la largeur */
height: 10px; /* Ajuste la hauteur */
background-image: url("../img/map_pointer.svg");
background-size: contain;
background-repeat: no-repeat;
padding-right: 0.5rem;
}
#actus-caroussel .content-actus .views-row .node-type-actualite .content-wrapper-actu .field_title {
order: 5;
line-height: 1rem;
}
#actus-caroussel .content-actus .views-row .node-type-actualite .content-wrapper-actu .field_title a {
color: rgb(7, 50, 194);
font-size: 1.2rem;
}
#actus-caroussel .content-actus .views-row .node-type-actualite .content-wrapper-actu .field_title h2 {
margin: 0;
line-height: 0.4;
padding-bottom: 0.6rem;
padding-left: 0;
}
#actus-caroussel .content-actus .views-row article.node-type-actualite div .field_title h2 a {
font-size: 0.8rem;
color: rgb(7, 50, 194);
}
#actus-caroussel .content-actus .views-row article.node-type-actualite div .field_body {
order: 5;
#actus-caroussel .content-actus .views-row .node-type-actualite .content-wrapper-actu .field_body {
order: 6;
padding-bottom: 1rem;
opacity: 1 !important;
transform: none !important;
font-family: "gilroy-regular";
padding-bottom: 0.5rem;
}
#actus-caroussel .content-actus .views-row article.node-type-actualite div .field_body p {
margin: 0;
margin-bottom: 1rem;
font-size: 0.7rem;
#actus-caroussel .content-actus .views-row .node-type-actualite .content-wrapper-actu .field_body p {
font-size: 0.8rem;
}
#actus-caroussel .content-actus .views-row article.node-type-actualite div .field_body a {
color: rgb(7, 50, 194);
}
#actus-caroussel .content-actus .views-row article.node-type-actualite div .field_field_liens {
order: 6;
#actus-caroussel .content-actus .views-row .node-type-actualite .content-wrapper-actu .field_field_liens {
order: 7;
padding: 0;
width: fit-content;
}
#actus-caroussel .content-actus .views-row .node-type-actualite .content-wrapper-actu .field_field_liens a {
display: flex;
flex-direction: row;
padding-left: 0.5rem;
background: black;
}
@media (max-width: 810px) {
#actus-caroussel .content-actus .views-row article.node-type-actualite div .field_field_liens {
margin-left: 0;
}
}
#actus-caroussel .content-actus .views-row article.node-type-actualite div .field_field_liens a {
display: inline-flex;
align-items: center;
color: white;
background: black;
text-transform: uppercase;
font-size: 0.6rem;
}
#actus-caroussel .content-actus .views-row article.node-type-actualite div .field_field_liens a svg {
#actus-caroussel .content-actus .views-row .node-type-actualite .content-wrapper-actu .field_field_liens a svg {
display: none;
}
#actus-caroussel .content-actus .views-row article.node-type-actualite div .field_field_liens a::after {
#actus-caroussel .content-actus .views-row .node-type-actualite .content-wrapper-actu .field_field_liens a::after {
display: inline-flex;
content: url("../img/noun-arrow-to-right.svg");
padding-right: 0.2rem;
padding-left: 0.2rem;
}
#actus-caroussel .content-actus .views-row:nth-child(odd) {
position: relative;
top: 60px;
#actus-caroussel .content-actus .views-row .toggle-actualite {
display: block;
width: 40px;
height: 40px;
margin: 10px auto;
border: none;
background-color: transparent;
font-size: 24px;
cursor: pointer;
transition: transform 0.3s ease;
}
@media (max-width: 550px) {
#actus-caroussel .content-actus .views-row:nth-child(odd) {
top: 0;
}
#actus-caroussel .content-actus .views-row .toggle-actualite:hover {
transform: scale(1.2);
}
header #block-quartiers-de-demain-logoquartiersdedemain .field_field_logo .qdd-header {
@ -3966,6 +4029,10 @@ main {
opacity: 1 !important;
transform: none !important;
}
#ressources .layout-content .content_container .views-element-container .view-rows-wrapper .views-row .type-vidéo .img {
width: 100%;
height: auto;
}
#ressources .layout-content .content_container .views-element-container .view-rows-wrapper .views-row:has(.type-podcast) {
width: 50%;
}

View File

@ -372,35 +372,35 @@ document.addEventListener('DOMContentLoaded', function() {
//////////// start slideshow home //////////////////////////
$(document).ready(function(){
let actuview = $('.content-actus .view .view-rows-wrapper')
if (actuview) {
actuview.slick({
slidesToShow: 3,
dots: false,
arrows: true,
adaptiveHeight: false,
autoplay: false,
responsive: [
{
breakpoint: 810,
settings: {
slidesToShow: 1,
adaptiveHeight: false,
arrows: true,
draggable: true,
autoplay: false,
}
}]
});
console.log('salut slick home');
// $(document).ready(function(){
// let actuview = $('.content-actus .view .view-rows-wrapper')
// if (actuview) {
// actuview.slick({
// slidesToShow: 3,
// dots: false,
// arrows: true,
// adaptiveHeight: false,
// autoplay: false,
// responsive: [
// {
// breakpoint: 810,
// settings: {
// slidesToShow: 1,
// adaptiveHeight: false,
// arrows: true,
// draggable: true,
// autoplay: false,
// }
// }]
// });
// console.log('salut slick home');
}
$('.slick-carousel').slick({
lazyLoad: 'progressive', // Option 'ondemand' ou 'progressive'
});
// }
// $('.slick-carousel').slick({
// lazyLoad: 'progressive', // Option 'ondemand' ou 'progressive'
// });
});
// });
$(document).ready(function () {
let diapohome = $('.config_pages--type--diaporama-home .diaporama');
@ -438,32 +438,37 @@ $(document).ready(function () {
//////////// start slideshow /actualites //////////////////////////
$(document).ready(function(){
let actuview2 = $('.content-wrapper-actu .field_field_images .actu-diaporama')
if (actuview2) {
actuview2.slick({
slidesToShow: 1,
dots: false,
arrows: true,
adaptiveHeight: true,
autoplay: false,
responsive: [
{
breakpoint: 810,
settings: {
slidesToShow: 1,
adaptiveHeight: true,
arrows: true,
draggable: true,
autoplay: false,
}
}]
});
console.log('salut slick actualites');
}
// $('.slick-carousel').slick({
// lazyLoad: 'progressive', // Option 'ondemand' ou 'progressive'
// });
// Vérifier si on N'EST PAS sur la page #home
// if (!$("#home").length) {
let actuview2 = $('.content-wrapper-actu .field_field_images .actu-diaporama');
if (actuview2.length > 0) {
actuview2.slick({
slidesToShow: 1,
dots: false,
arrows: true,
adaptiveHeight: true,
autoplay: false,
responsive: [
{
breakpoint: 810,
settings: {
slidesToShow: 1,
adaptiveHeight: true,
arrows: true,
draggable: true,
autoplay: false,
}
}
]
});
console.log('Slick activé sur les actualités');
// }
// } else {
console.log('Slick désactivé sur la page Home');
}
});
//////////// end slideshow /actualites //////////////////////////

View File

@ -185,6 +185,10 @@
opacity: 1 !important;
transform: none !important;
}
.img{
width: 100%;
height: auto;
}
}
}

View File

@ -27,144 +27,210 @@
padding-bottom: 0rem;
}
}
.view .view-rows-wrapper{
.view-rows-wrapper{
display: flex;
flex-direction: column;
flex-wrap: wrap;
}
.views-row{
display: flex;
margin: auto;
width: 50%;
font-size: 0.5rem;
margin-top: 1rem;
margin-bottom: 1rem;
padding-bottom: 1rem;
display: flex;
flex-direction: row;
flex-wrap: nowrap;
width: 100vw;
}
.views-row{
// width: 500px !important;
padding: 1rem;
@media(max-width: 550px){
width: 296px !important;
padding-top: 3rem;
}
article.node-type-actualite{
div{
display: flex;
flex-direction: column;
align-items: flex-start;
align-items: center;
border-bottom: solid black 0.5px;
.node-type-actualite{
// padding-bottom: 2rem;
.content-wrapper-actu{
display: grid;
grid-template-columns: 1fr 2fr;
grid-template-rows: repeat(5 1fr);
.field_field_images{
order: 1;
background-color: black;
-moz-border-radius: 9px; /* pour Mozilla */
-khtml-border-radius: 9px; /* pour Safari et Chrome */
-webkit-border-radius: 9px; /* pour Safari sur Mac */
border-radius: 9px; /* CSS3 */
// height: 250px;
width: 100%;
margin-bottom: 0.6rem;
@media(max-width: 550px){
height: 170px;
}
div.cadre-img-zoom{
height: 100%;
display: block;
// height: 100%;
img{
width: 100%;
height: auto;
object-fit: cover;
-moz-border-radius: 9px; /* pour Mozilla */
-khtml-border-radius: 9px; /* pour Safari et Chrome */
-webkit-border-radius: 9px; /* pour Safari sur Mac */
border-radius: 9px; /* CSS3 */
@media(max-width: 550px){
max-height: 170px;
grid-column: 1;
grid-row: 1 /span 5;
width: 250px;
// display: flex;
// margin: auto;
margin-right: 1rem;
.actu-diaporama{
// height: 150px;
width: 100%;
display: flex;
flex-direction: row;
align-items: center !important;
margin:auto;
margin-right: 1rem;
.slick-list{
margin: auto;
padding-top: 0 !important;
.cadre-img-zoom{
display: flex;
margin: auto;
width: 250px;
height: auto;
img{
width: 100%;
height: auto;
object-fit: cover;
-moz-border-radius: 9px; /* pour Mozilla */
-khtml-border-radius: 9px; /* pour Safari et Chrome */
-webkit-border-radius: 9px; /* pour Safari sur Mac */
border-radius: 9px; /* CSS3 */
}
}
blockquote.image-field-caption{
margin: 0;
p{
margin-top: 0;
font-size: 0.4rem;
}
}
}
button{
margin: auto;
transform: none;
top: 30%;
height: 0;
width: 0;
&:before{
transform: scale(0.4) !important;
&:hover{
filter: brightness(1.75);
}
}
}
button.slick-next{
right: 15% ;
padding: 0;
}
button.slick-prev{
left: 5%;
padding: 0;
}
}
}
}
.field_field_type_d_actualite,
.field_field_date,
.field_field_site,
.field_title,
.field_body,
.field_field_liens{
grid-column: 2;
}
.field_field_type_d_actualite{
order: 2;
a{
text-transform: uppercase;
color: red;
font-size: 0.5rem;
font-family: 'gilroy-bold';
font-size: 0.6rem;
font-weight: 600;
display: inline-flex;
flex-direction: row;
align-items: center;
&::before{
content: url('../img/type-actu.svg');
padding-right: 0.3rem;
padding-bottom: 0.2rem;
&::before{
content: "";
display: inline-block;
width: 16px; /* Ajuste la largeur */
height: 16px; /* Ajuste la hauteur */
background-image: url('../img/type-actu.svg');
background-size: contain;
background-repeat: no-repeat;
// margin-right: 0.4rem;
padding-right: 0.4rem;
}
}
a{color: red;}
}
// .infos-actu{
// order: 2;
// h2{
// font-family: 'gilroy-semibold';
// }
// }
.field_field_date{
order: 3;
color: red;
font-size: 0.6rem;
font-weight: 600;
display: inline-flex;
flex-direction: row;
align-items: center;
font-size: 0.5rem;
font-family: 'gilroy-bold';
// margin-left: 1rem;
&::before{
content: url('../img/date-actu.svg');
padding-right: 0.3rem;
content: "";
display: inline-block;
width: 16px; /* Ajuste la largeur */
height: 16px; /* Ajuste la hauteur */
background-image: url('../img/date-actu.svg');
background-size: contain;
background-repeat: no-repeat;
// margin-right: 0.4rem;
padding-right: 0.4rem;
}
}
.field_field_site{
order: 4;
a{
color: red;
font-size: 0.6rem;
font-weight: 600;
display: inline-flex;
align-items: center;
// margin-left: 1rem;
padding-left: 0.2rem;
&::before{
content: "";
display: inline-block;
width: 10px; /* Ajuste la largeur */
height: 10px; /* Ajuste la hauteur */
background-image: url("../img/map_pointer.svg");
background-size: contain;
background-repeat: no-repeat;
// margin-right: 0.4rem;
padding-right: 0.5rem;
}
}
}
.field_title{
order: 5;
line-height: 1rem;
a{
color: $blue_QDD;
font-size: 1.2rem;
}
h2{
margin: 0;
padding-left: 0;
}
}
.field_title{
order: 4;
padding-top: 0.2rem;
h2{
margin: 0;
line-height: 0.4;
padding-bottom: 0.6rem;
padding-left: 0;
a{
font-size: 0.8rem;
color: $blue_QDD;
}
}
}
.field_body{
order: 5;
// visibility: visible;
.field_body {
order: 6;
padding-bottom: 1rem;
opacity: 1 !important;
transform: none !important;
font-family: 'gilroy-regular';
padding-bottom: 0.5rem;
transform:none !important;
p{
margin: 0;
margin-bottom: 1rem;
font-size: 0.7rem ;
}
a{
color: $blue_QDD;
font-size: 0.8rem;
}
}
.field_field_liens{
order: 6;
order: 7;
padding:0;
width: fit-content;
padding-left: 0.5rem;
// padding-bottom: 0.2rem;
// padding-top: 0.2rem;
background: black;
@media (max-width:810px) {
margin-left: 0;
}
a{
a{
display: flex;
flex-direction: row;
padding-left: 0.5rem;
display: inline-flex;
align-items: center;
color: white;
background: black;
text-transform: uppercase;
font-size: 0.6rem;
svg{
display: none;
}
@ -173,21 +239,43 @@
content: url("../img/noun-arrow-to-right.svg");
padding-right: 0.2rem;
padding-left: 0.2rem;
// padding-bottom: 0.2rem;
}
}
}
}
// a:not(.ext){
// display: none;
// }
}
}
}
.toggle-actualite {
display: block;
width: 40px;
height: 40px;
margin: 10px auto;
border: none;
background-color: transparent;
font-size: 24px;
cursor: pointer;
transition: transform 0.3s ease;
}
.toggle-actualite:hover {
transform: scale(1.2);
}
}
.views-row:nth-child(odd){
position: relative;
top: 60px;
@media(max-width: 550px){
top: 0;
}
}
// .views-row:nth-child(odd){
// position: relative;
// top: 60px;
// @media(max-width: 550px){
// top: 0;
// }
// }
}