Changes for page Tidy-Lab Cloud Platform

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

From version 38.1
edited by Humphrey AI
on 2026/03/19 16:28
Change comment: There is no comment for this version
To version 33.1
edited by Humphrey AI
on 2026/03/19 16:05
Change comment: There is no comment for this version

Summary

Details

XWiki.JavaScriptExtension[0]
code
... ... @@ -4,20 +4,68 @@
4 4   var hero = document.querySelector('.tl-hero');
5 5   if (!hero) return;
6 6  
7 - // Simple scroll check: toggle tl-scrolled when past the hero
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 +
8 8   function onScroll() {
9 9   var heroHeight = hero.offsetHeight;
10 10   var scrollY = window.pageYOffset || document.documentElement.scrollTop;
11 11  
12 - if (scrollY >= heroHeight * 0.7) {
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');
13 13   document.body.classList.add('tl-scrolled');
52 + chromeElements.forEach(function(el) {
53 + el.style.opacity = '';
54 + });
55 + wasFading = false;
14 14   } else {
57 + // At top: hide everything
58 + document.body.classList.remove('tl-fading');
15 15   document.body.classList.remove('tl-scrolled');
60 + chromeElements.forEach(function(el) {
61 + el.style.opacity = '';
62 + });
63 + wasFading = false;
16 16   }
17 17   }
18 18  
19 19   window.addEventListener('scroll', onScroll, { passive: true });
20 - onScroll();
68 + onScroll(); // run once on load
21 21  
22 22   // Smooth scroll for the arrow
23 23   var scrollLink = document.querySelector('.tl-hero-scroll');
... ... @@ -30,17 +30,4 @@
30 30   }
31 31   });
32 32   }
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 - });
46 46   })();
XWiki.StyleSheetExtension[0]
code
... ... @@ -3,57 +3,12 @@
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 -
23 23   /* ==========================================================================
24 - NAV — always visible, fixed, blends with hero
7 + Phase 1: HERO VISIBLEhide chrome, full-bleed layout
25 25   ========================================================================== */
26 26  
27 - /* Nav is always fixed at top */
28 - .tl-hero-page #menuview {
29 - position: fixed !important;
30 - top: 0;
31 - left: 0;
32 - width: 100%;
33 - z-index: 1030;
34 - overflow: hidden;
35 - transition: background-color 0.3s ease, box-shadow 0.3s ease;
36 - }
37 -
38 - /* On the hero: match hero purple exactly (#2D2B55, not theme default #1e1b4b) */
10 + /* Chrome elements: hidden initially with display:none (no space taken) */
39 39   .tl-hero-page:not(.tl-scrolled) #menuview,
40 - .tl-hero-page:not(.tl-scrolled) #menuview .navbar-default {
41 - background-color: #2D2B55 !important;
42 - background-image: none !important;
43 - border-color: transparent !important;
44 - box-shadow: none !important;
45 - }
46 -
47 - /* After scrolling past hero: same purple with shadow */
48 - .tl-hero-page.tl-scrolled #menuview,
49 - .tl-hero-page.tl-scrolled #menuview .navbar-default {
50 - background-color: #2D2B55 !important;
51 - background-image: none !important;
52 - border-color: transparent !important;
53 - box-shadow: 0 2px 12px rgba(0, 0, 0, 0.15) !important;
54 - }
55 -
56 - /* Hide non-nav chrome on the hero (breadcrumbs, footer, etc.) */
57 57   .tl-hero-page:not(.tl-scrolled) #headerglobal,
58 58   .tl-hero-page:not(.tl-scrolled) #hierarchy_breadcrumb,
59 59   .tl-hero-page:not(.tl-scrolled) .document-header,
... ... @@ -64,6 +64,33 @@
64 64   display: none !important;
65 65   }
66 66  
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 + }
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 {
41 + position: fixed !important;
42 + top: 0;
43 + left: 0;
44 + width: 100%;
45 + z-index: 1030;
46 + overflow: hidden;
47 + }
48 +
67 67   /* Prevent any horizontal overflow */
68 68   html, body.tl-hero-page,
69 69   .tl-hero-page #xwikimaincontainer,
... ... @@ -113,7 +113,7 @@
113 113   /* --- Top half: dark purple --- */
114 114   .tl-hero-top {
115 115   flex: 1;
116 - background-color: var(--hero-purple);
98 + background-color: #2D2B55;
117 117   display: flex;
118 118   flex-direction: column;
119 119   justify-content: flex-end;
... ... @@ -123,29 +123,6 @@
123 123   overflow: visible;
124 124   }
125 125  
126 - /* Subtle radial glow behind title */
127 - .tl-hero-top::before {
128 - content: '';
129 - position: absolute;
130 - bottom: -60px;
131 - left: 50%;
132 - transform: translateX(-50%);
133 - width: 700px;
134 - height: 350px;
135 - background: radial-gradient(ellipse, rgba(79,70,229,0.2) 0%, transparent 70%);
136 - pointer-events: none;
137 - }
138 -
139 - /* Faint dot pattern for texture */
140 - .tl-hero-top::after {
141 - content: '';
142 - position: absolute;
143 - inset: 0;
144 - background-image: radial-gradient(rgba(255,255,255,0.03) 1px, transparent 1px);
145 - background-size: 24px 24px;
146 - pointer-events: none;
147 - }
148 -
149 149   /* --- Bottom half: white --- */
150 150   .tl-hero-bottom {
151 151   flex: 1;
... ... @@ -175,8 +175,6 @@
175 175   .tl-hero-center {
176 176   text-align: center;
177 177   padding: 0 20px;
178 - position: relative;
179 - z-index: 1;
180 180   }
181 181  
182 182   .tl-hero-title {
... ... @@ -209,6 +209,7 @@
209 209   color: rgba(123, 120, 255, 0.6);
210 210   font-size: 24px;
211 211   text-decoration: none;
169 + animation: tl-bounce 2s ease infinite;
212 212   z-index: 2;
213 213   }
214 214  
... ... @@ -217,6 +217,12 @@
217 217   text-decoration: none;
218 218   }
219 219  
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 +
220 220   /* ==========================================================================
221 221   Content area below hero — restore normal layout
222 222   ========================================================================== */
... ... @@ -239,58 +239,6 @@
239 239   }
240 240  
241 241   /* ==========================================================================
242 - Animations (from concept-b)
243 - ========================================================================== */
244 - @keyframes tl-fadeIn {
245 - from { opacity: 0; }
246 - to { opacity: 1; }
247 - }
248 -
249 - @keyframes tl-fadeUp {
250 - from { opacity: 0; transform: translateY(24px); }
251 - to { opacity: 1; transform: translateY(0); }
252 - }
253 -
254 - @keyframes tl-bounce {
255 - 0%, 20%, 50%, 80%, 100% { transform: translateX(-50%) translateY(0); }
256 - 40% { transform: translateX(-50%) translateY(-12px); }
257 - 60% { transform: translateX(-50%) translateY(-6px); }
258 - }
259 -
260 - /* Scroll-reveal for below-the-fold content */
261 - .tl-reveal {
262 - opacity: 0;
263 - transform: translateY(28px);
264 - transition: opacity 0.7s ease-out, transform 0.7s ease-out;
265 - }
266 -
267 - .tl-reveal.tl-visible {
268 - opacity: 1;
269 - transform: translateY(0);
270 - }
271 -
272 - /* Hero elements fade in on load */
273 - .tl-hero-title {
274 - opacity: 0;
275 - animation: tl-fadeIn 0.6s ease-out 0.1s forwards;
276 - }
277 -
278 - .tl-hero-tagline {
279 - opacity: 0;
280 - animation: tl-fadeIn 0.5s ease-out 0.3s forwards;
281 - }
282 -
283 - .tl-partner-btn-wrap {
284 - opacity: 0;
285 - animation: tl-fadeUp 0.5s ease-out 0.5s forwards;
286 - }
287 -
288 - .tl-hero-scroll {
289 - opacity: 0;
290 - animation: tl-fadeIn 0.4s ease-out 0.7s forwards, tl-bounce 2s ease 1.1s infinite;
291 - }
292 -
293 - /* ==========================================================================
294 294   Responsive
295 295   ========================================================================== */
296 296   @media (max-width: 992px) {
... ... @@ -300,7 +300,6 @@
300 300   .tl-hero-logo-bar { top: 20px; left: 20px; }
301 301   .tl-hero-top { padding-bottom: 24px; }
302 302   .tl-hero-bottom { padding-top: 16px; }
303 - .tl-hero-top::before { width: 500px; height: 250px; }
304 304   }
305 305  
306 306   @media (max-width: 576px) {
... ... @@ -311,12 +311,17 @@
311 311   .tl-hero-scroll { bottom: 15px; }
312 312   .tl-hero-top { padding-bottom: 20px; }
313 313   .tl-hero-bottom { padding-top: 12px; }
314 - .tl-hero-top::before { width: 300px; height: 150px; }
315 315   }
316 316  
317 317   /* --- Print: skip hero --- */
318 318   @media print {
319 319   .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 + }
320 320   }
321 321  
322 322   /* ==========================================================================
... ... @@ -330,7 +330,7 @@
330 330   .tl-partner-btn {
331 331   display: inline-block;
332 332   padding: 12px 40px;
333 - background-color: var(--hero-purple);
249 + background-color: #2D2B55;
334 334   color: #FFFFFF !important;
335 335   font-family: "Calibri", "Segoe UI", sans-serif;
336 336   font-size: 15px;
... ... @@ -338,7 +338,7 @@
338 338   letter-spacing: 3px;
339 339   text-transform: uppercase;
340 340   text-decoration: none !important;
341 - border: 2px solid var(--hero-purple);
257 + border: 2px solid #2D2B55;
342 342   border-radius: 0;
343 343   transition: all 0.3s ease;
344 344   cursor: pointer;
... ... @@ -346,8 +346,8 @@
346 346  
347 347   .tl-partner-btn:hover {
348 348   background-color: transparent;
349 - color: var(--hero-purple) !important;
350 - border-color: var(--hero-purple);
265 + color: #2D2B55 !important;
266 + border-color: #2D2B55;
351 351   text-decoration: none !important;
352 352   }
353 353  
XWiki.XWikiRights[1]
allow
... ... @@ -1,1 +1,0 @@
1 -Allow
groups
... ... @@ -1,1 +1,0 @@
1 -XWiki.XWikiAllGroup
levels
... ... @@ -1,1 +1,0 @@
1 -view