Changes for page Home
Last modified by Alex Cotiugă on 2026/01/13 13:12
From version 7.150
edited by Alex Cotiugă
on 2025/11/17 11:43
on 2025/11/17 11:43
Change comment:
There is no comment for this version
To version 7.129
edited by Alex Cotiugă
on 2025/11/17 08:43
on 2025/11/17 08:43
Change comment:
There is no comment for this version
Summary
-
Page properties (1 modified, 0 added, 0 removed)
-
Objects (1 modified, 0 added, 0 removed)
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
-
... ... @@ -11,6 +11,7 @@ 11 11 12 12 .agnease-landing { 13 13 color: @text; 14 + font: 16px/1.6 Inter, Segoe UI, Roboto, system-ui, -apple-system, Arial, sans-serif; 14 14 15 15 a { 16 16 color: @brand; ... ... @@ -29,15 +29,14 @@ 29 29 30 30 .container { 31 31 max-width: @maxw; 33 + margin: 0 auto; 34 + padding: 0 16px; 32 32 } 33 33 34 34 .lead { 35 35 color: @muted; 36 - text-align: center;39 + max-width: 72ch; 37 37 } 38 - h2 { 39 - text-align: center; 40 - } 41 41 42 42 section { 43 43 padding: 32px 0; ... ... @@ -95,11 +95,12 @@ 95 95 } 96 96 97 97 .hero-inner { 98 - max-width: 850px;98 + max-width: 760px; 99 99 margin: 0 auto; 100 100 display: flex; 101 101 flex-direction: column; 102 102 align-items: center; 103 + gap: 1rem; 103 103 } 104 104 105 105 .hero-cta { ... ... @@ -181,88 +181,66 @@ 181 181 } 182 182 183 183 /* ===== SERVICES ===== */ 184 - .services { 185 - .services-grid{186 - margin-top:20px;187 - display:flex;188 - flex-wrap:wrap;189 - gap: 24px;185 + .services-grid { 186 + margin-top: 12px; 187 + display: grid; 188 + grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); 189 + grid-gap: 24px; 190 + } 190 190 191 - /* center the whole block under the heading */ 192 - max-width: 960px; 193 - margin-left: auto; 194 - margin-right: auto; 192 + .service { 193 + display: flex; 194 + align-items: flex-start; 195 + gap: 16px; 196 + 197 + .service-icon { 198 + width: 42px; 199 + height: 42px; 200 + border-radius: 50%; 201 + display: flex; 202 + align-items: center; 195 195 justify-content: center; 204 + font-size: 18px; 205 + color: @brand; 206 + background: fade(@brand, 10%); 207 + margin-top: 3px; 208 + flex-shrink: 0; 196 196 } 197 197 198 - .service { 199 - flex:0 1 calc(50% - 12px);200 - display:flex;201 - align-items:flex-start;202 - g ap:16px;203 - margin-bottom: 8px;211 + .service-body { 212 + h4 { 213 + margin: 0 0 4px; 214 + font-size: 1.125rem; 215 + font-weight: 800; 216 + } 204 204 205 - .service-icon { 206 - width: 42px; 207 - height: 42px; 208 - border-radius: 50%; 209 - display: flex; 210 - align-items: center; 211 - justify-content: center; 212 - font-size: 18px; 213 - color: @brand; 214 - background: fade(@brand, 10%); 215 - flex-shrink: 0; 216 - margin-top: 3px; 218 + p { 219 + margin: 0 0 6px; 220 + color: @text; 221 + line-height: 1.5; 217 217 } 218 218 219 - .service-body { 220 - h4 { 221 - margin: 0 0 4px; 222 - font-size: 1.125rem; 223 - font-weight: 800; 224 - } 225 - p { 226 - margin: 0 0 6px; 227 - color: @text; 228 - line-height: 1.5; 229 - } 230 - ul { 231 - margin: .45rem 0 0; 232 - padding-left: 1.1rem; 233 - color: @muted; 234 - font-size: 13px; 235 - } 236 - li { 237 - margin: .25rem 0; 238 - line-height: 1.45; 239 - } 224 + ul { 225 + margin: .45rem 0 0; 226 + padding-left: 1.1rem; 227 + color: @muted; 228 + font-size: 13px; 240 240 } 241 - } 242 242 243 - /* ==== Center last item on its own row while keeping 50% width ==== */ 244 - .service-center { 245 - /* same width as siblings */ 246 - flex: 0 1 calc(55% - 12px); 247 - 248 - /* push to center */ 249 - margin-left: auto; 250 - margin-right: auto; 231 + li { 232 + margin: .25rem 0; 233 + line-height: 1.45; 234 + } 251 251 } 236 + } 252 252 253 - /* Mobile: 1 per row */ 254 - @media (max-width: 767px) { 255 - .services-grid { 256 - gap: 16px; 257 - max-width: 100%; 238 + @media (max-width: 767px) { 239 + .service { 240 + .service-icon { 241 + width: 36px; 242 + height: 36px; 243 + font-size: 16px; 258 258 } 259 - 260 - .service, 261 - .service-center { 262 - flex: 0 1 100%; 263 - margin-left: 0; 264 - margin-right: 0; 265 - } 266 266 } 267 267 } 268 268