Compare commits

...

5 Commits

Author SHA1 Message Date
7b9a44840c handling grid customisation in staff list
All checks were successful
continuous-integration/drone/push Build is passing
2024-10-01 15:30:41 +02:00
39b3b18876 rounding the focus point on backend 2024-10-01 15:30:27 +02:00
05a7897b6f handling legend and description 2024-10-01 15:30:03 +02:00
20c3366990 removing unecessary write_log 2024-10-01 15:29:47 +02:00
a0ccc1f2b6 removing unecessary console.log 2024-09-25 12:23:29 +02:00
8 changed files with 25 additions and 12 deletions

View File

@ -177,6 +177,12 @@
}
}
.focus-point-modification-pannel {
.homegrade-blocks-focus-point-bullet {
@apply rounded-full w-10 h-10 text-white font-bold flex items-center justify-center;
}
}
.edit-question-button {
@apply text-white py-2 px-4 mt-3 block w-fit rounded-full;
background-color: #e04d42;

View File

@ -1,11 +1,15 @@
.homegrade-blocks-focused-schema {
figure.picture-container {
@apply overflow-x-hidden;
/* @apply overflow-x-hidden; */
img {
@apply rounded-3xl;
}
}
figcaption {
.legend,
.description {
@apply !text-base !text-neutral-600 font-medium;
}
ol {
@apply xl:grid grid-cols-2;
}

View File

@ -1,5 +1,5 @@
.homegrade-blocks-staff-list {
@apply max-w-screen-xl py-8;
@apply max-w-screen-xl py-8;
&__title {
@apply homegrade-title homegrade-title--secondary-small !mt-0;
}
@ -9,8 +9,20 @@
.section_titling + &__staff-list {
@apply pt-0;
}
.section-titling--has-no-subtitle {
@apply pb-0;
}
&__staff-list {
@apply grid md:grid-cols-2 xl:grid-cols-4 gap-x-6 gap-y-16 pt-16 list-none;
@apply grid md:grid-cols-2 gap-x-6 gap-y-16 pt-16 list-none;
&--grid-4 {
@apply xl:grid-cols-4;
}
&--grid-3 {
@apply xl:grid-cols-3;
}
li {
&:before {
content: none !important;

View File

@ -1,5 +1,4 @@
window.addEventListener('DOMContentLoaded', (event) => {
console.log(ajaxSiteConfig);
const button = document.getElementById('load-more-brochures');
button.addEventListener('click', ajaxSubmit);
let offset = 1;
@ -23,7 +22,6 @@ window.addEventListener('DOMContentLoaded', (event) => {
},
complete: function (response) {
if (response.responseJSON.data) {
console.log(response.responseJSON);
offset += 1;
const container = document.querySelector('.brochures-grid'); // Replace this with the actual container element
container.innerHTML += response.responseJSON.data; // Append the new content

View File

@ -21,7 +21,6 @@ export default function menuInit() {
const footerSubmenuCloseBtns = footer.querySelectorAll('.menu-item__submenu-close');
function isSubmenuOpen() {
// console.log(header.querySelector('.sub-menu--open') !== null);
return (
header.querySelector('.sub-menu--open') !== null ||
footer.querySelector('.sub-menu--open') !== null
@ -36,8 +35,6 @@ export default function menuInit() {
// Vérifiez si l'élément actuel est un menu-renovateur--footer
if (currentElement.classList.contains('menu-renovateur--footer')) {
console.log(`FOUND IT !`);
return true; // Si trouvé, retournez true
}
// Arrêtez la boucle si l'élément actuel est null (pas plus de parents)
@ -293,7 +290,6 @@ export default function menuInit() {
// Button Text Content
let textContent = mobileMenuToggle.querySelector('span.text-content');
textContent.textContent = mobileMenuToggle.getAttribute('data-text-open');
// console.log(test.textContent);
// CLOSING #RENOVATEUR
renovateurNavListContainer.removeAttribute('opened');

View File

@ -7,7 +7,6 @@ export default function NotificationsInit() {
notifications.forEach((notification) => {
const notificationClose = notification.querySelector('.notification__close');
const notificationId = notification.getAttribute('data-notification-id');
console.log(notificationId);
notificationClose.addEventListener('click', () => {
notification.classList.add('notification--dismissed');

View File

@ -16,7 +16,6 @@ function initBullet(focusPoint) {
focusPointPopupContainer.style.top = `${focusPointPosition.y}%`;
focusPointPopupContainer.appendChild(focusPointPopupTitle);
// console.log(focusPointPosition);
// focusPointPopupContainer.style.left = `${focusPoint.getAttribute}px`;
// focusPoint.appendChild(focusPointPopupContainer);

View File

@ -1,6 +1,5 @@
<?php
$videoUrl = get_field('url');
write_log($videoUrl);
if ($videoUrl) {
wp_redirect($videoUrl);
exit();