Skip to content

Commit 8f35b70

Browse files
committed
Theme for Arlon
1 parent c0d4551 commit 8f35b70

File tree

7 files changed

+122
-4
lines changed

7 files changed

+122
-4
lines changed

arlon/src/index.js

Lines changed: 26 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,20 +33,44 @@ $(document).ready(function () {
3333
//scroll
3434

3535
const animatedElements = document.querySelectorAll(
36-
".swiper-image, .home-citoyen-image-container, .a-la-une",
36+
".swiper-image, .home-citoyen-image-container, .a-la-une"
3737
);
3838

3939
window.addEventListener("scroll", () => {
4040
animatedElements.forEach((img) => {
4141
const rect = img.getBoundingClientRect();
4242
const progress = Math.min(
4343
Math.max(1 - rect.top / window.innerHeight, 0),
44-
1,
44+
1
4545
);
4646
const translate = -70 * progress; // monte jusqu’à -10px
4747
const rotate = 30 * progress; // tourne jusqu’à 10deg
4848
img.style.setProperty("--triangle-translate", `${translate}px`);
4949
img.style.setProperty("--triangle-rotate", `${rotate}deg`);
5050
});
5151
});
52+
53+
// // custom a la une wrapper
54+
55+
// // Sélectionne tous les grids
56+
// const grids = document.querySelectorAll(
57+
// ".a-la-une.home-dossiers .swiper-slide > a"
58+
// );
59+
60+
// grids.forEach((grid) => {
61+
// // Sélectionne tous les divs sauf le premier (l'image)
62+
// const divs = Array.from(grid.children).slice(1);
63+
64+
// if (divs.length === 0) return; // rien à faire s'il n'y a pas de divs de texte
65+
66+
// // Crée le conteneur
67+
// const wrapper = document.createElement("div");
68+
// wrapper.classList.add("content");
69+
70+
// // Déplace les divs dans le conteneur
71+
// divs.forEach((div) => wrapper.appendChild(div));
72+
73+
// // Ajoute le conteneur dans le grid
74+
// grid.appendChild(wrapper);
75+
// });
5276
});

arlon/src/scss/a-la-une.scss

Lines changed: 55 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,18 @@
33
padding-bottom: 0;
44
position: relative;
55

6+
.swiper-slide > a {
7+
background: transparent;
8+
}
9+
10+
.see_all {
11+
display: none;
12+
}
13+
14+
.auth_source_container_title {
15+
display: none;
16+
}
17+
618
&::after {
719
content: "";
820
background: url("../../assets/svg/rond-carre.svg");
@@ -59,6 +71,10 @@
5971
}
6072
}
6173

74+
.swiper_category {
75+
display: none;
76+
}
77+
6278
.swiper_title {
6379
&::before {
6480
content: "à la une";
@@ -95,11 +111,49 @@
95111
.swiper_title {
96112
align-self: end;
97113
}
114+
115+
.swiper_date {
116+
align-self: end;
117+
grid-column: 2;
118+
grid-row: 1;
119+
transform: translate(131px, -78px);
120+
background: #fff;
121+
border-radius: 50px;
122+
font-weight: 500;
123+
}
98124
}
99125
}
100126

101-
.a-la-une .swiper-slide > a {
127+
.sectionevents.a-la-une .swiper-slide > a {
102128
grid-template-columns: 43% 50%;
103129
justify-content: center;
104130
grid-template-rows: inherit;
131+
display: block;
132+
}
133+
134+
@media screen and (min-width: 992px) {
135+
.sectionevents.a-la-une .swiper-slide > a {
136+
display: grid;
137+
}
138+
}
139+
140+
@media screen and (min-width: 992px) {
141+
.sectionevents.a-la-une .swiper-slide .swiper_description {
142+
padding: 0 36px 36px;
143+
margin: 0;
144+
background: transparent;
145+
grid-column: 2;
146+
grid-row: 2;
147+
}
148+
}
149+
150+
@media screen and (min-width: 992px) {
151+
.a-la-une .swiper-slide .swiper_title {
152+
align-self: start;
153+
padding: 36px 36px 0;
154+
margin: 0;
155+
background: transparent;
156+
grid-column: 2;
157+
grid-row: 1;
158+
}
105159
}

arlon/src/scss/actu.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@
7777

7878
//events
7979

80-
.sectionevents {
80+
.sectionevents:not(.a-la-une.home-dossiers) {
8181
background-color: #40435d;
8282

8383
.swiper-slide {

arlon/src/scss/common/se-link-file.scss

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -111,6 +111,7 @@ body:not(.section-home-page) {
111111

112112
a {
113113
text-decoration: none;
114+
color: #fff;
114115
}
115116

116117
a.collapsed {
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
.sectiongallery {
2+
padding-top: 4vw;
3+
padding-bottom: 4vw;
4+
position: relative;
5+
6+
&::after {
7+
content: "";
8+
position: absolute;
9+
background: #f5f5f5;
10+
width: 100vw;
11+
left: 50%;
12+
z-index: -1;
13+
display: block;
14+
top: 0;
15+
bottom: 0;
16+
transform: translateX(-50vw);
17+
}
18+
19+
.section-title {
20+
margin-bottom: 2rem;
21+
}
22+
}

arlon/src/scss/footer.scss

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,3 +40,9 @@ body:not(.is-in-minisite) #portal-colophon {
4040
margin-right: auto;
4141
}
4242
}
43+
44+
.section-home-page {
45+
#portal-footer-wrapper {
46+
margin-top: 0;
47+
}
48+
}

arlon/src/scss/main.scss

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ $enable-roboto-webfont: false;
2222
@import "citoyen";
2323
@import "broctie";
2424
@import "./common/se-link-file";
25+
@import "./common/sectiongallery";
2526

2627
.see_all a::after {
2728
display: none;
@@ -140,3 +141,13 @@ $enable-roboto-webfont: false;
140141
}
141142
}
142143
}
144+
145+
.template-facetednavigation_view .faceted-top-widgets input#search_button {
146+
background: $primary !important;
147+
}
148+
149+
.subsection-service-communaux-communication-publications.template-facetednavigation_view
150+
.card-img-top {
151+
aspect-ratio: 0.7;
152+
padding-top: initial;
153+
}

0 commit comments

Comments
 (0)