0 Votes

Changes for page Home

Last modified by Alex Cotiugă on 2026/01/13 13:12

From version 7.153
edited by Alex Cotiugă
on 2025/11/17 11:49
Change comment: There is no comment for this version
To version 7.136
edited by Alex Cotiugă
on 2025/11/17 09:08
Change comment: There is no comment for this version

Summary

Details

Page properties
Content
... ... @@ -109,17 +109,9 @@
109 109   <p class="lead">
110 110   All the XWiki services you need, delivered with precision and care
111 111   </p>
112 -
113 - #set ($servicesSize = $servicesSectionData.size())
114 114   <div class="services-grid">
115 115   #foreach ($entry in $servicesSectionData)
116 - #set ($classes = "service")
117 - ## If this is the last item AND the total number is odd, center it
118 - #if ($foreach.count == $servicesSize && ($servicesSize % 2) == 1)
119 - #set ($classes = "service service-center")
120 - #end
121 -
122 - <article class="$classes">
114 + <article class="service">
123 123   <div class="service-icon">
124 124   <i class="fa fa-$entry.icon" aria-hidden="true"></i>
125 125   </div>
XWiki.StyleSheetExtension[0]
Code
... ... @@ -9,10 +9,6 @@
9 9  @shadow: 0 12px 36px rgba(0,0,0,.08);
10 10  @maxw: 1140px;
11 11  
12 -#mainContentArea {
13 - padding: 0;
14 -}
15 -
16 16  .agnease-landing {
17 17   color: @text;
18 18  
... ... @@ -33,15 +33,14 @@
33 33  
34 34   .container {
35 35   max-width: @maxw;
32 + margin: 0 auto;
33 + padding: 0 16px;
36 36   }
37 37  
38 38   .lead {
39 39   color: @muted;
40 - text-align: center;
38 + max-width: 72ch;
41 41   }
42 - h2 {
43 - text-align: center;
44 - }
45 45  
46 46   section {
47 47   padding: 32px 0;
... ... @@ -104,6 +104,7 @@
104 104   display: flex;
105 105   flex-direction: column;
106 106   align-items: center;
102 + gap: 1rem;
107 107   }
108 108  
109 109   .hero-cta {
... ... @@ -191,15 +191,10 @@
191 191   display: flex;
192 192   flex-wrap: wrap;
193 193   gap: 24px;
194 -
195 - /* center the whole block under the heading */
196 - max-width: 960px;
197 - margin-left: auto;
198 - margin-right: auto;
199 - justify-content: center;
200 200   }
201 201  
202 202   .service {
193 + /* 2 items per row: 50% minus half the gap so row fits in 100% */
203 203   flex: 0 1 calc(50% - 12px);
204 204   display: flex;
205 205   align-items: flex-start;
... ... @@ -226,11 +226,13 @@
226 226   font-size: 1.125rem;
227 227   font-weight: 800;
228 228   }
220 +
229 229   p {
230 230   margin: 0 0 6px;
231 231   color: @text;
232 232   line-height: 1.5;
233 233   }
226 +
234 234   ul {
235 235   margin: .45rem 0 0;
236 236   padding-left: 1.1rem;
... ... @@ -237,6 +237,7 @@
237 237   color: @muted;
238 238   font-size: 13px;
239 239   }
233 +
240 240   li {
241 241   margin: .25rem 0;
242 242   line-height: 1.45;
... ... @@ -244,12 +244,9 @@
244 244   }
245 245   }
246 246  
247 - /* ==== Center last item on its own row while keeping 50% width ==== */
241 + /* Center the last item when odd:
242 + auto margins in a flex row push it to the middle */
248 248   .service-center {
249 - /* same width as siblings */
250 - flex: 0 1 calc(55% - 12px);
251 -
252 - /* push to center */
253 253   margin-left: auto;
254 254   margin-right: auto;
255 255   }
... ... @@ -258,12 +258,11 @@
258 258   @media (max-width: 767px) {
259 259   .services-grid {
260 260   gap: 16px;
261 - max-width: 100%;
262 262   }
263 -
264 - .service,
265 - .service-center {
253 + .service {
266 266   flex: 0 1 100%;
255 + }
256 + .service-center {
267 267   margin-left: 0;
268 268   margin-right: 0;
269 269   }