From 093079ec07f9e7f51553d26aaea129b7db91be78 Mon Sep 17 00:00:00 2001 From: Claude Date: Tue, 27 Jan 2026 18:11:49 +0000 Subject: [PATCH 01/11] Polish UI design with enhanced visual components - Add SuggestedPrompts component with topic chips (Photosynthesis, Fermi Paradox, French Revolution, How Engines Work, Ancient Greece) - Update homepage hero section with new "VIDEO TO LEARNING APP" typography - Enhance Button component with improved gradients and hover states - Improve Card component with better hover interactions and glow effects - Polish Input component with enhanced focus and hover states - Add new CSS utilities: input-glow, chip styles, skeleton loading - Improve main CTA input with glow effect on hover - Add video preview card placeholder - Update navigation with better branding and hover animations https://claude.ai/code/session_014pLJQUfgLbwFbKDBcYJSyL --- apps/web/src/app/globals.css | 96 +++++++++++- apps/web/src/app/page.tsx | 136 +++++++++++----- apps/web/src/components/ui/Button.tsx | 42 ++--- apps/web/src/components/ui/Card.tsx | 25 +-- apps/web/src/components/ui/Input.tsx | 14 +- .../src/components/ui/SuggestedPrompts.tsx | 146 ++++++++++++++++++ apps/web/src/components/ui/index.ts | 3 + 7 files changed, 388 insertions(+), 74 deletions(-) create mode 100644 apps/web/src/components/ui/SuggestedPrompts.tsx diff --git a/apps/web/src/app/globals.css b/apps/web/src/app/globals.css index 41199fbc9..6715d1062 100644 --- a/apps/web/src/app/globals.css +++ b/apps/web/src/app/globals.css @@ -379,12 +379,17 @@ pre { rgb(var(--color-primary-dark)) 100% ); color: white; + box-shadow: 0 4px 14px -4px rgba(139, 92, 246, 0.4); } .btn-primary:hover { - opacity: 0.9; - transform: translateY(-1px); - box-shadow: 0 10px 20px -10px rgba(139, 92, 246, 0.5); + transform: translateY(-2px); + box-shadow: 0 12px 24px -8px rgba(139, 92, 246, 0.5); +} + +.btn-primary:active { + transform: translateY(0); + box-shadow: 0 4px 14px -4px rgba(139, 92, 246, 0.4); } .btn-secondary { @@ -550,3 +555,88 @@ pre { radial-gradient(at 0% 100%, rgba(139, 92, 246, 0.1) 0px, transparent 50%), radial-gradient(at 80% 100%, rgba(34, 211, 238, 0.08) 0px, transparent 50%); } + +/* ============================================ + Enhanced Input Styling + ============================================ */ + +.input-glow { + position: relative; +} + +.input-glow::before { + content: ""; + position: absolute; + inset: -2px; + background: linear-gradient( + 135deg, + rgba(139, 92, 246, 0.3) 0%, + rgba(34, 211, 238, 0.3) 100% + ); + border-radius: inherit; + opacity: 0; + transition: opacity var(--transition-base); + z-index: -1; + filter: blur(8px); +} + +.input-glow:focus-within::before { + opacity: 1; +} + +/* ============================================ + Topic Chip Styles + ============================================ */ + +.chip { + display: inline-flex; + align-items: center; + gap: 0.5rem; + padding: 0.625rem 1rem; + font-size: 0.875rem; + font-weight: 500; + border-radius: 0.75rem; + background: rgba(255, 255, 255, 0.03); + border: 1px solid rgba(255, 255, 255, 0.08); + color: rgba(255, 255, 255, 0.8); + transition: all var(--transition-base); + cursor: pointer; +} + +.chip:hover { + background: rgba(255, 255, 255, 0.06); + border-color: rgba(255, 255, 255, 0.15); + transform: translateY(-2px); +} + +.chip:active { + transform: translateY(0); +} + +/* ============================================ + Text Utilities + ============================================ */ + +.text-shadow-lg { + text-shadow: 0 4px 12px rgba(0, 0, 0, 0.5); +} + +.text-shadow-glow { + text-shadow: 0 0 40px rgba(139, 92, 246, 0.5); +} + +/* ============================================ + Skeleton Loading + ============================================ */ + +.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: shimmer 1.5s ease-in-out infinite; + border-radius: 0.5rem; +} diff --git a/apps/web/src/app/page.tsx b/apps/web/src/app/page.tsx index 144f12289..ebdbe0766 100644 --- a/apps/web/src/app/page.tsx +++ b/apps/web/src/app/page.tsx @@ -3,6 +3,7 @@ import Link from 'next/link'; import { useState, useEffect, useRef } from 'react'; import { clsx } from 'clsx'; +import { SuggestedPrompts } from '@/components/ui'; // ============================================ // Animated Counter Component @@ -310,29 +311,29 @@ export default function HomePage() { {/* Navigation */} - {/* Hero Section */} @@ -397,6 +580,7 @@ export default function HomePage() { /> @@ -689,20 +883,105 @@ console.log(result.deployedUrl); {/* Footer */} -