Changes for page Tidy-Lab Cloud Platform

Last modified by Humphrey AI on 2026/03/22 10:27

From version 31.1
edited by Humphrey AI
on 2026/03/19 16:03
Change comment: There is no comment for this version
To version 43.1
edited by Humphrey AI
on 2026/03/22 10:25
Change comment: There is no comment for this version

Summary

Details

XWiki.JavaScriptExtension[0]
code
... ... @@ -4,68 +4,20 @@
4 4   var hero = document.querySelector('.tl-hero');
5 5   if (!hero) return;
6 6  
7 - // Collect all chrome elements to fade
8 - var chromeSelectors = [
9 - '#menuview', '#headerglobal', '#hierarchy_breadcrumb',
10 - '.document-header', '#xdocFooter', '#xwikidata',
11 - '#footerglobal', '.skip-nav'
12 - ];
13 - var chromeElements = [];
14 - chromeSelectors.forEach(function(sel) {
15 - var el = document.querySelector(sel);
16 - if (el) chromeElements.push(el);
17 - });
18 -
19 - var wasFading = false;
20 -
7 + // Simple scroll check: toggle tl-scrolled when past the hero
21 21   function onScroll() {
22 22   var heroHeight = hero.offsetHeight;
23 23   var scrollY = window.pageYOffset || document.documentElement.scrollTop;
24 24  
25 - // Start fading at 30% scroll, fully visible at 70%
26 - var fadeStart = heroHeight * 0.3;
27 - var fadeEnd = heroHeight * 0.7;
28 - var progress = 0;
29 -
30 - if (scrollY <= fadeStart) {
31 - progress = 0;
32 - } else if (scrollY >= fadeEnd) {
33 - progress = 1;
34 - } else {
35 - progress = (scrollY - fadeStart) / (fadeEnd - fadeStart);
36 - }
37 -
38 - if (progress > 0 && progress < 1) {
39 - // Fading: switch from display:none to opacity-based
40 - if (!wasFading) {
41 - document.body.classList.add('tl-fading');
42 - document.body.classList.remove('tl-scrolled');
43 - wasFading = true;
44 - }
45 - chromeElements.forEach(function(el) {
46 - el.style.opacity = progress;
47 - });
48 - } else if (progress >= 1) {
49 - // Fully scrolled: restore normal layout
50 - document.body.classList.remove('tl-fading');
12 + if (scrollY >= heroHeight * 0.7) {
51 51   document.body.classList.add('tl-scrolled');
52 - chromeElements.forEach(function(el) {
53 - el.style.opacity = '';
54 - });
55 - wasFading = false;
56 56   } else {
57 - // At top: hide everything
58 - document.body.classList.remove('tl-fading');
59 59   document.body.classList.remove('tl-scrolled');
60 - chromeElements.forEach(function(el) {
61 - el.style.opacity = '';
62 - });
63 - wasFading = false;
64 64   }
65 65   }
66 66  
67 67   window.addEventListener('scroll', onScroll, { passive: true });
68 - onScroll(); // run once on load
20 + onScroll();
69 69  
70 70   // Smooth scroll for the arrow
71 71   var scrollLink = document.querySelector('.tl-hero-scroll');
... ... @@ -78,4 +78,17 @@
78 78   }
79 79   });
80 80   }
33 +
34 + // Scroll-reveal observer for below-the-fold content
35 + var revealObserver = new IntersectionObserver(function(entries) {
36 + entries.forEach(function(entry) {
37 + if (entry.isIntersecting) {
38 + entry.target.classList.add('tl-visible');
39 + }
40 + });
41 + }, { threshold: 0.08, rootMargin: '0px 0px -40px 0px' });
42 +
43 + document.querySelectorAll('.tl-reveal').forEach(function(el) {
44 + revealObserver.observe(el);
45 + });
81 81   })();
XWiki.StyleSheetExtension[0]
code
... ... @@ -3,41 +3,39 @@
3 3   Targets exact XWiki 18.1 Flamingo DOM element IDs.
4 4   ========================================================================== */
5 5  
6 + /* --- Design Tokens (from concept-b) --- */
7 + :root {
8 + --hero-purple: #2D2B55;
9 + --indigo: #4F46E5;
10 + --indigo-light: #EEF2FF;
11 + --indigo-dark: #1e1b4b;
12 + --purple: #7C3AED;
13 + --green: #10B981;
14 + --green-light: #ECFDF5;
15 + --text-dark: #111827;
16 + --text-body: #4B5563;
17 + --text-muted: #9CA3AF;
18 + --border: #E5E7EB;
19 + --bg-light: #f8f9fc;
20 + --bg-section: #f0f1f8;
21 + }
22 +
6 6   /* ==========================================================================
7 - Phase 1: HERO VISIBLEhide chrome, full-bleed layout
24 + NAV — always visible, fixed, blends with hero
8 8   ========================================================================== */
9 9  
10 - /* Chrome elements: hidden initially with display:none (no space taken) */
11 - .tl-hero-page:not(.tl-scrolled) #menuview,
12 - .tl-hero-page:not(.tl-scrolled) #headerglobal,
13 - .tl-hero-page:not(.tl-scrolled) #hierarchy_breadcrumb,
14 - .tl-hero-page:not(.tl-scrolled) .document-header,
15 - .tl-hero-page:not(.tl-scrolled) #xdocFooter,
16 - .tl-hero-page:not(.tl-scrolled) #xwikidata,
17 - .tl-hero-page:not(.tl-scrolled) #footerglobal,
18 - .tl-hero-page:not(.tl-scrolled) .skip-nav {
27 + /* Hide hamburger drawer button — empty menu, not needed */
28 + .tl-hero-page #tmDrawerActivator {
19 19   display: none !important;
20 20   }
21 21  
22 - /* When fading in (JS adds tl-fading), switch to opacity-based visibility */
23 - .tl-hero-page.tl-fading #menuview,
24 - .tl-hero-page.tl-fading #headerglobal,
25 - .tl-hero-page.tl-fading #hierarchy_breadcrumb,
26 - .tl-hero-page.tl-fading .document-header,
27 - .tl-hero-page.tl-fading #xdocFooter,
28 - .tl-hero-page.tl-fading #xwikidata,
29 - .tl-hero-page.tl-fading #footerglobal,
30 - .tl-hero-page.tl-fading .skip-nav {
31 - display: block !important;
32 + /* Nav bar logo margin */
33 + .tl-hero-page #menuview .navbar-brand img {
34 + margin: 2px !important;
32 32   }
33 33  
34 - .tl-hero-page.tl-fading .document-header {
35 - display: flex !important;
36 - }
37 -
38 - /* Sticky navbar once visible */
39 - .tl-hero-page.tl-fading #menuview,
40 - .tl-hero-page.tl-scrolled #menuview {
37 + /* Nav is always fixed at top */
38 + .tl-hero-page #menuview {
41 41   position: fixed !important;
42 42   top: 0;
43 43   left: 0;
... ... @@ -44,8 +44,45 @@
44 44   width: 100%;
45 45   z-index: 1030;
46 46   overflow: hidden;
45 + transition: background-color 0.3s ease, box-shadow 0.3s ease;
47 47   }
48 48  
48 + /* On the hero: match hero purple exactly (#2D2B55, not theme default #1e1b4b) */
49 + .tl-hero-page:not(.tl-scrolled) #menuview,
50 + .tl-hero-page:not(.tl-scrolled) #menuview .navbar-default {
51 + background-color: #2D2B55 !important;
52 + background-image: none !important;
53 + border-color: transparent !important;
54 + box-shadow: none !important;
55 + }
56 +
57 + /* After scrolling past hero: same purple with shadow */
58 + .tl-hero-page.tl-scrolled #menuview,
59 + .tl-hero-page.tl-scrolled #menuview .navbar-default {
60 + background-color: #2D2B55 !important;
61 + background-image: none !important;
62 + border-color: transparent !important;
63 + box-shadow: 0 2px 12px rgba(0, 0, 0, 0.15) !important;
64 + }
65 +
66 + /* Search button: match hero purple instead of theme default #1e1b4b */
67 +.tl-hero-page #menuview .btn[aria-controls="headerglobalsearchinput"],
68 +.tl-hero-page #menuview .navbar-default .btn[title="Search"] {
69 + background-color: var(--hero-purple) !important;
70 + border-color: rgba(255, 255, 255, 0.15) !important;
71 +}
72 +
73 +/* Hide non-nav chrome on the hero (breadcrumbs, footer, etc.) */
74 + .tl-hero-page:not(.tl-scrolled) #headerglobal,
75 + .tl-hero-page:not(.tl-scrolled) #hierarchy_breadcrumb,
76 + .tl-hero-page:not(.tl-scrolled) .document-header,
77 + .tl-hero-page:not(.tl-scrolled) #xdocFooter,
78 + .tl-hero-page:not(.tl-scrolled) #xwikidata,
79 + .tl-hero-page:not(.tl-scrolled) #footerglobal,
80 + .tl-hero-page:not(.tl-scrolled) .skip-nav {
81 + display: none !important;
82 + }
83 +
49 49   /* Prevent any horizontal overflow */
50 50   html, body.tl-hero-page,
51 51   .tl-hero-page #xwikimaincontainer,
... ... @@ -95,7 +95,7 @@
95 95   /* --- Top half: dark purple --- */
96 96   .tl-hero-top {
97 97   flex: 1;
98 - background-color: #2D2B55;
133 + background-color: var(--hero-purple);
99 99   display: flex;
100 100   flex-direction: column;
101 101   justify-content: flex-end;
... ... @@ -105,6 +105,29 @@
105 105   overflow: visible;
106 106   }
107 107  
143 + /* Subtle radial glow behind title */
144 + .tl-hero-top::before {
145 + content: '';
146 + position: absolute;
147 + bottom: -60px;
148 + left: 50%;
149 + transform: translateX(-50%);
150 + width: 700px;
151 + height: 350px;
152 + background: radial-gradient(ellipse, rgba(79,70,229,0.2) 0%, transparent 70%);
153 + pointer-events: none;
154 + }
155 +
156 + /* Faint dot pattern for texture */
157 + .tl-hero-top::after {
158 + content: '';
159 + position: absolute;
160 + inset: 0;
161 + background-image: radial-gradient(rgba(255,255,255,0.03) 1px, transparent 1px);
162 + background-size: 24px 24px;
163 + pointer-events: none;
164 + }
165 +
108 108   /* --- Bottom half: white --- */
109 109   .tl-hero-bottom {
110 110   flex: 1;
... ... @@ -134,6 +134,8 @@
134 134   .tl-hero-center {
135 135   text-align: center;
136 136   padding: 0 20px;
195 + position: relative;
196 + z-index: 1;
137 137   }
138 138  
139 139   .tl-hero-title {
... ... @@ -166,7 +166,6 @@
166 166   color: rgba(123, 120, 255, 0.6);
167 167   font-size: 24px;
168 168   text-decoration: none;
169 - animation: tl-bounce 2s ease infinite;
170 170   z-index: 2;
171 171   }
172 172  
... ... @@ -175,12 +175,6 @@
175 175   text-decoration: none;
176 176   }
177 177  
178 - @keyframes tl-bounce {
179 - 0%, 20%, 50%, 80%, 100% { transform: translateX(-50%) translateY(0); }
180 - 40% { transform: translateX(-50%) translateY(-12px); }
181 - 60% { transform: translateX(-50%) translateY(-6px); }
182 - }
183 -
184 184   /* ==========================================================================
185 185   Content area below hero — restore normal layout
186 186   ========================================================================== */
... ... @@ -203,6 +203,58 @@
203 203   }
204 204  
205 205   /* ==========================================================================
259 + Animations (from concept-b)
260 + ========================================================================== */
261 + @keyframes tl-fadeIn {
262 + from { opacity: 0; }
263 + to { opacity: 1; }
264 + }
265 +
266 + @keyframes tl-fadeUp {
267 + from { opacity: 0; transform: translateY(24px); }
268 + to { opacity: 1; transform: translateY(0); }
269 + }
270 +
271 + @keyframes tl-bounce {
272 + 0%, 20%, 50%, 80%, 100% { transform: translateX(-50%) translateY(0); }
273 + 40% { transform: translateX(-50%) translateY(-12px); }
274 + 60% { transform: translateX(-50%) translateY(-6px); }
275 + }
276 +
277 + /* Scroll-reveal for below-the-fold content */
278 + .tl-reveal {
279 + opacity: 0;
280 + transform: translateY(28px);
281 + transition: opacity 0.7s ease-out, transform 0.7s ease-out;
282 + }
283 +
284 + .tl-reveal.tl-visible {
285 + opacity: 1;
286 + transform: translateY(0);
287 + }
288 +
289 + /* Hero elements fade in on load */
290 + .tl-hero-title {
291 + opacity: 0;
292 + animation: tl-fadeIn 0.6s ease-out 0.1s forwards;
293 + }
294 +
295 + .tl-hero-tagline {
296 + opacity: 0;
297 + animation: tl-fadeIn 0.5s ease-out 0.3s forwards;
298 + }
299 +
300 + .tl-partner-btn-wrap {
301 + opacity: 0;
302 + animation: tl-fadeUp 0.5s ease-out 0.5s forwards;
303 + }
304 +
305 + .tl-hero-scroll {
306 + opacity: 0;
307 + animation: tl-fadeIn 0.4s ease-out 0.7s forwards, tl-bounce 2s ease 1.1s infinite;
308 + }
309 +
310 + /* ==========================================================================
206 206   Responsive
207 207   ========================================================================== */
208 208   @media (max-width: 992px) {
... ... @@ -212,6 +212,7 @@
212 212   .tl-hero-logo-bar { top: 20px; left: 20px; }
213 213   .tl-hero-top { padding-bottom: 24px; }
214 214   .tl-hero-bottom { padding-top: 16px; }
320 + .tl-hero-top::before { width: 500px; height: 250px; }
215 215   }
216 216  
217 217   @media (max-width: 576px) {
... ... @@ -222,17 +222,12 @@
222 222   .tl-hero-scroll { bottom: 15px; }
223 223   .tl-hero-top { padding-bottom: 20px; }
224 224   .tl-hero-bottom { padding-top: 12px; }
331 + .tl-hero-top::before { width: 300px; height: 150px; }
225 225   }
226 226  
227 227   /* --- Print: skip hero --- */
228 228   @media print {
229 229   .tl-hero { display: none; }
230 - .tl-hero-page #tmHeader,
231 - .tl-hero-page .navbar,
232 - .tl-hero-page #hierarchy {
233 - opacity: 1;
234 - pointer-events: auto;
235 - }
236 236   }
237 237  
238 238   /* ==========================================================================
... ... @@ -239,7 +239,7 @@
239 239   Partner Access Button
240 240   ========================================================================== */
241 241   .tl-partner-btn-wrap {
242 - margin-top: 80px;
343 + margin-top: 15vh;
243 243   text-align: center;
244 244   }
245 245  
... ... @@ -246,7 +246,7 @@
246 246   .tl-partner-btn {
247 247   display: inline-block;
248 248   padding: 12px 40px;
249 - background-color: #2D2B55;
350 + background-color: var(--hero-purple);
250 250   color: #FFFFFF !important;
251 251   font-family: "Calibri", "Segoe UI", sans-serif;
252 252   font-size: 15px;
... ... @@ -254,7 +254,7 @@
254 254   letter-spacing: 3px;
255 255   text-transform: uppercase;
256 256   text-decoration: none !important;
257 - border: 2px solid #2D2B55;
358 + border: 2px solid var(--hero-purple);
258 258   border-radius: 0;
259 259   transition: all 0.3s ease;
260 260   cursor: pointer;
... ... @@ -262,8 +262,8 @@
262 262  
263 263   .tl-partner-btn:hover {
264 264   background-color: transparent;
265 - color: #2D2B55 !important;
266 - border-color: #2D2B55;
366 + color: var(--hero-purple) !important;
367 + border-color: var(--hero-purple);
267 267   text-decoration: none !important;
268 268   }
269 269  
XWiki.XWikiRights[1]
allow
... ... @@ -1,0 +1,1 @@
1 +Allow
groups
... ... @@ -1,0 +1,1 @@
1 +XWiki.XWikiAllGroup
levels
... ... @@ -1,0 +1,1 @@
1 +view