Spaces:
Paused
Paused
Commit ·
a210ac1
1
Parent(s): 6be5db6
fix: resolve RTL robot overlap and improve WCAG AAA contrast in inverted cards
Browse files- app/globals.css +3 -1
- components/hero-section.tsx +9 -9
app/globals.css
CHANGED
|
@@ -486,17 +486,19 @@ body {
|
|
| 486 |
border-color: var(--card-border) !important;
|
| 487 |
}
|
| 488 |
|
| 489 |
-
/* Dynamic Local Primary Scoping for Inverted Containers */
|
| 490 |
.inverted-card, .premium-glass-card, .premium-glow-card {
|
| 491 |
--primary: oklch(0.82 0.12 85); /* Radiant Glowing Champagne Gold inside dark cards */
|
| 492 |
--primary-foreground: oklch(0.06 0.008 250); /* Dark text on light gold button inside dark cards */
|
| 493 |
--primary-glow: oklch(0.82 0.12 85 / 35%);
|
|
|
|
| 494 |
}
|
| 495 |
|
| 496 |
.dark .inverted-card, .dark .premium-glass-card, .dark .premium-glow-card {
|
| 497 |
--primary: oklch(0.35 0.12 65); /* Deep Rich Luxury Gold inside light cards */
|
| 498 |
--primary-foreground: oklch(0.985 0.006 85); /* Light text on dark gold button inside light cards */
|
| 499 |
--primary-glow: oklch(0.35 0.12 65 / 18%);
|
|
|
|
| 500 |
}
|
| 501 |
|
| 502 |
/* FeatureJourneyMap Laser Pulse Animation */
|
|
|
|
| 486 |
border-color: var(--card-border) !important;
|
| 487 |
}
|
| 488 |
|
| 489 |
+
/* Dynamic Local Primary & Destructive Scoping for Inverted Containers */
|
| 490 |
.inverted-card, .premium-glass-card, .premium-glow-card {
|
| 491 |
--primary: oklch(0.82 0.12 85); /* Radiant Glowing Champagne Gold inside dark cards */
|
| 492 |
--primary-foreground: oklch(0.06 0.008 250); /* Dark text on light gold button inside dark cards */
|
| 493 |
--primary-glow: oklch(0.82 0.12 85 / 35%);
|
| 494 |
+
--destructive: oklch(0.704 0.191 22.216); /* Bright Red for dark cards in Light Mode */
|
| 495 |
}
|
| 496 |
|
| 497 |
.dark .inverted-card, .dark .premium-glass-card, .dark .premium-glow-card {
|
| 498 |
--primary: oklch(0.35 0.12 65); /* Deep Rich Luxury Gold inside light cards */
|
| 499 |
--primary-foreground: oklch(0.985 0.006 85); /* Light text on dark gold button inside light cards */
|
| 500 |
--primary-glow: oklch(0.35 0.12 65 / 18%);
|
| 501 |
+
--destructive: oklch(0.577 0.245 27.325); /* Dark Red for light cards in Dark Mode */
|
| 502 |
}
|
| 503 |
|
| 504 |
/* FeatureJourneyMap Laser Pulse Animation */
|
components/hero-section.tsx
CHANGED
|
@@ -112,7 +112,7 @@ export function HeroSection() {
|
|
| 112 |
return (
|
| 113 |
<div className="relative z-10 w-full min-h-screen flex items-center overflow-hidden">
|
| 114 |
{/* Dynamic Agent Neural Particle network canvas — behind content */}
|
| 115 |
-
<div className="absolute inset-y-0 right-0 w-full lg:w-[55%] pointer-events-none z-0">
|
| 116 |
<AgentParticleCanvas
|
| 117 |
className="w-full h-full opacity-60 dark:opacity-40"
|
| 118 |
mouseX={rawMouse.x}
|
|
@@ -121,25 +121,25 @@ export function HeroSection() {
|
|
| 121 |
/>
|
| 122 |
</div>
|
| 123 |
{/* HUD Telemetry Overlays - Minimal & Highly Refined */}
|
| 124 |
-
<div className="absolute top-28 left-6 font-mono text-[8px] text-primary/65 select-none tracking-widest hidden lg:block" aria-hidden="true">
|
| 125 |
LOC // 37.7749° N, 122.4194° W <br />
|
| 126 |
SEC // HUB_ALPHA_CORE
|
| 127 |
</div>
|
| 128 |
-
<div className="absolute bottom-10 left-6 font-mono text-[8px] text-primary/65 select-none tracking-widest hidden lg:block" aria-hidden="true">
|
| 129 |
SYS_CLOCK: {mounted ? timeStr : "--:--:--"} UTC
|
| 130 |
</div>
|
| 131 |
|
| 132 |
<div className="flex-1 w-full max-w-7xl mx-auto px-6 lg:px-12 relative z-20">
|
| 133 |
<section className="relative flex flex-col justify-center items-start py-20 lg:py-0 w-full lg:w-1/2">
|
| 134 |
{/* Symmetrical/Asymmetrical Sleek Gradient Vertical Accent */}
|
| 135 |
-
<div className="absolute -top-12 -left-4 w-[2px] h-20 bg-gradient-to-b from-primary/40 to-transparent pointer-events-none hidden md:block" aria-hidden="true" />
|
| 136 |
|
| 137 |
<div className="w-full relative z-30">
|
| 138 |
<motion.div
|
| 139 |
initial={{ scaleX: 0, opacity: 0 }}
|
| 140 |
animate={{ scaleX: 1, opacity: 1 }}
|
| 141 |
transition={{ duration: 0.8, ease: "easeOut" }}
|
| 142 |
-
className="origin-left h-px w-full bg-gradient-to-r from-primary/60 via-primary/30 to-transparent"
|
| 143 |
></motion.div>
|
| 144 |
|
| 145 |
{/* A/B Test Variant Badge */}
|
|
@@ -149,7 +149,7 @@ export function HeroSection() {
|
|
| 149 |
transition={{ duration: 0.6, delay: 0.1 }}
|
| 150 |
className="inline-flex items-center rounded-full border border-primary/20 bg-primary/5 px-3 py-1 text-[9px] font-mono tracking-wider text-primary backdrop-blur-sm mt-6 mb-2 select-none"
|
| 151 |
>
|
| 152 |
-
<span className="relative flex h-1.5 w-1.5 mr-2">
|
| 153 |
<span className="animate-ping absolute inline-flex h-full w-full rounded-full bg-primary opacity-75"></span>
|
| 154 |
<span className="relative inline-flex rounded-full h-1.5 w-1.5 bg-primary"></span>
|
| 155 |
</span>
|
|
@@ -178,7 +178,7 @@ export function HeroSection() {
|
|
| 178 |
className="relative w-full"
|
| 179 |
>
|
| 180 |
{/* Decorative vertical blueprint tag */}
|
| 181 |
-
<div className="absolute -left-5 top-0 bottom-0 w-[2px] bg-primary/20 rounded-full hidden md:block" aria-hidden="true" />
|
| 182 |
<p className="mt-6 max-w-xl text-sm md:text-base text-muted-foreground leading-relaxed font-mono">
|
| 183 |
{variant === "classic" ? t("heroSubtitle") : t("heroSubtitleIntel")}
|
| 184 |
</p>
|
|
@@ -203,7 +203,7 @@ export function HeroSection() {
|
|
| 203 |
initial={{ opacity: 0 }}
|
| 204 |
animate={{ opacity: 1 }}
|
| 205 |
transition={{ duration: 1, delay: 0.5 }}
|
| 206 |
-
className="absolute right-0 top-0 lg:w-[50%] h-full z-[5] flex items-center justify-center opacity-40 lg:opacity-100 overflow-hidden pointer-events-auto cursor-pointer"
|
| 207 |
onMouseMove={handleMouseMove}
|
| 208 |
onMouseEnter={() => setRobotHovered(true)}
|
| 209 |
onMouseLeave={() => {
|
|
@@ -212,7 +212,7 @@ export function HeroSection() {
|
|
| 212 |
}}
|
| 213 |
style={{ perspective: "1000px" }}
|
| 214 |
>
|
| 215 |
-
<div className="relative w-[350px] h-[350px] md:w-[500px] md:h-[500px] lg:w-[600px] lg:h-[600px] xl:w-[700px] xl:h-[700px] translate-x-[10%] lg:translate-x-[5%] pointer-events-none">
|
| 216 |
|
| 217 |
<motion.div
|
| 218 |
className="w-full h-full relative flex items-center justify-center"
|
|
|
|
| 112 |
return (
|
| 113 |
<div className="relative z-10 w-full min-h-screen flex items-center overflow-hidden">
|
| 114 |
{/* Dynamic Agent Neural Particle network canvas — behind content */}
|
| 115 |
+
<div className="absolute inset-y-0 right-0 rtl:left-0 rtl:right-auto w-full lg:w-[55%] pointer-events-none z-0">
|
| 116 |
<AgentParticleCanvas
|
| 117 |
className="w-full h-full opacity-60 dark:opacity-40"
|
| 118 |
mouseX={rawMouse.x}
|
|
|
|
| 121 |
/>
|
| 122 |
</div>
|
| 123 |
{/* HUD Telemetry Overlays - Minimal & Highly Refined */}
|
| 124 |
+
<div className="absolute top-28 left-6 rtl:right-6 rtl:left-auto font-mono text-[8px] text-primary/65 select-none tracking-widest hidden lg:block" aria-hidden="true">
|
| 125 |
LOC // 37.7749° N, 122.4194° W <br />
|
| 126 |
SEC // HUB_ALPHA_CORE
|
| 127 |
</div>
|
| 128 |
+
<div className="absolute bottom-10 left-6 rtl:right-6 rtl:left-auto font-mono text-[8px] text-primary/65 select-none tracking-widest hidden lg:block" aria-hidden="true">
|
| 129 |
SYS_CLOCK: {mounted ? timeStr : "--:--:--"} UTC
|
| 130 |
</div>
|
| 131 |
|
| 132 |
<div className="flex-1 w-full max-w-7xl mx-auto px-6 lg:px-12 relative z-20">
|
| 133 |
<section className="relative flex flex-col justify-center items-start py-20 lg:py-0 w-full lg:w-1/2">
|
| 134 |
{/* Symmetrical/Asymmetrical Sleek Gradient Vertical Accent */}
|
| 135 |
+
<div className="absolute -top-12 -left-4 rtl:-right-4 rtl:left-auto w-[2px] h-20 bg-gradient-to-b from-primary/40 to-transparent pointer-events-none hidden md:block" aria-hidden="true" />
|
| 136 |
|
| 137 |
<div className="w-full relative z-30">
|
| 138 |
<motion.div
|
| 139 |
initial={{ scaleX: 0, opacity: 0 }}
|
| 140 |
animate={{ scaleX: 1, opacity: 1 }}
|
| 141 |
transition={{ duration: 0.8, ease: "easeOut" }}
|
| 142 |
+
className="origin-left rtl:origin-right h-px w-full bg-gradient-to-r rtl:bg-gradient-to-l from-primary/60 via-primary/30 to-transparent"
|
| 143 |
></motion.div>
|
| 144 |
|
| 145 |
{/* A/B Test Variant Badge */}
|
|
|
|
| 149 |
transition={{ duration: 0.6, delay: 0.1 }}
|
| 150 |
className="inline-flex items-center rounded-full border border-primary/20 bg-primary/5 px-3 py-1 text-[9px] font-mono tracking-wider text-primary backdrop-blur-sm mt-6 mb-2 select-none"
|
| 151 |
>
|
| 152 |
+
<span className="relative flex h-1.5 w-1.5 mr-2 rtl:mr-0 rtl:ml-2">
|
| 153 |
<span className="animate-ping absolute inline-flex h-full w-full rounded-full bg-primary opacity-75"></span>
|
| 154 |
<span className="relative inline-flex rounded-full h-1.5 w-1.5 bg-primary"></span>
|
| 155 |
</span>
|
|
|
|
| 178 |
className="relative w-full"
|
| 179 |
>
|
| 180 |
{/* Decorative vertical blueprint tag */}
|
| 181 |
+
<div className="absolute -left-5 rtl:-right-5 rtl:left-auto top-0 bottom-0 w-[2px] bg-primary/20 rounded-full hidden md:block" aria-hidden="true" />
|
| 182 |
<p className="mt-6 max-w-xl text-sm md:text-base text-muted-foreground leading-relaxed font-mono">
|
| 183 |
{variant === "classic" ? t("heroSubtitle") : t("heroSubtitleIntel")}
|
| 184 |
</p>
|
|
|
|
| 203 |
initial={{ opacity: 0 }}
|
| 204 |
animate={{ opacity: 1 }}
|
| 205 |
transition={{ duration: 1, delay: 0.5 }}
|
| 206 |
+
className="absolute right-0 rtl:left-0 rtl:right-auto top-0 lg:w-[50%] h-full z-[5] flex items-center justify-center opacity-40 lg:opacity-100 overflow-hidden pointer-events-auto cursor-pointer"
|
| 207 |
onMouseMove={handleMouseMove}
|
| 208 |
onMouseEnter={() => setRobotHovered(true)}
|
| 209 |
onMouseLeave={() => {
|
|
|
|
| 212 |
}}
|
| 213 |
style={{ perspective: "1000px" }}
|
| 214 |
>
|
| 215 |
+
<div className="relative w-[350px] h-[350px] md:w-[500px] md:h-[500px] lg:w-[600px] lg:h-[600px] xl:w-[700px] xl:h-[700px] translate-x-[10%] lg:translate-x-[5%] rtl:-translate-x-[10%] rtl:lg:-translate-x-[5%] pointer-events-none">
|
| 216 |
|
| 217 |
<motion.div
|
| 218 |
className="w-full h-full relative flex items-center justify-center"
|