0 Votes

Changes for page Home

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

From version 7.91
edited by Alex Cotiugă
on 2025/11/13 21:28
Change comment: There is no comment for this version
To version 7.99
edited by Alex Cotiugă
on 2025/11/13 21:58
Change comment: There is no comment for this version

Summary

Details

Page properties
Content
... ... @@ -67,7 +67,7 @@
67 67   #set ($servicesSectionData = [{
68 68   'title': 'Upgrades',
69 69   'icon': 'refresh',
70 - 'content': 'Stay current with the latest XWiki LTS and keep your instance secure and stable.',
70 + 'content': 'Stay current with the latest XWiki LTS and keep your instance reliable.',
71 71   'items': [
72 72   'Audit setup, extensions, and configurations',
73 73   'Test upgrades with backups and validation',
... ... @@ -117,9 +117,16 @@
117 117   All the XWiki services you need, delivered with precision and care
118 118   </p>
119 119  
120 + #set ($servicesSize = $servicesSectionData.size())
120 120   <div class="row services-grid" role="list">
121 121   #foreach ($entry in $servicesSectionData)
122 - <div class="service col-sm-6" role="listitem">
123 + #set ($classes = "service col-xs-12 col-sm-6")
124 + ## If this is the last item and the number of services is odd,
125 + ## center it on its own row on small+ screens
126 + #if ($foreach.count == $servicesSize && ($servicesSize % 2) == 1)
127 + #set ($classes = "$classes col-sm-offset-3")
128 + #end
129 + <div class="$classes" role="listitem">
123 123   <div class="service-icon">
124 124   <i class="fa fa-$entry.icon" aria-hidden="true"></i>
125 125   </div>
... ... @@ -137,7 +137,7 @@
137 137   </div>
138 138   </div>
139 139   </section>
140 -
147 +#*
141 141   <!-- ================= METRICS ================= -->
142 142   <section aria-labelledby="metrics-title">
143 143   <div class="container">
... ... @@ -204,7 +204,7 @@
204 204   </details>
205 205   </div>
206 206   </section>
207 -
214 +*#
208 208   <!-- ================= CTA ================= -->
209 209   <section id="contact" aria-labelledby="contact-title">
210 210   <div class="container">
XWiki.StyleSheetExtension[0]
Code
... ... @@ -188,22 +188,15 @@
188 188   }
189 189   }
190 190  
191 - /* SERVICES */
191 + /* SERVICES */
192 192   .services {
193 193   .services-grid {
194 194   margin-top: 12px;
195 - display: flex;
196 - flex-wrap: wrap;
197 - justify-content: space-between;
198 198  
199 199   .service {
200 - box-sizing: border-box;
201 201   margin-bottom: 24px;
202 202  
203 - /* Desktop / tablet: 2 per row with space between */
204 - flex: 0 0 48%;
205 - max-width: 48%;
206 -
199 + /* icon + text side by side */
207 207   display: flex;
208 208   align-items: flex-start;
209 209   gap: 16px;
... ... @@ -239,7 +239,7 @@
239 239   margin: .45rem 0 0;
240 240   padding-left: 1.1rem;
241 241   color: @muted;
242 - font-size: .95rem;
235 + font-size: 13px;
243 243   }
244 244  
245 245   li {
... ... @@ -248,13 +248,19 @@
248 248   }
249 249   }
250 250   }
244 + }
251 251  
252 - /* Mobile: stack services full width */
253 - @media (max-width: 767px) {
246 + @media (max-width: 767px) {
247 + .services-grid {
254 254   .service {
255 - flex: 0 0 100%;
256 - max-width: 100%;
249 + margin-bottom: 20px;
257 257   }
251 +
252 + .service-icon {
253 + width: 36px;
254 + height: 36px;
255 + font-size: 16px;
256 + }
258 258   }
259 259   }
260 260   }