0 Votes

Changes for page Home

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

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

Summary

Details

Page properties
Content
... ... @@ -109,9 +109,17 @@
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())
112 112   <div class="services-grid">
113 113   #foreach ($entry in $servicesSectionData)
114 - <article class="service">
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">
115 115   <div class="service-icon">
116 116   <i class="fa fa-$entry.icon" aria-hidden="true"></i>
117 117   </div>
XWiki.StyleSheetExtension[0]
Code
... ... @@ -35,8 +35,11 @@
35 35  
36 36   .lead {
37 37   color: @muted;
38 - max-width: 72ch;
38 + text-align: center;
39 39   }
40 + .h2 {
41 + text-align: center;
42 + }
40 40  
41 41   section {
42 42   padding: 32px 0;