From 0090468da11a1621804069432dc161841f92a708 Mon Sep 17 00:00:00 2001 From: AmirAgassi <33383085+AmirAgassi@users.noreply.github.com> Date: Sun, 24 Nov 2024 03:37:02 -0500 Subject: [PATCH] landing page (no figma btw) --- frontend/src/components/Landing.jsx | 328 ++++++++++++++++++++++++---- 1 file changed, 286 insertions(+), 42 deletions(-) diff --git a/frontend/src/components/Landing.jsx b/frontend/src/components/Landing.jsx index c020b72..478b6ba 100644 --- a/frontend/src/components/Landing.jsx +++ b/frontend/src/components/Landing.jsx @@ -1,58 +1,302 @@ import { Link } from '@tanstack/react-router' +import { motion } from 'framer-motion' +import { FiBook, FiTarget, FiAperture, FiArrowRight, FiCheck, FiPlay } from 'react-icons/fi' + +// animation variants for stagger effects +const containerVariants = { + hidden: { opacity: 0 }, + visible: { + opacity: 1, + transition: { + staggerChildren: 0.2 + } + } +} + +const itemVariants = { + hidden: { opacity: 0, y: 20 }, + visible: { opacity: 1, y: 0 } +} export default function Landing() { return ( -
- {/* hero section */} -
+
+ {/* hero section with animated particles */} +
+
+
+ + {/* floating shapes background */} +
+ {[...Array(5)].map((_, i) => ( + + ))} +
+ +
+ + + ✨ New: + AI-Powered Study Plans + + + + Transform Your +
+ + Learning + + +
+ Journey +
+ + + Harness the power of AI to master any subject. Create perfect study notes, + get instant feedback, and learn smarter, not harder. + + + + + Start Learning Free + + + + + Watch Demo + + +
+
+
+ + {/* stats section with floating cards */} +
-
-

- Learn Anything, Anytime, Anywhere -

-

- Join our platform and start your learning journey today + + + + + + +

+
+ + {/* features section with 3D cards */} +
+
+
+ +

+ Why Students Love LearnHub +

+

+ Experience a revolutionary way of learning that adapts to your needs

- - Get Started - +
+ +
+ } + title="AI-Powered Learning" + description="Smart algorithms analyze your learning style and create personalized study plans" + gradient="from-blue-500 to-purple-500" + /> + } + title="Smart Notes" + description="Transform your notes into interactive study materials with our AI assistant" + gradient="from-purple-500 to-pink-500" + /> + } + title="Progress Tracking" + description="Visual analytics and insights to keep you on track towards your goals" + gradient="from-pink-500 to-orange-500" + />
- {/* features section */} -
+ {/* testimonials section with parallax */} +
-

Why Choose LearnHub?

-
-
-
📚
-

Quality Content

-

- Expert-curated courses designed to help you succeed -

-
-
-
-

Learn at Your Pace

-

- Flexible learning schedule that fits your lifestyle -

-
-
-
🎯
-

Track Progress

-

- Monitor your learning journey with detailed analytics -

-
+ + Student Success Stories + +
+ + +
+ + {/* cta section with particles */} +
+
+
+ +
+ +

Ready to Transform Your Learning?

+

+ Join thousands of students who are already learning smarter with LearnHub +

+ + Get Started Free + + +
+
+
) -} \ No newline at end of file +} + +// enhanced helper components +const StatsCard = ({ number, label, gradient }) => ( + +
+
+ {number} +
+
{label}
+ +) + +const FeatureCard = ({ icon, title, description, gradient }) => ( + +
+
+
+
{icon}
+
+

{title}

+

{description}

+
+ +) + +const TestimonialCard = ({ quote, author, role, image, gradient }) => ( + +
+
+
+
+
+ {author} +
+
+
{author}
+
{role}
+
+
+

"{quote}"

+
+ +) \ No newline at end of file