correction meetup links and homepage slider

This commit is contained in:
Valentin 2024-04-26 19:58:44 +02:00
parent 05ff1c3c74
commit d98506a9c5
5 changed files with 90 additions and 43 deletions

View File

@ -1895,18 +1895,18 @@ main.main-login .login > div > div:not(.hidden) form .button:hover, main.main-lo
width: 60%; width: 60%;
margin-left: calc(40% - 3vw); margin-left: calc(40% - 3vw);
margin-top: 4vh; margin-top: 4vh;
margin-bottom: 4vh;
} }
@media (min-width: 760px) { @media (min-width: 760px) {
.fullpage.meetup > header > div:last-of-type {
width: 40%;
margin-left: calc(60% - 3vw);
}
}
@media (min-width: 1080px) {
.fullpage.meetup > header > div:last-of-type { .fullpage.meetup > header > div:last-of-type {
position: absolute; position: absolute;
top: 3vh; top: 3vh;
right: 4vh; right: 4vh;
width: 40%;
}
}
@media (min-width: 1080px) {
.fullpage.meetup > header > div:last-of-type {
width: 20%; width: 20%;
} }
} }
@ -1914,7 +1914,7 @@ main.main-login .login > div > div:not(.hidden) form .button:hover, main.main-lo
height: 100%; height: 100%;
} }
.fullpage.meetup > header > div:last-of-type > div > a { .fullpage.meetup > header > div:last-of-type > div > a {
padding: 1rem 0.5rem; padding: 0.5rem 0.5rem;
height: 100%; height: 100%;
display: block; display: block;
font-weight: 800; font-weight: 800;
@ -1926,6 +1926,11 @@ main.main-login .login > div > div:not(.hidden) form .button:hover, main.main-lo
transform: translateY(0); transform: translateY(0);
transition: transform 0.2s ease-out; transition: transform 0.2s ease-out;
} }
@media (min-width: 760px) {
.fullpage.meetup > header > div:last-of-type > div > a {
padding: 1rem 0.5rem;
}
}
.fullpage.meetup > header > div:last-of-type > div > a::after { .fullpage.meetup > header > div:last-of-type > div > a::after {
content: " →"; content: " →";
} }
@ -1934,15 +1939,23 @@ main.main-login .login > div > div:not(.hidden) form .button:hover, main.main-lo
text-decoration: none !important; text-decoration: none !important;
color: white; color: white;
border: solid 1px white; border: solid 1px white;
width: 3rem; width: 1.8rem;
height: 3rem; height: 1.8rem;
border-radius: 1.5rem; border-radius: 1.5rem;
font-size: 1.6rem; font-size: 1.2rem;
display: flex; display: flex;
justify-content: center; justify-content: center;
align-items: center; align-items: center;
padding-bottom: 10px;
margin-right: 0.6rem; margin-right: 0.6rem;
padding-bottom: 5px;
}
@media (min-width: 760px) {
.fullpage.meetup > header > div:last-of-type > div > a::before {
padding-bottom: 10px;
width: 3rem;
height: 3rem;
font-size: 1.6rem;
}
} }
.fullpage.meetup > header > div:last-of-type > div > a:hover { .fullpage.meetup > header > div:last-of-type > div > a:hover {
transform: translateY(-2px); transform: translateY(-2px);
@ -2121,7 +2134,7 @@ main.main-login .login > div > div:not(.hidden) form .button:hover, main.main-lo
.fullpage.meetup-offre > .offre-content > div > div > div > div { .fullpage.meetup-offre > .offre-content > div > div > div > div {
display: grid; display: grid;
grid-template-columns: 0.3fr 1fr 1fr; grid-template-columns: 0.3fr 1fr 1fr;
grid-template-rows: repeat(8, auto); grid-template-rows: repeat(9, auto);
} }
.fullpage.meetup-offre > .offre-content > div > div > div > div .views-row { .fullpage.meetup-offre > .offre-content > div > div > div > div .views-row {
margin-bottom: unset; margin-bottom: unset;
@ -2134,11 +2147,20 @@ main.main-login .login > div > div:not(.hidden) form .button:hover, main.main-lo
align-self: center; align-self: center;
} }
.fullpage.meetup-offre > .offre-content > div > div > div > div > div:first-of-type > img { .fullpage.meetup-offre > .offre-content > div > div > div > div > div:first-of-type > img {
width: 8rem;
height: 8rem;
border-radius: 4rem;
padding: 0.2rem;
margin-right: 0.4rem;
}
@media (min-width: 760px) {
.fullpage.meetup-offre > .offre-content > div > div > div > div > div:first-of-type > img {
width: 15rem; width: 15rem;
height: 15rem; height: 15rem;
border-radius: 7.5rem; border-radius: 7.5rem;
padding: 1rem; padding: 1rem;
margin-right: 2rem; margin-right: 2rem;
}
} }
.fullpage.meetup-offre > .offre-content > div > div > div > div > .offre-structure { .fullpage.meetup-offre > .offre-content > div > div > div > div > .offre-structure {
grid-column: 2/4; grid-column: 2/4;
@ -2225,15 +2247,11 @@ main.main-login .login > div > div:not(.hidden) form .button:hover, main.main-lo
padding-top: 6vh; padding-top: 6vh;
margin-bottom: 4vh; margin-bottom: 4vh;
} }
.fullpage.meetup-offre > .offre-content > div > div > div > div > .file_fixed, .fullpage.meetup-offre > .offre-content > div > div > div > div > .liens_fixed {
grid-row: 8/9;
}
.fullpage.meetup-offre > .offre-content > div > div > div > div > .file_fixed > h2, .fullpage.meetup-offre > .offre-content > div > div > div > div > .liens_fixed > h2 { .fullpage.meetup-offre > .offre-content > div > div > div > div > .file_fixed > h2, .fullpage.meetup-offre > .offre-content > div > div > div > div > .liens_fixed > h2 {
display: none; display: none;
} }
.fullpage.meetup-offre > .offre-content > div > div > div > div > .file_fixed > div, .fullpage.meetup-offre > .offre-content > div > div > div > div > .liens_fixed > div { .fullpage.meetup-offre > .offre-content > div > div > div > div > .file_fixed > div, .fullpage.meetup-offre > .offre-content > div > div > div > div > .liens_fixed > div {
padding: 0 1.5vw; padding: 0 1.5vw;
text-align: right;
margin: 2rem 0; margin: 2rem 0;
} }
.fullpage.meetup-offre > .offre-content > div > div > div > div > .file_fixed > div a, .fullpage.meetup-offre > .offre-content > div > div > div > div > .liens_fixed > div a { .fullpage.meetup-offre > .offre-content > div > div > div > div > .file_fixed > div a, .fullpage.meetup-offre > .offre-content > div > div > div > div > .liens_fixed > div a {
@ -2258,6 +2276,7 @@ main.main-login .login > div > div:not(.hidden) form .button:hover, main.main-lo
} }
@media (min-width: 1080px) { @media (min-width: 1080px) {
.fullpage.meetup-offre > .offre-content > div > div > div > div > .file_fixed > div, .fullpage.meetup-offre > .offre-content > div > div > div > div > .liens_fixed > div { .fullpage.meetup-offre > .offre-content > div > div > div > div > .file_fixed > div, .fullpage.meetup-offre > .offre-content > div > div > div > div > .liens_fixed > div {
text-align: right;
margin-bottom: 0 !important; margin-bottom: 0 !important;
margin: 0; margin: 0;
position: fixed; position: fixed;
@ -2271,6 +2290,12 @@ main.main-login .login > div > div:not(.hidden) form .button:hover, main.main-lo
max-width: 19vw; max-width: 19vw;
} }
} }
.fullpage.meetup-offre > .offre-content > div > div > div > div > .file_fixed {
grid-row: 9/10;
}
.fullpage.meetup-offre > .offre-content > div > div > div > div > .liens_fixed {
grid-row: 8/9;
}
.fullpage.meetup-offre > .offre-content > div > div > div > div > .file_fixed span:last-of-type { .fullpage.meetup-offre > .offre-content > div > div > div > div > .file_fixed span:last-of-type {
display: none; display: none;
} }

File diff suppressed because one or more lines are too long

View File

@ -86,7 +86,9 @@ function erabletheme_theme_suggestions_views_view_alter(array &$suggestions, arr
$view = $variables['view']; $view = $variables['view'];
switch ($view->id()) { switch ($view->id()) {
case 'actus': case 'actus':
if ($view->getDisplay()->display['id'] !== 'block_1') {
$suggestions[] = 'views_view__page_actus'; $suggestions[] = 'views_view__page_actus';
}
break; break;
case 'gourvernance': // attention faute de frappe dans l'id dans drupal case 'gourvernance': // attention faute de frappe dans l'id dans drupal
$suggestions[] = 'views_view__content_gouvernance'; $suggestions[] = 'views_view__content_gouvernance';

View File

@ -14,6 +14,7 @@
// //
(function($, window) { (function($, window) {
let slickEl = $('.slick-container').children().first().children().first().children().first().children().first(); let slickEl = $('.slick-container').children().first().children().first().children().first().children().first();
console.log(slickEl);
$(slickEl).slick({ $(slickEl).slick({
dots: true, dots: true,
appendDots: $('#carousel_dots') appendDots: $('#carousel_dots')
@ -93,7 +94,7 @@
if (document.querySelector('.actu_full')) { if (document.querySelector('.actu_full')) {
fluoButtons = document.querySelectorAll('.liens_fixed > div > div:nth-of-type(2):not(.visually-hidden), .file_fixed > div > .visually-hidden + div > div'); fluoButtons = document.querySelectorAll('.liens_fixed > div > div:nth-of-type(2):not(.visually-hidden), .file_fixed > div > .visually-hidden + div > div');
} else if (document.querySelector('.offre-content')) { } else if (document.querySelector('.offre-content')) {
fluoButtons = document.querySelectorAll('.liens_fixed > div, .file_fixed > div'); fluoButtons = document.querySelectorAll('.liens_fixed > div, .file_fixed > div, .file_fixed > div > div');
} else { } else {
fluoButtons = document.querySelectorAll('.liens_fixed > div > div:not(.visually-hidden), .file_fixed > div > div'); fluoButtons = document.querySelectorAll('.liens_fixed > div > div:not(.visually-hidden), .file_fixed > div > div');
} }
@ -169,7 +170,6 @@
let meetup = document.querySelector('.meetup_list'); let meetup = document.querySelector('.meetup_list');
if (meetup) { if (meetup) {
let meetupCards= document.querySelectorAll('.meetup_list > .views-row'); let meetupCards= document.querySelectorAll('.meetup_list > .views-row');
console.log(meetupCards);
for (let card of meetupCards) { for (let card of meetupCards) {
let meetupLink = card.querySelector('.offre-title'); let meetupLink = card.querySelector('.offre-title');
meetupLink = meetupLink.getAttribute('href'); meetupLink = meetupLink.getAttribute('href');
@ -178,7 +178,6 @@
let cardArticle = card.querySelector('article'); let cardArticle = card.querySelector('article');
ficheLink.append(cardArticle); ficheLink.append(cardArticle);
card.append(ficheLink); card.append(ficheLink);
console.log(meetupLink);
} }
} }

View File

@ -30,20 +30,20 @@
width: 60%; width: 60%;
margin-left: calc(40% - $x_margin); margin-left: calc(40% - $x_margin);
margin-top: 4vh; margin-top: 4vh;
margin-bottom: 4vh;
@media (min-width: $breakpoint_tablet) { @media (min-width: $breakpoint_tablet) {
width: 40%;
margin-left: calc(60% - $x_margin);
}
@media (min-width: $breakpoint_desktop) {
position: absolute; position: absolute;
top: 3vh; top: 3vh;
right: 4vh; right: 4vh;
width: 40%;
}
@media (min-width: $breakpoint_desktop) {
width: 20%; width: 20%;
} }
> div { > div {
height: 100%; height: 100%;
> a { > a {
padding: 1rem 0.5rem; padding: 0.5rem 0.5rem;
height: 100%; height: 100%;
display: block; display: block;
font-weight: 800; font-weight: 800;
@ -54,6 +54,9 @@
justify-content: space-around; justify-content: space-around;
transform: translateY(0); transform: translateY(0);
transition: transform 0.2s ease-out; transition: transform 0.2s ease-out;
@media (min-width: $breakpoint_tablet) {
padding: 1rem 0.5rem;
}
} }
> a::after { > a::after {
content: "\2003 →"; content: "\2003 →";
@ -63,15 +66,21 @@
text-decoration: none !important; text-decoration: none !important;
color: white; color: white;
border: solid 1px white; border: solid 1px white;
width: 3rem; width: 1.8rem;
height: 3rem; height: 1.8rem;
border-radius: 1.5rem; border-radius: 1.5rem;
font-size: 1.6rem; font-size: 1.2rem;
display: flex; display: flex;
justify-content: center; justify-content: center;
align-items: center; align-items: center;
padding-bottom: 10px;
margin-right: 0.6rem; margin-right: 0.6rem;
padding-bottom: 5px;
@media (min-width: $breakpoint_tablet) {
padding-bottom: 10px;
width: 3rem;
height: 3rem;
font-size: 1.6rem;
}
} }
> a:hover { > a:hover {
transform: translateY(-2px); transform: translateY(-2px);
@ -236,7 +245,7 @@
> div > div > div { > div > div > div {
display: grid; display: grid;
grid-template-columns: 0.3fr 1fr 1fr; grid-template-columns: 0.3fr 1fr 1fr;
grid-template-rows: repeat(8, auto); grid-template-rows: repeat(9, auto);
.views-row { .views-row {
margin-bottom: unset; margin-bottom: unset;
} }
@ -247,6 +256,12 @@
justify-self: center; justify-self: center;
align-self: center; align-self: center;
> img { > img {
width: 8rem;
height: 8rem;
border-radius: 4rem;
padding: 0.2rem;
margin-right: 0.4rem;
@media (min-width: $breakpoint_tablet) {
width: 15rem; width: 15rem;
height: 15rem; height: 15rem;
border-radius: 7.5rem; border-radius: 7.5rem;
@ -254,6 +269,7 @@
margin-right: 2rem; margin-right: 2rem;
} }
} }
}
> .offre-structure { > .offre-structure {
> h2 { > h2 {
display: none; display: none;
@ -336,19 +352,18 @@
margin-bottom: 4vh; margin-bottom: 4vh;
} }
> .file_fixed, > .liens_fixed { > .file_fixed, > .liens_fixed {
grid-row: 8/9;
> h2 { > h2 {
display: none; display: none;
} }
> div { > div {
padding: 0 calc($x_margin / 2); padding: 0 calc($x_margin / 2);
text-align: right;
margin: 2rem 0; margin: 2rem 0;
@include fluo_button(); @include fluo_button();
a { a {
display: inline-block; display: inline-block;
} }
@media (min-width: $breakpoint_desktop) { @media (min-width: $breakpoint_desktop) {
text-align: right;
margin-bottom: 0 !important; margin-bottom: 0 !important;
margin: 0; margin: 0;
position: fixed; position: fixed;
@ -363,6 +378,12 @@
} }
} }
} }
> .file_fixed {
grid-row: 9/10;
}
> .liens_fixed {
grid-row: 8/9;
}
> .file_fixed span:last-of-type { > .file_fixed span:last-of-type {
display: none; display: none;
} }