From 7a1fa8a8c4e348aae430cab1a5a56ae2dcc8e486 Mon Sep 17 00:00:00 2001 From: nl545 Date: Wed, 21 May 2025 10:23:29 -0400 Subject: [PATCH] added resume book authentication --- client/src/App.js | 26 ++++++------ client/src/components/PrivateRoute.jsx | 17 ++++++++ client/src/pages/Login/Login.css | 52 +++++++++++++++++++++++ client/src/pages/Login/Login.jsx | 58 ++++++++++++++++++++++++++ 4 files changed, 139 insertions(+), 14 deletions(-) create mode 100644 client/src/components/PrivateRoute.jsx create mode 100644 client/src/pages/Login/Login.css create mode 100644 client/src/pages/Login/Login.jsx diff --git a/client/src/App.js b/client/src/App.js index 3fc90d5..14b168d 100644 --- a/client/src/App.js +++ b/client/src/App.js @@ -1,25 +1,23 @@ import React from "react"; -import { BrowserRouter as Router, Route, Switch } from "react-router-dom"; -import { Home, Board, Sponsors, Resources, Test, ResumeBook } from "./pages"; +import { BrowserRouter as Router, Route, Switch, Redirect } from "react-router-dom"; +import { Home, Board, Sponsors, Resources, ResumeBook } from "./pages"; import { Footer, Navigation } from "./molecules"; -import ProgressBar from "react-scroll-progress-bar"; -import Calendar from "./atoms/CalendarSlots/Calendar"; -import CalendarEmbed from "./atoms/CalendarSlots/CalendarEmbed"; +import Login from "./pages/Login/Login"; +import PrivateRoute from "./components/PrivateRoute"; function App() { return (
- - } /> - } /> - } /> - } /> - {/* } /> */} - } /> - } /> + + + + + + +