From 6086589f8974c897a79c690940a6c144bc524d92 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rados=C5=82aw=20Gierwia=C5=82o?= Date: Sat, 15 Nov 2025 16:36:55 +0100 Subject: [PATCH] feat: add landing homepage with hero section and feature showcase Create new HomePage component with: - Hero section with CTAs for registration and login - Features showcase highlighting WebRTC, matching, chat, security - How it works section with 3-step process - CTA section and footer with links - Responsive design with gradient backgrounds Update routing to show HomePage at / instead of redirecting to /events --- frontend/src/App.jsx | 7 +- frontend/src/pages/HomePage.jsx | 306 ++++++++++++++++++++++++++++++++ 2 files changed, 310 insertions(+), 3 deletions(-) create mode 100644 frontend/src/pages/HomePage.jsx diff --git a/frontend/src/App.jsx b/frontend/src/App.jsx index 00f532e..8d1b1bd 100644 --- a/frontend/src/App.jsx +++ b/frontend/src/App.jsx @@ -1,5 +1,6 @@ import { BrowserRouter, Routes, Route, Navigate } from 'react-router-dom'; import { AuthProvider, useAuth } from './contexts/AuthContext'; +import HomePage from './pages/HomePage'; import LoginPage from './pages/LoginPage'; import RegisterPage from './pages/RegisterPage'; import VerifyEmailPage from './pages/VerifyEmailPage'; @@ -160,7 +161,7 @@ function App() { } /> - {/* Public Profile - must be before default redirect */} + {/* Public Profile - must be before home route */} - {/* Default redirect */} - } /> + {/* Home Page */} + } /> diff --git a/frontend/src/pages/HomePage.jsx b/frontend/src/pages/HomePage.jsx new file mode 100644 index 0000000..4a378fa --- /dev/null +++ b/frontend/src/pages/HomePage.jsx @@ -0,0 +1,306 @@ +import { Link } from 'react-router-dom'; +import { Video, Users, Zap, Shield, Camera, MessageCircle, Star } from 'lucide-react'; + +const HomePage = () => { + return ( +
+ {/* Hero Section */} +
+ + +
+

+ Connect, Collaborate, Create +

+

+ The ultimate platform for dance competition collaborations. Share videos, + find partners, and make magic happen. +

+
+ + Start Collaborating + + + Explore Events + +
+
+
+ + {/* Features Section */} +
+
+
+

+ Everything you need to succeed +

+

+ Built specifically for West Coast Swing dancers and competition enthusiasts +

+
+ +
+
+
+ +
+

+ P2P Video Sharing +

+

+ Share videos directly with your partners using secure peer-to-peer WebRTC + technology. Fast, private, and encrypted. +

+
+ +
+
+ +
+

+ Smart Matching +

+

+ Find the perfect collaboration partner based on division, role, and heat + assignments at your event. +

+
+ +
+
+ +
+

+ Real-time Chat +

+

+ Communicate instantly with event participants and your collaboration + partners through integrated chat. +

+
+ +
+
+ +
+

+ Secure & Private +

+

+ Your videos and conversations are end-to-end encrypted. What you share + stays between you and your partner. +

+
+ +
+
+ +
+

+ Lightning Fast +

+

+ No upload delays or waiting. Direct peer-to-peer connections mean instant + video transfers, even for large files. +

+
+ +
+
+ +
+

+ Competition Ready +

+

+ Integrated with WSDC events. Automatic heat tracking and partner + suggestions based on competition divisions. +

+
+
+
+
+ + {/* How It Works Section */} +
+
+
+

+ How It Works +

+

+ Get started in three simple steps +

+
+ +
+
+
+ 1 +
+

+ Join an Event +

+

+ Check in to your West Coast Swing competition using the event's QR code + or check-in link. +

+
+ +
+
+ 2 +
+

+ Find Partners +

+

+ Browse other dancers in your heats and send collaboration requests to + potential partners. +

+
+ +
+
+ 3 +
+

+ Share & Create +

+

+ Exchange videos securely, chat in real-time, and create amazing + competition content together. +

+
+
+
+
+ + {/* CTA Section */} +
+
+

+ Ready to elevate your competition experience? +

+

+ Join dancers from around the world who are already collaborating on spotlight.cam +

+ + Create Your Free Account + +
+
+ + {/* Footer */} + +
+ ); +}; + +export default HomePage;