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%;
margin-left: calc(40% - 3vw);
margin-top: 4vh;
margin-bottom: 4vh;
}
@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 {
position: absolute;
top: 3vh;
right: 4vh;
width: 40%;
}
}
@media (min-width: 1080px) {
.fullpage.meetup > header > div:last-of-type {
width: 20%;
}
}
@ -1914,7 +1914,7 @@ main.main-login .login > div > div:not(.hidden) form .button:hover, main.main-lo
height: 100%;
}
.fullpage.meetup > header > div:last-of-type > div > a {
padding: 1rem 0.5rem;
padding: 0.5rem 0.5rem;
height: 100%;
display: block;
font-weight: 800;
@ -1926,6 +1926,11 @@ main.main-login .login > div > div:not(.hidden) form .button:hover, main.main-lo
transform: translateY(0);
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 {
content: " →";
}
@ -1934,15 +1939,23 @@ main.main-login .login > div > div:not(.hidden) form .button:hover, main.main-lo
text-decoration: none !important;
color: white;
border: solid 1px white;
width: 3rem;
height: 3rem;
width: 1.8rem;
height: 1.8rem;
border-radius: 1.5rem;
font-size: 1.6rem;
font-size: 1.2rem;
display: flex;
justify-content: center;
align-items: center;
padding-bottom: 10px;
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 {
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 {
display: grid;
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 {
margin-bottom: unset;
@ -2133,6 +2146,14 @@ main.main-login .login > div > div:not(.hidden) form .button:hover, main.main-lo
justify-self: center;
align-self: center;
}
.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;
height: 15rem;
@ -2140,6 +2161,7 @@ main.main-login .login > div > div:not(.hidden) form .button:hover, main.main-lo
padding: 1rem;
margin-right: 2rem;
}
}
.fullpage.meetup-offre > .offre-content > div > div > div > div > .offre-structure {
grid-column: 2/4;
grid-row: 1/2;
@ -2225,15 +2247,11 @@ main.main-login .login > div > div:not(.hidden) form .button:hover, main.main-lo
padding-top: 6vh;
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 {
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 {
padding: 0 1.5vw;
text-align: right;
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 {
@ -2258,6 +2276,7 @@ main.main-login .login > div > div:not(.hidden) form .button:hover, main.main-lo
}
@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 {
text-align: right;
margin-bottom: 0 !important;
margin: 0;
position: fixed;
@ -2271,6 +2290,12 @@ main.main-login .login > div > div:not(.hidden) form .button:hover, main.main-lo
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 {
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'];
switch ($view->id()) {
case 'actus':
if ($view->getDisplay()->display['id'] !== 'block_1') {
$suggestions[] = 'views_view__page_actus';
}
break;
case 'gourvernance': // attention faute de frappe dans l'id dans drupal
$suggestions[] = 'views_view__content_gouvernance';

View File

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

View File

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