diff --git a/src/App.tsx b/src/App.tsx index 895bff4..c6f738d 100644 --- a/src/App.tsx +++ b/src/App.tsx @@ -1,9 +1,7 @@ import { useState, type JSX, useEffect } from "react"; -import { - Star, - X, -} from "lucide-react"; +import { Star, X, Sun, Moon } from "lucide-react"; import { addReview, fetchReviews, type Review } from "./reviewsApi"; +import { useTheme } from "./contexts/ThemeContext"; import HeroSection from "./components/HeroSection"; import UniqueSection from "./components/UniqueSection"; import AcademicSTEMHighlights from "./components/AcademicStemHighlights"; @@ -15,6 +13,7 @@ import ReviewSection from "./components/ReviewSection"; import Footer from "./components/Footer"; const App = () => { + const { theme, toggleTheme } = useTheme(); const [showModal, setShowModal] = useState(false); const [reviews, setReviews] = useState([]); const [newReview, setNewReview] = useState({ @@ -69,11 +68,34 @@ const App = () => { }; return ( -
+
+ {/* Theme Toggle Button */} + + {/* Hero Section */} -
+
{/* Academic & STEM Highlights */} @@ -85,7 +107,6 @@ const App = () => { {/* Leadership, Service, & School */} - {/* Athletics & Competitions */} @@ -93,7 +114,11 @@ const App = () => { {/* Reviews Section */} - + {/* Footer */}