0 Votes

Changes for page Home

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

From version 7.89
edited by Alex Cotiugă
on 2025/11/13 21:26
Change comment: There is no comment for this version
To version 7.101
edited by Alex Cotiugă
on 2025/11/13 22:06
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',
... ... @@ -113,13 +113,20 @@
113 113   <section class="services" aria-labelledby="services-title">
114 114   <div class="container">
115 115   <h2 id="services-title">Services</h2>
116 - <p class="services-sub">
116 + <p class="lead">
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,16 +204,22 @@
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">
211 - <div class="cta-band">
212 - <div>
213 - <h3 id="contact-title">Need a reliable plan for your XWiki?</h3>
214 - <p class="lead" style="margin:0">Upgrades, support, and integrations handled with low risk and clear communication.</p>
218 + <div class="row cta-band">
219 + <div class="col-xs-12 col-sm-8">
220 + <h4 id="contact-title">Need a reliable plan for your XWiki?</h4>
221 + <p class="lead" style="margin:0">
222 + Upgrades, support, and integrations handled with low risk and clear communication.
223 + </p>
215 215   </div>
216 - <a class="btn btn-primary" href="mailto:hello@agnease.com">Contact Agnease</a>
225 + <div class="col-xs-12 col-sm-4 text-sm-right">
226 + <a class="btn btn-primary" href="mailto:hello@agnease.com">
227 + Contact Agnease
228 + </a>
229 + </div>
217 217   </div>
218 218   </div>
219 219   </section>
XWiki.StyleSheetExtension[0]
Code
... ... @@ -188,31 +188,15 @@
188 188   }
189 189   }
190 190  
191 - /* SERVICES */
191 + /* SERVICES */
192 192   .services {
193 - h2 {
194 - margin: 0 0 .3rem;
195 - }
196 -
197 - .services-sub {
198 - margin: 0 0 1.75rem;
199 - color: @muted;
200 - }
201 -
202 202   .services-grid {
203 203   margin-top: 12px;
204 - display: flex;
205 - flex-wrap: wrap;
206 - justify-content: space-between;
207 207  
208 208   .service {
209 - box-sizing: border-box;
210 210   margin-bottom: 24px;
211 211  
212 - /* Desktop / tablet: 2 per row with space between */
213 - flex: 0 0 48%;
214 - max-width: 48%;
215 -
199 + /* icon + text side by side */
216 216   display: flex;
217 217   align-items: flex-start;
218 218   gap: 16px;
... ... @@ -248,7 +248,7 @@
248 248   margin: .45rem 0 0;
249 249   padding-left: 1.1rem;
250 250   color: @muted;
251 - font-size: .95rem;
235 + font-size: 13px;
252 252   }
253 253  
254 254   li {
... ... @@ -257,13 +257,19 @@
257 257   }
258 258   }
259 259   }
244 + }
260 260  
261 - /* Mobile: stack services full width */
262 - @media (max-width: 767px) {
246 + @media (max-width: 767px) {
247 + .services-grid {
263 263   .service {
264 - flex: 0 0 100%;
265 - max-width: 100%;
249 + margin-bottom: 20px;
266 266   }
251 +
252 + .service-icon {
253 + width: 36px;
254 + height: 36px;
255 + font-size: 16px;
256 + }
267 267   }
268 268   }
269 269   }
... ... @@ -300,9 +300,36 @@
300 300   /* CTA BAND */
301 301   #contact {
302 302   .cta-band {
303 - background: #fff; border: 1px solid @line; border-radius: @radius;
304 - padding: 20px; box-shadow: @shadow;
305 - display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px;
293 + background: #fff;
294 + border: 1px solid @line;
295 + border-radius: @radius;
296 + box-shadow: @shadow;
297 + padding: 20px;
298 + margin-top: 24px;
299 +
300 + /* Remove Bootstrap row negative margins so borders are clean */
301 + margin-left: 0;
302 + margin-right: 0;
303 +
304 + h3 {
305 + margin: 0 0 4px;
306 + }
307 +
308 + .lead {
309 + margin: 0;
310 + color: @muted;
311 + }
312 +
313 + /* Align button on the right on sm+, center on mobile */
314 + .text-sm-right {
315 + text-align: center;
316 + margin-top: 12px;
317 +
318 + @media (min-width: 768px) {
319 + text-align: right;
320 + margin-top: 0;
321 + }
322 + }
306 306   }
307 307   }
308 308