diff --git a/frontend/index.html b/frontend/index.html index de39ca3..d44719c 100644 --- a/frontend/index.html +++ b/frontend/index.html @@ -11,7 +11,7 @@ diff --git a/frontend/package-lock.json b/frontend/package-lock.json index d098e12..2b11a52 100644 --- a/frontend/package-lock.json +++ b/frontend/package-lock.json @@ -9,6 +9,7 @@ "version": "1.0.0", "dependencies": { "axios": "^1.7.9", + "framer-motion": "^14.1.0", "lucide-react": "^0.468.0", "react": "^18.3.1", "react-dom": "^18.3.1" @@ -2715,6 +2716,29 @@ "node": ">= 6" } }, + "node_modules/framer-motion": { + "version": "14.1.0", + "resolved": "https://registry.npmjs.org/framer-motion/-/framer-motion-14.1.0.tgz", + "integrity": "sha512-QsdZSdWoyQfUmgi+GZfow8Du5COG6VRYEo9FlgKUPgH87/Le/fYekHCAKwLdYKHdCZcZfWHg4iOxlD6RoqXciQ==", + "license": "MIT", + "dependencies": { + "motion-dom": "14.1.0", + "motion-utils": "14.1.0", + "tslib": "^2.4.0" + }, + "peerDependencies": { + "react": "^18.0.0 || ^19.0.0", + "react-dom": "^18.0.0 || ^19.0.0" + }, + "peerDependenciesMeta": { + "react": { + "optional": true + }, + "react-dom": { + "optional": true + } + } + }, "node_modules/fsevents": { "version": "2.3.3", "dev": true, @@ -3112,6 +3136,21 @@ "url": "https://github.com/sponsors/isaacs" } }, + "node_modules/motion-dom": { + "version": "14.1.0", + "resolved": "https://registry.npmjs.org/motion-dom/-/motion-dom-14.1.0.tgz", + "integrity": "sha512-FyFLkNUAAETzCvf851mZcl+v+kaZrKq+UM+XmkY4G8n+ny/WYfiWh9j0fhSQ1KOKVQrM9/cLO11THO2k71HJlg==", + "license": "MIT", + "dependencies": { + "motion-utils": "14.1.0" + } + }, + "node_modules/motion-utils": { + "version": "14.1.0", + "resolved": "https://registry.npmjs.org/motion-utils/-/motion-utils-14.1.0.tgz", + "integrity": "sha512-xd4FeWOnnXsJHmAaRCLNbOS7mEaNOangjMt3Pl241H07f1kxW48fADQ/8O5hLLNhf1qdlozgY3PPAHBdOoU7AA==", + "license": "MIT" + }, "node_modules/ms": { "version": "2.1.3", "license": "MIT" @@ -3469,6 +3508,12 @@ "url": "https://github.com/sponsors/SuperchupuDev" } }, + "node_modules/tslib": { + "version": "2.8.1", + "resolved": "https://registry.npmjs.org/tslib/-/tslib-2.8.1.tgz", + "integrity": "sha512-oJFu94HQb+KVduSUQL7wnpmqnfmLsOA/nAh6b6EH0wCEoK0/mPeXU6c3wKDV83MkOuHPRHtSXKKU99IBazS/2w==", + "license": "0BSD" + }, "node_modules/type-check": { "version": "0.4.0", "resolved": "https://registry.npmjs.org/type-check/-/type-check-0.4.0.tgz", diff --git a/frontend/package.json b/frontend/package.json index ea1bc16..0a7b549 100644 --- a/frontend/package.json +++ b/frontend/package.json @@ -11,6 +11,7 @@ }, "dependencies": { "axios": "^1.7.9", + "framer-motion": "^14.1.0", "lucide-react": "^0.468.0", "react": "^18.3.1", "react-dom": "^18.3.1" diff --git a/frontend/src/App.jsx b/frontend/src/App.jsx index 6c606c3..5c7d4f1 100644 --- a/frontend/src/App.jsx +++ b/frontend/src/App.jsx @@ -1,5 +1,6 @@ import { useEffect, useRef, useState } from 'react'; import { ArrowLeft, ArrowRight, CircleAlert, CloudOff, Info, RefreshCw, RotateCcw, Server } from 'lucide-react'; +import { motion, AnimatePresence, MotionConfig, useScroll } from 'framer-motion'; import { analyze, getRoles, getHealth, isCancelled, toFriendlyError } from './api/client'; import SkillInput from './components/SkillInput'; import RoleSelect from './components/RoleSelect'; @@ -10,18 +11,19 @@ import RoleSkillMix from './components/ui/RoleSkillMix'; import Card from './components/ui/Card'; import { SkeletonBarRow } from './components/ui/Skeleton'; import Skeleton from './components/ui/Skeleton'; +import { fadeUp, staggerContainer, maskReveal, viewTransition } from './animations'; const MIN_SKILLS = 2; const AUTO_RETRY_SECONDS = 15; const WAKING_AFTER_SECONDS = 4; const SKILL_INPUT_ID = 'skill-search'; -const container = 'mx-auto max-w-[928px] px-5 sm:px-6'; -const eyebrow = 'mb-[18px] text-xs font-bold uppercase tracking-[0.16em] text-accent-ink'; +const container = 'mx-auto max-w-[1100px] px-5 sm:px-6'; +const eyebrow = 'mb-8 inline-flex items-center gap-2.5 rounded-full border border-accent-line/40 bg-accent-tint/50 px-3.5 py-1.5 text-[12.5px] font-bold uppercase tracking-[1.5px] text-accent-ink shadow-sm backdrop-blur-sm'; const primaryBtn = - 'inline-flex min-h-[46px] items-center gap-2 bg-accent px-[18px] text-[15px] font-semibold text-white hover:bg-accent-hover disabled:opacity-[.42]'; + 'group inline-flex min-h-[56px] items-center gap-2 rounded-xl btn-gradient px-6 text-[16px] font-bold text-white transition-all duration-300 hover:-translate-y-0.5 hover:shadow-[0_8px_20px_-4px_rgba(23,128,79,0.35)] disabled:opacity-50 disabled:hover:shadow-none disabled:hover:translate-y-0'; const secondaryBtn = - 'inline-flex min-h-[46px] flex-none items-center gap-2.5 whitespace-nowrap border border-line-2 bg-surface px-[18px] text-[15px] font-medium text-ink hover:border-ink-3 hover:bg-tint'; + 'group inline-flex min-h-[56px] flex-none items-center gap-2.5 whitespace-nowrap rounded-xl border border-line-2 bg-surface px-6 text-[16px] font-bold text-ink transition-all duration-200 hover:border-ink-3 hover:bg-tint hover:shadow-sm'; function disabledReason(count, role) { const need = Math.max(0, MIN_SKILLS - count); @@ -35,15 +37,25 @@ function disabledReason(count, role) { function Header() { return ( -
+
-
-
- Built from 12,872 labelled Indian tech job postings + SkillGraph + + + + + + + 12,872 Indian tech jobs analyzed +
); @@ -51,7 +63,7 @@ function Header() { function Footer() { return ( -