diff --git a/Technodes/src/App.css b/Technodes/src/App.css deleted file mode 100644 index e69de29..0000000 diff --git a/Technodes/src/App.jsx b/Technodes/src/App.jsx index 89dd2b2..96ad145 100644 --- a/Technodes/src/App.jsx +++ b/Technodes/src/App.jsx @@ -7,7 +7,7 @@ import Error from "./Pages/Error"; import Navbar from "./components/Navbar"; import Event from "./Pages/EventPage/Event" import Contact from "./Pages/Contact"; - +import ProjectPage from "./Pages/ProjectPage/ProjectPage"; export default function App() { return (
@@ -16,7 +16,7 @@ export default function App() {
}> - }> + }> }> }> }> diff --git a/Technodes/src/Pages/EventPage/Event.jsx b/Technodes/src/Pages/EventPage/Event.jsx index eeb41ec..71b96d3 100644 --- a/Technodes/src/Pages/EventPage/Event.jsx +++ b/Technodes/src/Pages/EventPage/Event.jsx @@ -1,5 +1,5 @@ import React from 'react' -import HeroSection from '../../components/core/Eventpage/Herosection' +import HeroSection from '../../components/core/Eventpage/HeroSection' import EventCards from '../../components/core/Eventpage/EventCards' import NewsLetter from "../../components/NewsLetter" import Footer from "../../components/Footer" diff --git a/Technodes/src/Pages/ProjectPage/ProjectPage.jsx b/Technodes/src/Pages/ProjectPage/ProjectPage.jsx new file mode 100644 index 0000000..3f56f63 --- /dev/null +++ b/Technodes/src/Pages/ProjectPage/ProjectPage.jsx @@ -0,0 +1,13 @@ +import React from 'react' +import HeroSection from '../../components/core/ProjectSection/HeroSection' +import EventSection from '../../components/core/ProjectSection/ProjectCards' + + +export default function ProjectPage() { + return ( +
+ + +
+ ) +} diff --git a/Technodes/src/components/core/ProjectSection/HeroSection.jsx b/Technodes/src/components/core/ProjectSection/HeroSection.jsx new file mode 100644 index 0000000..2cc1a46 --- /dev/null +++ b/Technodes/src/components/core/ProjectSection/HeroSection.jsx @@ -0,0 +1,41 @@ +import React from "react"; + +export default function HeroSection() { + return ( +
+
+
+

Projects

+

+ Looking for an open-source Projects and Want to Contribute in Open source ? You're just a click away. Find all the Projects right here! +

+ +
+
+
+ ); +} diff --git a/Technodes/src/components/core/ProjectSection/ProjectCard.jsx b/Technodes/src/components/core/ProjectSection/ProjectCard.jsx new file mode 100644 index 0000000..0d4a31a --- /dev/null +++ b/Technodes/src/components/core/ProjectSection/ProjectCard.jsx @@ -0,0 +1,45 @@ +import { FaGithub } from "react-icons/fa"; +import ProjectCards from "./ProjectCards"; + +const ProjectCard = ({ image, title, description, url, btnText, git , deploylink}) => { + return ( + <> +
+ {title +
+

{title}

+

{description}

+ +
+
+ + ); +}; + +export default ProjectCard; diff --git a/Technodes/src/components/core/ProjectSection/ProjectCards.jsx b/Technodes/src/components/core/ProjectSection/ProjectCards.jsx new file mode 100644 index 0000000..5c88d3b --- /dev/null +++ b/Technodes/src/components/core/ProjectSection/ProjectCards.jsx @@ -0,0 +1,80 @@ +import React, { useState } from "react"; +import ProjectCard from "./ProjectCard"; + +const eventsData2 = [ + { + title: "ElectiveHub", + description: + "ElectiveHub is an Education Management System designed to simplify and enhance the management of student information and elective subject selection in educational institutions. It offers a suite of applications for students, teachers, and administrators, providing a user-friendly platform.", + image: + "https://images.unsplash.com/photo-1524578271613-d550eacf6090?auto=format&fit=crop&q=60&w=500&ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxzZWFyY2h8MTZ8fEJvb2tzfGVufDB8fDB8fHww", + url: "https://github.com/TechNodes2-0/ElectiveHub", + btnText: "Know more", + }, + { + title: "BioDrop", + description: + "Connect to your audience with a single link. Showcase the content you create and your projects in one place. Make it easier for people to find, follow and subscribe.", + image: + "https://user-images.githubusercontent.com/624760/230707268-1f8f1487-6524-4c89-aae2-ab45f0e17f39.png", + url: "https://github.com/EddieHubCommunity/BioDrop", + btnText: "Know more", + }, + // Add more project data here if needed +]; + +export default function ProjectCards() { + const [searchTerm, setSearchTerm] = useState(""); + const [sortOrder, setSortOrder] = useState("asc"); // You can use 'asc' or 'desc' + + const filteredProjects = eventsData2.filter((project) => + project.title.toLowerCase().includes(searchTerm.toLowerCase()) + ); + + const sortedProjects = filteredProjects.sort((a, b) => { + if (sortOrder === "asc") { + return a.title.localeCompare(b.title); + } else { + return b.title.localeCompare(a.title); + } + }); + + return ( +
+
+

Projects

+
+
+
+ setSearchTerm(e.target.value)} + /> + +
+
+
+
+ {sortedProjects.map((project) => ( + + ))} +
+
+
+
+ ); +} + + +