diff --git a/apps/web/src/app/globals.css b/apps/web/src/app/globals.css index 83ecac01..d2fc6c90 100644 --- a/apps/web/src/app/globals.css +++ b/apps/web/src/app/globals.css @@ -546,19 +546,18 @@ pre { } /* ============================================ - Skeleton Loading (Used by loading states) + Accessibility - Reduced Motion ============================================ */ -.skeleton { - background: linear-gradient( - 90deg, - rgba(255, 255, 255, 0.03) 0%, - rgba(255, 255, 255, 0.08) 50%, - rgba(255, 255, 255, 0.03) 100% - ); - background-size: 200% 100%; - animation: skeleton-shimmer 1.5s ease-in-out infinite; - border-radius: 0.5rem; +@media (prefers-reduced-motion: reduce) { + *, + *::before, + *::after { + animation-duration: 0.01ms !important; + animation-iteration-count: 1 !important; + transition-duration: 0.01ms !important; + scroll-behavior: auto !important; + } } @keyframes skeleton-shimmer { diff --git a/apps/web/src/app/page.tsx b/apps/web/src/app/page.tsx index 3fdcb554..10022ede 100644 --- a/apps/web/src/app/page.tsx +++ b/apps/web/src/app/page.tsx @@ -621,34 +621,39 @@ export default function HomePage() { /> - {/* Video Preview Card - Visual Example Only */} + {/* Video Preview Card - Example */}
-
- {/* Example label */} -
- Example Preview +
+ {/* "Example" Badge */} +
+ + + Example Preview +
- - {/* Glow effect */} -
- -
- {/* Video thumbnail placeholder */} -
-
-
🎬
- - {/* Play button overlay */} -
-
- â–¶ + +
+ {/* Glow effect */} +
+ +
+ {/* Video thumbnail placeholder */} +
+
+
🎬
+ + {/* Play button overlay */} +
+
+ â–¶ +
-
- {/* Video info overlay */} -
-

Sample: How to build a startup

-

12:34 • Ready to transform

+ {/* Video info overlay */} +
+

Sample: How to build a startup

+

12:34 • Ready to transform

+
diff --git a/apps/web/src/components/ui/SuggestedPrompts.tsx b/apps/web/src/components/ui/SuggestedPrompts.tsx index efe1e741..c60490af 100644 --- a/apps/web/src/components/ui/SuggestedPrompts.tsx +++ b/apps/web/src/components/ui/SuggestedPrompts.tsx @@ -136,11 +136,12 @@ const SuggestedPrompts = forwardRef( topic={topic} onSelect={onSelectTopic} style={{ - animationDelay: `${300 + index * 100}ms`, + '--animation-delay': `${300 + index * 100}ms`, + animationDelay: 'var(--animation-delay)', animationFillMode: 'forwards', opacity: 0 - }} - className="animate-fade-in-up motion-reduce:animate-none motion-reduce:opacity-100" + } as React.CSSProperties} + className="animate-fade-in-up" /> ))}