diff --git a/client/src/App.css b/client/src/App.css index 74b5e05..1e211ee 100644 --- a/client/src/App.css +++ b/client/src/App.css @@ -28,6 +28,33 @@ color: #61dafb; } +/* ===== Custom Scrollbar ===== */ +html { + scrollbar-width: thin; + scrollbar-color: var(--scrollbar-thumb) var(--scrollbar-track); +} + +body::-webkit-scrollbar { + width: 12px; +} +body::-webkit-scrollbar-thumb { + background: var(--scrollbar-thumb, #b4b4b4); + border-radius: 8px; + border: 3px solid var(--scrollbar-track, #f4f4f4); +} +body::-webkit-scrollbar-track { + background: var(--scrollbar-track, #f4f4f4); +} + +html[data-theme="dark"] { + --scrollbar-thumb: #6366f1; + --scrollbar-track: #18181b; +} +html[data-theme="light"] { + --scrollbar-thumb: #a855f7; + --scrollbar-track: #f4f4f4; +} + @keyframes App-logo-spin { from { transform: rotate(0deg); diff --git a/client/src/pages/Home.css b/client/src/pages/Home.css index cbdeb36..0632f76 100644 --- a/client/src/pages/Home.css +++ b/client/src/pages/Home.css @@ -4,6 +4,15 @@ @import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&display=swap'); +html[data-theme="dark"] { + --scrollbar-thumb: #6366f1; + --scrollbar-track: #18181b; +} +html[data-theme="light"] { + --scrollbar-thumb: #a855f7; + --scrollbar-track: #f4f4f4; +} + *, *::before, *::after { margin: 0; padding: 0; diff --git a/client/src/pages/Home.js b/client/src/pages/Home.js index fa8c09f..aaa4b37 100644 --- a/client/src/pages/Home.js +++ b/client/src/pages/Home.js @@ -162,6 +162,7 @@ const Home = () => { return (
+ {/* Hero Section */} { + {/* Aesthetic animated shapes */} + + + + + - {/* RIGHT — 2×2 card grid */} - + {/* RIGHT — 2×2 card grid with floating effect */} + {[ { icon: "📚", title: "Study Materials", desc: "Curated notes & resources", delay: 0 }, { icon: "📝", title: "Previous Papers", desc: "Year-wise PYQs by dept", delay: 0.1 }, @@ -210,7 +235,8 @@ const Home = () => { initial={{ opacity: 0, y: 24 }} animate={{ opacity: 1, y: 0 }} transition={{ delay: card.delay + 0.5, duration: 0.5, ease: "easeOut" }} - whileHover={{ y: -6, scale: 1.04 }} + whileHover={{ y: -6, scale: 1.08, boxShadow: "0 8px 32px rgba(99,102,241,0.18)" }} + style={{ position: "relative", zIndex: 2 }} > {card.icon}
@@ -219,6 +245,22 @@ const Home = () => {
))} + {/* Floating gradient orb */} +