-
-
-
Live
-
Browse XML Schemas
-
- Interactive documentation for all UnitsML schema versions —
- from the current 1.0 release back to the original 0.9 draft.
-
-
@@ -410,8 +266,8 @@ const tickerUnits = [
inset: 0;
pointer-events: none;
background-image:
- linear-gradient(rgba(45,44,105,0.04) 1px, transparent 1px),
- linear-gradient(90deg, rgba(45,44,105,0.04) 1px, transparent 1px);
+ linear-gradient(rgba(45,44,105,0.06) 1px, transparent 1px),
+ linear-gradient(90deg, rgba(45,44,105,0.06) 1px, transparent 1px);
background-size: 48px 48px;
mask-image: radial-gradient(ellipse 80% 70% at 50% 40%, black, transparent);
}
@@ -437,134 +293,67 @@ const tickerUnits = [
pointer-events: none;
}
-/* ── Unit ticker ── */
-.hero-ticker {
- position: relative;
- width: 100%;
- max-width: 600px;
- margin: 0 auto 2rem;
- overflow: hidden;
- -webkit-mask-image: linear-gradient(90deg, transparent, black 15%, black 85%, transparent);
- mask-image: linear-gradient(90deg, transparent, black 15%, black 85%, transparent);
-}
-.ticker-track {
- display: flex;
- gap: 1.5rem;
- animation: ticker-scroll 30s linear infinite;
- width: max-content;
-}
-.ticker-item {
- flex-shrink: 0;
- font-size: 0.8125rem;
- color: var(--vp-c-text-3);
- white-space: nowrap;
- opacity: 0.6;
-}
-.ticker-item code {
- font-size: 0.75rem;
- font-weight: 700;
- color: var(--vp-c-text-2);
- background: var(--vp-c-default-soft);
- padding: 0.1em 0.35em;
- border-radius: 3px;
- margin-right: 0.25rem;
-}
-@keyframes ticker-scroll {
- 0% { transform: translateX(0); }
- 100% { transform: translateX(-50%); }
-}
-
-.hero-shapes {
+/* ── SI dimensional symbols ── */
+.hero-dims {
position: absolute;
inset: 0;
pointer-events: none;
overflow: hidden;
}
-.hero-shape {
+.hero-dim {
position: absolute;
- border: 2px solid var(--unitsml-navy);
- animation: float 6s ease-in-out infinite;
+ font-family: Georgia, 'Times New Roman', serif;
+ font-weight: 300;
+ line-height: 1;
+ color: var(--unitsml-navy);
+ animation: float-dim 8s ease-in-out infinite;
+ user-select: none;
}
-.hero-shape.circle {
- border-radius: 50%;
+@keyframes float-dim {
+ 0%, 100% { transform: translateY(0); }
+ 50% { transform: translateY(-10px); }
}
-.hero-shape.square {
- border-radius: 4px;
- transform: rotate(45deg);
+/* ── Static unit pills ── */
+.hero-pills {
+ display: flex;
+ gap: 0.5rem;
+ justify-content: center;
+ flex-wrap: wrap;
+ margin-top: 2rem;
+ position: relative;
}
-.hero-shape.diamond {
+.hero-pill {
+ font-size: 0.6875rem;
+ font-weight: 700;
+ padding: 0.2rem 0.55rem;
border-radius: 4px;
- transform: rotate(45deg);
-}
-
-/* ── Stats section ── */
-.stats-section {
- padding: 2rem 0;
-}
-
-.stats-grid {
- display: grid;
- grid-template-columns: repeat(4, 1fr);
- gap: 1.5rem;
-}
-
-.stat-card {
- text-align: center;
- padding: 2rem 1rem;
- background: var(--vp-c-bg-soft);
- border: 1px solid var(--vp-c-divider);
- border-radius: 16px;
- transition: all 0.4s ease;
- opacity: 0;
- transform: translateY(16px);
-}
-
-.stat-card.visible {
- opacity: 1;
- transform: translateY(0);
+ background: var(--vp-c-default-soft);
+ color: var(--vp-c-text-3);
+ opacity: 0.5;
+ transition: opacity 0.2s;
}
-.stat-card:nth-child(2) { transition-delay: 80ms; }
-.stat-card:nth-child(3) { transition-delay: 160ms; }
-.stat-card:nth-child(4) { transition-delay: 240ms; }
-
-.stat-card:hover {
- border-color: var(--vp-c-brand-1);
- box-shadow: 0 4px 20px rgba(45, 44, 105, 0.08);
+.hero-pill:hover {
+ opacity: 0.8;
}
-.stat-icon {
- color: var(--vp-c-brand-1);
- margin-bottom: 0.75rem;
- display: flex;
- justify-content: center;
-}
-
-.stat-number {
- font-size: 2.5rem;
- font-weight: 800;
- line-height: 1;
- margin-bottom: 0.5rem;
- background: linear-gradient(135deg, var(--unitsml-navy), var(--unitsml-teal-dark));
+/* ── Hero accent gradient animation ── */
+.home-hero h1 .accent {
+ background: linear-gradient(135deg, var(--unitsml-navy) 0%, var(--unitsml-teal-dark) 50%, var(--unitsml-blue) 100%);
+ background-size: 200% 200%;
+ animation: gradient-shift 8s ease infinite;
-webkit-background-clip: text;
-webkit-text-fill-color: transparent;
background-clip: text;
- font-variant-numeric: tabular-nums;
-}
-
-.stat-suffix {
- font-size: 1.5rem;
- font-weight: 600;
}
-.stat-label {
- font-size: 0.8125rem;
- color: var(--vp-c-text-2);
- font-weight: 500;
+@keyframes gradient-shift {
+ 0%, 100% { background-position: 0% 50%; }
+ 50% { background-position: 100% 50%; }
}
/* ── UnitsDB CTA ── */
@@ -748,6 +537,12 @@ const tickerUnits = [
-webkit-background-clip: text;
-webkit-text-fill-color: transparent;
background-clip: text;
+ animation: step-pop 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
+}
+
+@keyframes step-pop {
+ 0% { transform: scale(0.9); }
+ 100% { transform: scale(1); }
}
.step-tab-text {
@@ -780,6 +575,12 @@ const tickerUnits = [
min-height: 260px;
}
+/* Step fade transition */
+.step-fade-enter-active,
+.step-fade-leave-active { transition: opacity 0.2s ease; }
+.step-fade-enter-from,
+.step-fade-leave-to { opacity: 0; }
+
.code-header {
display: flex;
align-items: center;
@@ -796,6 +597,25 @@ const tickerUnits = [
letter-spacing: 0.05em;
}
+.code-actions {
+ display: flex;
+ align-items: center;
+ gap: 0.75rem;
+}
+
+.code-copy-btn {
+ background: none;
+ border: none;
+ cursor: pointer;
+ padding: 2px;
+ color: rgba(255,255,255,0.3);
+ transition: color 0.15s;
+}
+
+.code-copy-btn:hover {
+ color: rgba(255,255,255,0.7);
+}
+
.code-dots {
display: flex;
gap: 5px;
@@ -829,52 +649,71 @@ const tickerUnits = [
.step-code :deep(.xml-val) { color: #98c379; }
.step-code :deep(.xml-comment) { color: #5c6370; font-style: italic; }
-/* ── Schema card ── */
-.schema-card {
- position: relative;
- overflow: hidden;
+/* ── CTA Strip ── */
+.cta-strip {
+ display: grid;
+ grid-template-columns: repeat(3, 1fr);
+ gap: 1.25rem;
}
-.schema-grid-bg {
- position: absolute;
- inset: 0;
- background-image:
- linear-gradient(rgba(255,255,255,0.02) 1px, transparent 1px),
- linear-gradient(90deg, rgba(255,255,255,0.02) 1px, transparent 1px);
- background-size: 32px 32px;
- pointer-events: none;
+.cta-strip-card {
+ display: flex;
+ flex-direction: column;
+ padding: 2rem;
+ background: var(--vp-c-bg-soft);
+ border: 1px solid var(--vp-c-divider);
+ border-radius: 16px;
+ text-decoration: none;
+ color: inherit;
+ transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
-.schema-content {
- position: relative;
- z-index: 1;
+.cta-strip-card:hover {
+ border-color: var(--unitsml-navy);
+ box-shadow: 0 8px 30px rgba(45, 44, 105, 0.10);
+ transform: translateY(-2px);
}
-.schema-badge {
- display: inline-block;
- font-size: 0.6875rem;
- font-weight: 700;
- text-transform: uppercase;
- letter-spacing: 0.08em;
- padding: 0.25rem 0.75rem;
- border-radius: 4px;
- background: rgba(48, 223, 192, 0.15);
- color: var(--unitsml-teal-light);
+.cta-strip-icon {
+ width: 44px;
+ height: 44px;
+ border-radius: 12px;
+ display: flex;
+ align-items: center;
+ justify-content: center;
margin-bottom: 1rem;
+ background: linear-gradient(135deg, rgba(45, 44, 105, 0.08), rgba(87, 160, 254, 0.08));
+ color: var(--unitsml-navy);
}
-.schema-url {
- display: flex;
- align-items: center;
- gap: 0.5rem;
+.cta-strip-card h4 {
+ font-size: 1.0625rem;
+ font-weight: 600;
+ color: var(--vp-c-text-1);
+ margin-bottom: 0.5rem;
+}
+
+.cta-strip-card p {
+ font-size: 0.875rem;
+ color: var(--vp-c-text-2);
+ line-height: 1.6;
+ margin-bottom: 1rem;
+ flex: 1;
+}
+
+.cta-strip-link {
+ font-size: 0.8125rem;
+ font-weight: 600;
+ color: var(--vp-c-brand-1);
+ transition: color 0.2s;
+}
+
+.cta-strip-card:hover .cta-strip-link {
+ color: var(--unitsml-teal-dark);
}
/* ── Responsive ── */
@media (max-width: 768px) {
- .stats-grid {
- grid-template-columns: repeat(2, 1fr);
- }
-
.steps-layout {
grid-template-columns: 1fr;
}
@@ -883,11 +722,15 @@ const tickerUnits = [
position: static;
overflow: hidden;
}
-}
-@media (max-width: 480px) {
- .stats-grid {
+ .cta-strip {
grid-template-columns: 1fr;
}
}
+
+@media (prefers-reduced-motion: reduce) {
+ .hero-dim { animation: none !important; }
+ .home-hero h1 .accent { animation: none !important; }
+ .step-tab.active .step-tab-num { animation: none !important; }
+}
diff --git a/.vitepress/theme/components/NavScrollHandler.vue b/.vitepress/theme/components/NavScrollHandler.vue
index 552ae9c..fbd8bfd 100644
--- a/.vitepress/theme/components/NavScrollHandler.vue
+++ b/.vitepress/theme/components/NavScrollHandler.vue
@@ -76,9 +76,21 @@ function init() {
handleScroll()
}
+let scrollRevealObserver: IntersectionObserver | null = null
+
onMounted(() => {
init()
window.addEventListener('scroll', handleScroll, { passive: true })
+
+ scrollRevealObserver = new IntersectionObserver((entries) => {
+ entries.forEach(entry => {
+ if (entry.isIntersecting) {
+ entry.target.classList.add('visible')
+ scrollRevealObserver?.unobserve(entry.target)
+ }
+ })
+ }, { threshold: 0.1 })
+ document.querySelectorAll('.reveal').forEach(el => scrollRevealObserver!.observe(el))
})
onUnmounted(() => {
diff --git a/.vitepress/theme/components/UnitsDBBrowser.vue b/.vitepress/theme/components/UnitsDBBrowser.vue
index a93c584..b7d276b 100644
--- a/.vitepress/theme/components/UnitsDBBrowser.vue
+++ b/.vitepress/theme/components/UnitsDBBrowser.vue
@@ -1,5 +1,8 @@
-
-Redirecting to [Schemas](/schemas)...