diff --git a/src/AppContent.jsx b/src/AppContent.jsx index 086765ef..0378280a 100644 --- a/src/AppContent.jsx +++ b/src/AppContent.jsx @@ -25,6 +25,7 @@ import ContributorProfile from "./pages/ContributorProfile.jsx"; import Contributors from "./pages/Contributors.jsx"; import DocsHub from "./pages/DocsHub.jsx"; import SettingsMenu from "./components/SettingsMenu.jsx"; +import Discover from "./pages/Discover.jsx"; import ChatBot from "./components/ChatBot.jsx"; import NotFound from "./pages/NotFound.jsx"; import { Ion } from "cesium"; @@ -47,7 +48,7 @@ const AppContent = () => { {settings[0].enabled && } {isPointerEnabled && } - + @@ -58,6 +59,7 @@ const AppContent = () => { } /> } /> } /> + } /> } /> } /> } /> diff --git a/src/components/Events.jsx b/src/components/Events.jsx index ed5a7c08..bff85091 100644 --- a/src/components/Events.jsx +++ b/src/components/Events.jsx @@ -21,7 +21,7 @@ import Footer from "./footer"; const Events = () => { const [filterType, setFilterType] = useState("all"); const timelineRef = useRef(null); - + // Use framer-motion's useScroll for smooth timeline animation const { scrollYProgress } = useScroll({ target: timelineRef, @@ -30,7 +30,7 @@ const Events = () => { // Transform scroll progress to height percentage const heightProgress = useTransform(scrollYProgress, [0, 1], ["0%", "100%"]); - + useLenis(); useLenis(); @@ -117,7 +117,7 @@ const Events = () => { }, ]; - const calendarEventsData = + const calendarEventsData = { "events": [ { @@ -349,11 +349,10 @@ const Events = () => { + ))} + + + {/* Content Grid */} +
+ {filteredContent.map((item) => ( + + {/* Images */} + {item.category === "images" && ( +
+ {item.title} +
+

{item.title}

+
+
+ )} + + {/* Videos */} + {item.category === "videos" && ( +
+ +
+

{item.title}

+
+
+ )} + + {/* Events */} + {item.category === "events" && ( +
+
+
{item.date}
+

{item.title}

+

{item.description}

+
+ +
+ )} + + {/* Recordings */} + {item.category === "recordings" && ( +
+
+ + + +
+
+

{item.title}

+

{item.duration}

+
+
+ )} +
+ ))} +
+ + ); +}; + +export default Discover; diff --git a/src/pages/MemberProfile.jsx b/src/pages/MemberProfile.jsx index 8a7a96ac..7774f59b 100644 --- a/src/pages/MemberProfile.jsx +++ b/src/pages/MemberProfile.jsx @@ -1,5 +1,4 @@ /* eslint-disable react/prop-types */ -import React from "react"; import { Link, useParams } from "react-router-dom"; import { getMemberBySlug } from "../lib/members/data"; import { Github, Linkedin, Globe, Twitter } from "lucide-react"; @@ -68,7 +67,7 @@ export default function MemberProfile() { paddingLeft: "1.5rem", paddingRight: "1.5rem", paddingBottom: "6rem", - + }} >
SAST Community Member
diff --git a/src/pages/NotFound.jsx b/src/pages/NotFound.jsx index 9bd89678..4e61c0f6 100644 --- a/src/pages/NotFound.jsx +++ b/src/pages/NotFound.jsx @@ -1,4 +1,4 @@ -import React, {useState,useEffect} from 'react'; +import { useState, useEffect } from 'react'; import { ArrowLeft } from 'lucide-react'; import { useNavigate } from 'react-router-dom'; @@ -43,7 +43,7 @@ export default function NotFound() { /> ))} - + {/* Main Content */}
{/* 404 with Globe */} @@ -51,10 +51,10 @@ export default function NotFound() {
4
- + {/* Globe Image */}
- Earth from space
- +
4
@@ -73,7 +73,7 @@ export default function NotFound() { Oops! Lost in Space

- We couldn't find the page you're looking for. It might have been moved or deleted. + The page you're looking for doesn't exist or has been moved.

{/* Go Back Button */} diff --git a/src/pages/login.jsx b/src/pages/login.jsx index d772b770..f22b7c9a 100644 --- a/src/pages/login.jsx +++ b/src/pages/login.jsx @@ -343,7 +343,7 @@ export default function Login() { Email