@thebuilder/umbraco-docs 1.2.0 → 1.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +39 -0
- package/components/HeroParticles.astro +89 -0
- package/components/LandingHero.astro +3 -2
- package/components/LandingRoot.astro +10 -0
- package/dist/behaviors.js +14 -3
- package/dist/behaviors.js.map +1 -1
- package/dist/hero/browser.d.ts +30 -0
- package/dist/hero/browser.js +270 -0
- package/dist/hero/browser.js.map +1 -0
- package/dist/hero/field.d.ts +35 -0
- package/dist/hero/field.js +215 -0
- package/dist/hero/field.js.map +1 -0
- package/dist/hero/index.d.ts +6 -0
- package/dist/hero/index.js +4 -0
- package/dist/hero/index.js.map +1 -0
- package/dist/hero/scene.d.ts +44 -0
- package/dist/hero/scene.js +138 -0
- package/dist/hero/scene.js.map +1 -0
- package/dist/hero/shaders.generated.d.ts +6 -0
- package/dist/hero/shaders.generated.js +6 -0
- package/dist/hero/shaders.generated.js.map +1 -0
- package/dist/og/generator.js +7 -2
- package/dist/og/generator.js.map +1 -1
- package/dist/og/types.d.ts +2 -0
- package/dist/og/types.js +1 -0
- package/dist/og/types.js.map +1 -1
- package/package.json +15 -5
- package/styles/landing.css +30 -3
package/styles/landing.css
CHANGED
|
@@ -17,6 +17,25 @@
|
|
|
17
17
|
.udocs-hero { position: relative; overflow: clip; padding-block: clamp(3rem, 8vw, 6rem); }
|
|
18
18
|
/* An ellipse sized to its box is transparent before the box's bottom edge, and the box never outgrows the hero, so short heroes fade out instead of cutting off. */
|
|
19
19
|
.udocs-hero__glow { position: absolute; inset: -30% -10% auto; height: min(40rem, 130%); background: radial-gradient(ellipse at top, color-mix(in oklab, var(--udocs-accent) 24%, transparent), transparent 70%); pointer-events: none; }
|
|
20
|
+
/* The particle hero (HeroParticles) sits behind the text, down to where the hero's content below the text begins. */
|
|
21
|
+
.udocs-particles { position: absolute; inset: calc(-1 * var(--udocs-particles-lift, 0px)) 0 auto; height: calc(var(--udocs-particles-height, 100%) + var(--udocs-particles-lift, 0px)); pointer-events: none; }
|
|
22
|
+
/* Let the particles reach up behind a header, and no further: content above the header stays clear. */
|
|
23
|
+
.udocs-hero:has(> .udocs-particles) { overflow: visible; clip-path: inset(calc(-1 * var(--udocs-particles-lift, 0px)) 0 0); }
|
|
24
|
+
.udocs-particles__canvas { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; transition: opacity 600ms ease; }
|
|
25
|
+
.udocs-particles__canvas[data-ready] { opacity: 1; }
|
|
26
|
+
/* Only when the particles can't run: the logo itself, large and faded where they would form. */
|
|
27
|
+
/* 84% of the uncovered height, centered in it, the same box the particles form in. */
|
|
28
|
+
.udocs-particles__fallback { position: absolute; top: calc(0.92 * var(--udocs-particles-lift, 0px) + 8%); left: 0; display: none; width: 100%; height: calc(84% - 0.84 * var(--udocs-particles-lift, 0px)); object-fit: contain; opacity: 0.14; }
|
|
29
|
+
.udocs-particles[data-fallback] .udocs-particles__fallback { display: block; }
|
|
30
|
+
/* Blume's sticky header is a near-opaque band that would cover the particles running up behind it.
|
|
31
|
+
Over a particle hero it starts clear and turns to its own frosted background over the first
|
|
32
|
+
scroll. Browsers without scroll-driven animations keep the header as it is. */
|
|
33
|
+
@supports (animation-timeline: scroll()) {
|
|
34
|
+
/* Longhands only: the timeline isn't allowed in the animation shorthand, which minifiers would merge them into. */
|
|
35
|
+
html[data-udocs-particles-header] [data-blume-header] { animation-name: udocs-header-clear; animation-timing-function: linear; animation-fill-mode: both; animation-timeline: scroll(root); animation-range: 0 8rem; }
|
|
36
|
+
}
|
|
37
|
+
.udocs-hero__glow { transition: opacity 600ms ease; }
|
|
38
|
+
.udocs-particles:has(> [data-ready]) ~ .udocs-hero__glow { opacity: 0; }
|
|
20
39
|
.udocs-hero__inner { position: relative; display: flex; flex-direction: column; align-items: center; gap: 1.5rem; text-align: center; }
|
|
21
40
|
.udocs-hero__logo { width: 4.5rem; height: 4.5rem; object-fit: contain; }
|
|
22
41
|
.udocs-hero__title { max-width: 20ch; margin: 0; font-family: var(--blume-font-display, system-ui); font-size: clamp(2.4rem, 6vw, 4rem); line-height: 1.05; letter-spacing: -0.02em; text-wrap: balance; }
|
|
@@ -62,10 +81,18 @@
|
|
|
62
81
|
|
|
63
82
|
@layer udocs.motion {
|
|
64
83
|
[data-udocs-motion="true"] [data-udocs-reveal] { opacity: 0; transform: translateY(0.75rem); transition: opacity 0.45s ease, transform 0.45s ease; }
|
|
65
|
-
|
|
84
|
+
/* Only the way in waits. The stagger comes from the reveal behavior; a host can add an offset, for example to wait for its own intro. */
|
|
85
|
+
[data-udocs-motion="true"] [data-udocs-visible="true"] { opacity: 1; transform: none; transition-delay: calc(var(--udocs-reveal-offset, 0ms) + var(--udocs-reveal-stagger, 0ms)); }
|
|
66
86
|
@media (prefers-reduced-motion: reduce) {
|
|
67
87
|
[data-udocs-reveal] { opacity: 1 !important; transform: none !important; transition: none !important; }
|
|
68
|
-
.udocs-ecosystem__card, .udocs-ecosystem__title svg { transition: none; }
|
|
69
|
-
.udocs-ecosystem__card:hover, .udocs-ecosystem__card:hover .udocs-ecosystem__title svg { transform: none; }
|
|
70
88
|
}
|
|
71
89
|
}
|
|
90
|
+
|
|
91
|
+
/* Unlayered, like the transitions they turn off; a layered rule would lose to them. */
|
|
92
|
+
@media (prefers-reduced-motion: reduce) {
|
|
93
|
+
.udocs-ecosystem__card, .udocs-ecosystem__title svg, .udocs-particles__canvas, .udocs-hero__glow { transition: none; }
|
|
94
|
+
.udocs-ecosystem__card:hover, .udocs-ecosystem__card:hover .udocs-ecosystem__title svg { transform: none; }
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
/* Only a start: the header animates to its own background and blur. */
|
|
98
|
+
@keyframes udocs-header-clear { from { background-color: transparent; backdrop-filter: none; } }
|