diff --git a/client/alumni stories.html b/client/alumni stories.html new file mode 100644 index 0000000..4ae9d81 --- /dev/null +++ b/client/alumni stories.html @@ -0,0 +1,74 @@ + + + + + + Alumni Stories - Entrepreneurs + + + + +

Alumni Stories - Entrepreneurs

+ +
+
Keshav Purohit
+
+ Keshav Purohit, a driven entrepreneur, founded a tech startup focused on developing innovative solutions for small businesses. His journey began at MIT WPU Pune, where he honed his skills in technology and business management. Today, his startup is recognized for its impactful contributions to digital transformation. +
+
+ +
+
Swanand Pisu
+
+ After completing his education, Swanand Pisu launched a sustainable fashion brand that emphasizes eco-friendly practices. Drawing inspiration from his time at MIT WPU Pune, Swanand's brand has gained popularity for its commitment to quality and sustainability, making a positive impact on the fashion industry. +
+
+ +
+
Dhananjay Pathak
+
+ Dhananjay Pathak ventured into the food tech industry by creating a unique platform that connects local farmers with consumers. His entrepreneurial spirit and passion for food security were nurtured during his studies at MIT WPU Pune. Dhananjay's initiative not only promotes local produce but also supports sustainable farming practices. +
+
+ + + + + diff --git a/client/contact.html b/client/contact.html new file mode 100644 index 0000000..453c982 --- /dev/null +++ b/client/contact.html @@ -0,0 +1,102 @@ + + + + + + + Contact Us - MCA Alumni Network + + + + + +
+

Contact Us

+ +
+ + + + + + + + + + +
+ +

We will get back to you as soon as possible!

+
+ + + diff --git a/client/event.html b/client/event.html new file mode 100644 index 0000000..70bde69 --- /dev/null +++ b/client/event.html @@ -0,0 +1,104 @@ + + + + + + + MCA Alumni Event + + + + + +
+

Upcoming MCA Alumni Event

+ +
+
+

Networking & Career Development Workshop

+

Join us for an exclusive workshop designed for MCA alumni, where you'll have the opportunity to network with fellow alumni and professionals, gain insights into the latest industry trends, and participate in interactive career development sessions.

+ +

Date: October 28, 2024
Time: 10:00 AM - 4:00 PM

+

Location: MIT WPU Pune, Auditorium Hall

+ + Register Now +
+
+ Event Image +
+
+
+ + + diff --git a/client/event.jpg b/client/event.jpg new file mode 100644 index 0000000..a720956 Binary files /dev/null and b/client/event.jpg differ diff --git a/client/index.html b/client/index.html index 2f252f2..693069a 100644 --- a/client/index.html +++ b/client/index.html @@ -1,14 +1,157 @@ - + - - - - - - MCA Alumni Network - - -
- - + + + + + MCA Alumni Network - MIT WPU Pune + + + + + +
+

MCA Alumni Network

+

MIT WPU Pune

+
+ + + +
+

Welcome to the MCA Alumni Network

+

Connect with your fellow MCA graduates, share stories, and stay updated with the latest events from MIT WPU Pune.

+
+ +
+

Upcoming Events

+ +
+ +
+

Contact Us

+ +
+ + + + + diff --git a/client/register.html b/client/register.html new file mode 100644 index 0000000..55df833 --- /dev/null +++ b/client/register.html @@ -0,0 +1,115 @@ + + + + + + + MCA Alumni Event Registration + + + + + +
+

Event Registration

+ +
+ + + + + + + + + + + + + + + + +
+ +

We will send you a confirmation email with event details after registration.

+
+ + + diff --git a/client/src/App.jsx b/client/src/App.jsx index 75f8aba..49d6f03 100644 --- a/client/src/App.jsx +++ b/client/src/App.jsx @@ -1,23 +1,46 @@ import React from "react"; -import { Route, Routes } from "react-router-dom"; +import { Route, Routes, Navigate } from "react-router-dom"; import "./index.css"; -import Footer from "./components/Footer"; -import Login from "./components/Login"; -import Header from "./components/Header"; -import Register from "./components/Register"; -import About from "./components/About"; -import OurAlumni from "./components/OurAlumni"; -import Contact from "./components/Contact"; -import Home from "./components/Home"; -import AdminDashboard from "./pages/admin/AdminDashboard"; -import DashboardLayout from "./pages/alumini/DashboardLayout"; -import UserProfile from "./pages/alumini/UserProfile"; -import Dashboad from "./pages/alumini/Dashboad"; -import Jobs from "./pages/alumini/Jobs"; -import Events from "./pages/alumini/Events"; -import ProtectedRoute from "./middleware/ProtectedRoute"; // Ensure this is imported -import ScrollToTop from "./components/ScrollToTop"; +// Components +const Header = () =>
Header Component
; +const Footer = () => ; +const ScrollToTop = () =>
ScrollToTop Component
; +const Home = () =>
Home Page
; +const Register = () =>
Register Page
; +const Login = () =>
Login Page
; +const About = () =>
About Us Page
; +const OurAlumni = () =>
Our Alumni Page
; +const Contact = () =>
Contact Us Page
; + +// Pages (User and Admin) +const DashboardLayout = ({ children }) =>
Dashboard Layout {children}
; +const Dashboard = () =>
User Dashboard Page
; +const Jobs = () =>
Jobs Page
; +const Events = () =>
Events Page
; +const UserProfile = () =>
User Profile Page
; +const AdminDashboard = () =>
Admin Dashboard Page
; + +// Authentication Logic (Simulated) +const isAuthenticated = () => !!localStorage.getItem("token"); // Check if a token exists +const isAdminAuthenticated = () => { + const token = localStorage.getItem("token"); + const role = localStorage.getItem("role"); + return token && role === "admin"; // Check if the user is admin +}; + +// ProtectedRoute Component +const ProtectedRoute = ({ children, isAdmin = false }) => { + if (!isAuthenticated()) { + return ; // Redirect to login if not authenticated + } + if (isAdmin && !isAdminAuthenticated()) { + return ; // Redirect to login if not an admin + } + return children; // Render the protected content +}; + +// Main App Component export default function App() { return ( <> @@ -37,7 +60,7 @@ export default function App() { element={ - + } @@ -77,13 +100,13 @@ export default function App() { + } /> - +