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.156
edited by Alex Cotiugă
on 2025/11/17 11:51
Change comment: There is no comment for this version

Summary

Details

Page properties
Content
... ... @@ -2,7 +2,7 @@
2 2  #*== Professional XWiki Services for Secure and Scalable Business Solutions ==
3 3  Agnease helps organizations maintain, upgrade, and extend their XWiki environments with clarity and precision. Focusing on stability, performance, and long-term support we ensure your business knowledge and collaboration tools remain dependable, secure, and adaptable to growth.*#
4 4  {{html clean="false"}}
5 -<main class="agnease-landing">
5 +##<main class="agnease-landing">
6 6   ## HERO
7 7   <section class="hero hero-centered" aria-labelledby="hero-title">
8 8   <div class="container hero-inner">
... ... @@ -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>
... ... @@ -222,7 +222,7 @@
222 222   </div>
223 223   </section>
224 224   *#
225 -</main>
233 +##</main>
226 226  {{/html}}
227 227  #*
228 228  = XWiki Multi-Factor Authentication (MFA) Application =
XWiki.StyleSheetExtension[0]
Code
... ... @@ -9,266 +9,271 @@
9 9  @shadow: 0 12px 36px rgba(0,0,0,.08);
10 10  @maxw: 1140px;
11 11  
12 -.agnease-landing {
13 - color: @text;
12 +#mainContentArea {
13 + padding: 0;
14 +}
14 14  
15 - a {
16 - color: @brand;
17 - text-decoration: none;
18 - &:hover {
19 - color: @brand-strong;
20 - text-decoration: underline;
21 - }
16 +a {
17 + color: @brand;
18 + text-decoration: none;
19 + &:hover {
20 + color: @brand-strong;
21 + text-decoration: underline;
22 22   }
23 +}
23 23  
24 - img {
25 - max-width: 100%;
26 - height: auto;
27 - display: block;
28 - }
25 +img {
26 + max-width: 100%;
27 + height: auto;
28 + display: block;
29 +}
29 29  
30 - .container {
31 - max-width: @maxw;
32 - margin: 0 auto;
33 - padding: 0 16px;
34 - }
31 +.container {
32 + max-width: @maxw;
33 +}
35 35  
36 - .lead {
37 - color: @muted;
38 - max-width: 72ch;
39 - }
35 +.lead {
36 + color: @muted;
37 + text-align: center;
38 +}
39 +h2 {
40 + text-align: center;
41 +}
40 40  
41 - section {
42 - padding: 32px 0;
43 - border-top: 1px solid @line;
43 +section {
44 + padding: 32px 0;
45 + border-top: 1px solid @line;
44 44  
45 - &:first-of-type {
46 - border-top: none;
47 - }
47 + &:first-of-type {
48 + border-top: none;
48 48   }
50 +}
49 49  
50 - /* Buttons */
51 - .btn {
52 - display: inline-flex;
53 - align-items: center;
54 - justify-content: center;
55 - padding: .85rem 1.1rem;
56 - border-radius: 12px;
57 - border: 2px solid transparent;
58 - font-weight: 650;
59 - letter-spacing: .2px;
60 - cursor: pointer;
61 - box-shadow: @shadow-sm;
52 +/* Buttons */
53 +.btn {
54 + display: inline-flex;
55 + align-items: center;
56 + justify-content: center;
57 + padding: .85rem 1.1rem;
58 + border-radius: 12px;
59 + border: 2px solid transparent;
60 + font-weight: 650;
61 + letter-spacing: .2px;
62 + cursor: pointer;
63 + box-shadow: @shadow-sm;
62 62  
63 - &:focus-visible {
64 - outline: 3px solid @brand;
65 - outline-offset: 2px;
66 - }
65 + &:focus-visible {
66 + outline: 3px solid @brand;
67 + outline-offset: 2px;
68 + }
67 67  
68 - &-primary {
69 - background: @brand;
70 + &-primary {
71 + background: @brand;
72 + color: #fff;
73 + &:hover,
74 + &:focus {
75 + background: @brand-strong;
70 70   color: #fff;
71 - &:hover,
72 - &:focus {
73 - background: @brand-strong;
74 - color: #fff;
75 - }
76 76   }
77 77   }
79 +}
78 78  
79 - /* ===== HERO ===== */
80 - .hero {
81 - overflow: hidden;
82 - background-repeat: no-repeat;
83 - background-attachment: scroll;
81 +/* ===== HERO ===== */
82 +.hero {
83 + overflow: hidden;
84 + background-repeat: no-repeat;
85 + background-attachment: scroll;
84 84  
85 - &.hero-centered {
86 - text-align: center;
87 - background:
88 - radial-gradient(50rem 18rem at 50% -10%, #E7FFF8 0%, transparent 60%),
89 - radial-gradient(50rem 18rem at 50% 0%, #E8F6F3 0%, transparent 60%);
90 - display: flex;
91 - align-items: center;
92 - justify-content: center;
93 - min-height: 350px;
94 - }
87 + &.hero-centered {
88 + text-align: center;
89 + background:
90 + radial-gradient(50rem 18rem at 50% -10%, #E7FFF8 0%, transparent 60%),
91 + radial-gradient(50rem 18rem at 50% 0%, #E8F6F3 0%, transparent 60%);
92 + display: flex;
93 + align-items: center;
94 + justify-content: center;
95 + min-height: 350px;
96 + }
95 95  
96 - .hero-inner {
97 - max-width: 850px;
98 - margin: 0 auto;
99 - display: flex;
100 - flex-direction: column;
101 - align-items: center;
102 - gap: 1rem;
103 - }
98 + .hero-inner {
99 + max-width: 850px;
100 + margin: 0 auto;
101 + display: flex;
102 + flex-direction: column;
103 + align-items: center;
104 + }
104 104  
105 - .hero-cta {
106 - display: flex;
107 - gap: 0.8rem;
108 - flex-wrap: wrap;
109 - justify-content: center;
110 - margin-top: 0.3rem;
111 - }
106 + .hero-cta {
107 + display: flex;
108 + gap: 0.8rem;
109 + flex-wrap: wrap;
110 + justify-content: center;
111 + margin-top: 0.3rem;
112 + }
112 112  
113 - .benefits {
114 - display: flex;
115 - flex-wrap: wrap;
116 - justify-content: center;
117 - list-style: none;
118 - padding: 0;
119 - margin: 0.8rem 0 0;
120 - color: @muted;
121 - font-size: 14px;
114 + .benefits {
115 + display: flex;
116 + flex-wrap: wrap;
117 + justify-content: center;
118 + list-style: none;
119 + padding: 0;
120 + margin: 0.8rem 0 0;
121 + color: @muted;
122 + font-size: 14px;
122 122  
124 + li + li::before {
125 + content: "•";
126 + margin: 0 5px;
127 + }
128 +
129 + @media (max-width: 640px) {
123 123   li + li::before {
131 + content: none;
132 + }
133 + li:nth-child(1)::after,
134 + li:nth-child(3)::after {
124 124   content: "•";
125 125   margin: 0 5px;
126 126   }
127 -
128 - @media (max-width: 640px) {
129 - li + li::before {
130 - content: none;
131 - }
132 - li:nth-child(1)::after,
133 - li:nth-child(3)::after {
134 - content: "•";
135 - margin: 0 5px;
136 - }
137 - }
138 138   }
139 139   }
140 +}
140 140  
141 - /* ===== WHY CHOOSE (cards) ===== */
142 - .widgets {
143 - margin-top: 12px;
144 - display: grid;
145 - grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
146 - grid-gap: 16px;
142 +/* ===== WHY CHOOSE (cards) ===== */
143 +.widgets {
144 + margin-top: 12px;
145 + display: grid;
146 + grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
147 + grid-gap: 16px;
148 +}
149 +
150 +.widget {
151 + padding: 18px;
152 + background: #fff;
153 + border: 1px solid @line;
154 + border-radius: @radius;
155 + box-shadow: @shadow-sm;
156 + transition: transform .18s ease, box-shadow .18s ease;
157 + display: flex;
158 + flex-direction: column;
159 + height: 100%;
160 +
161 + &:hover {
162 + transform: translateY(-2px);
163 + box-shadow: @shadow;
147 147   }
148 148  
149 - .widget {
150 - padding: 18px;
151 - background: #fff;
152 - border: 1px solid @line;
153 - border-radius: @radius;
154 - box-shadow: @shadow-sm;
155 - transition: transform .18s ease, box-shadow .18s ease;
166 + .icon {
156 156   display: flex;
157 - flex-direction: column;
158 - height: 100%;
168 + align-items: center;
169 + gap: 10px;
170 + padding-bottom: 6px;
171 + margin-bottom: 8px;
172 + border-bottom: 1px solid fade(@line, 60%);
173 + i { color: @brand; }
174 + h4 { margin: 0; line-height: 1.2; color: @text; }
175 + }
159 159  
160 - &:hover {
161 - transform: translateY(-2px);
162 - box-shadow: @shadow;
163 - }
177 + p {
178 + margin: 0;
179 + color: @muted;
180 + line-height: 1.45;
181 + }
182 +}
164 164  
165 - .icon {
166 - display: flex;
167 - align-items: center;
168 - gap: 10px;
169 - padding-bottom: 6px;
170 - margin-bottom: 8px;
171 - border-bottom: 1px solid fade(@line, 60%);
172 - i { color: @brand; }
173 - h4 { margin: 0; line-height: 1.2; color: @text; }
174 - }
184 +/* ===== SERVICES ===== */
185 +.services {
186 + .services-grid {
187 + margin-top: 20px;
188 + display: flex;
189 + flex-wrap: wrap;
190 + gap: 24px;
175 175  
176 - p {
177 - margin: 0;
178 - color: @muted;
179 - line-height: 1.45;
180 - }
192 + /* center the whole block under the heading */
193 + max-width: 960px;
194 + margin-left: auto;
195 + margin-right: auto;
196 + justify-content: center;
181 181   }
182 182  
183 - /* ===== SERVICES ===== */
184 - .services {
185 - .services-grid {
186 - margin-top: 20px;
199 + .service {
200 + flex: 0 1 calc(50% - 12px);
201 + display: flex;
202 + align-items: flex-start;
203 + gap: 16px;
204 + margin-bottom: 8px;
205 +
206 + .service-icon {
207 + width: 42px;
208 + height: 42px;
209 + border-radius: 50%;
187 187   display: flex;
188 - flex-wrap: wrap;
189 - gap: 24px;
211 + align-items: center;
212 + justify-content: center;
213 + font-size: 18px;
214 + color: @brand;
215 + background: fade(@brand, 10%);
216 + flex-shrink: 0;
217 + margin-top: 3px;
190 190   }
191 191  
192 - .service {
193 - /* 2 items per row: 50% minus half the gap so row fits in 100% */
194 - flex: 0 1 calc(50% - 12px);
195 - display: flex;
196 - align-items: flex-start;
197 - gap: 16px;
198 - margin-bottom: 8px;
199 -
200 - .service-icon {
201 - width: 42px;
202 - height: 42px;
203 - border-radius: 50%;
204 - display: flex;
205 - align-items: center;
206 - justify-content: center;
207 - font-size: 18px;
208 - color: @brand;
209 - background: fade(@brand, 10%);
210 - flex-shrink: 0;
211 - margin-top: 3px;
220 + .service-body {
221 + h4 {
222 + margin: 0 0 4px;
223 + font-size: 1.125rem;
224 + font-weight: 800;
212 212   }
226 + p {
227 + margin: 0 0 6px;
228 + color: @text;
229 + line-height: 1.5;
230 + }
231 + ul {
232 + margin: .45rem 0 0;
233 + padding-left: 1.1rem;
234 + color: @muted;
235 + font-size: 13px;
236 + }
237 + li {
238 + margin: .25rem 0;
239 + line-height: 1.45;
240 + }
241 + }
242 + }
213 213  
214 - .service-body {
215 - h4 {
216 - margin: 0 0 4px;
217 - font-size: 1.125rem;
218 - font-weight: 800;
219 - }
244 + /* ==== Center last item on its own row while keeping 50% width ==== */
245 + .service-center {
246 + /* same width as siblings */
247 + flex: 0 1 calc(55% - 12px);
220 220  
221 - p {
222 - margin: 0 0 6px;
223 - color: @text;
224 - line-height: 1.5;
225 - }
249 + /* push to center */
250 + margin-left: auto;
251 + margin-right: auto;
252 + }
226 226  
227 - ul {
228 - margin: .45rem 0 0;
229 - padding-left: 1.1rem;
230 - color: @muted;
231 - font-size: 13px;
232 - }
233 -
234 - li {
235 - margin: .25rem 0;
236 - line-height: 1.45;
237 - }
238 - }
254 + /* Mobile: 1 per row */
255 + @media (max-width: 767px) {
256 + .services-grid {
257 + gap: 16px;
258 + max-width: 100%;
239 239   }
240 240  
241 - /* Center the last item when odd:
242 - auto margins in a flex row push it to the middle */
261 + .service,
243 243   .service-center {
244 - margin-left: auto;
245 - margin-right: auto;
263 + flex: 0 1 100%;
264 + margin-left: 0;
265 + margin-right: 0;
246 246   }
247 -
248 - /* Mobile: 1 per row */
249 - @media (max-width: 767px) {
250 - .services-grid {
251 - gap: 16px;
252 - }
253 - .service {
254 - flex: 0 1 100%;
255 - }
256 - .service-center {
257 - margin-left: 0;
258 - margin-right: 0;
259 - }
260 - }
261 261   }
268 +}
262 262  
263 - /* ===== CTA ===== */
264 - .cta-section {
265 - padding: 24px 0 16px;
270 +/* ===== CTA ===== */
271 +.cta-section {
272 + padding: 24px 0 16px;
266 266  
267 - .contact-inline {
268 - margin: 0;
269 - color: @muted;
270 - a { color: @brand; }
271 - }
274 + .contact-inline {
275 + margin: 0;
276 + color: @muted;
277 + a { color: @brand; }
272 272   }
273 273  }
274 -