diff --git a/README.md b/README.md index f6e50555..bc5441ff 100644 --- a/README.md +++ b/README.md @@ -1,17 +1,15 @@ # Boilerplate -This is a simple boilerplate designed to serve as robust template for quickly starting development on a [Typescript](https://www.typescriptlang.org) based [MERN](https://www.mongodb.com/mern-stack) web application. +This is a web app built for Abuse and Sexual Assault Prevention, a student organization at Penn, as a resource tree for all sexual violence resources at Penn. This is a [Typescript](https://www.typescriptlang.org) based [MERN](https://www.mongodb.com/mern-stack) web application. ## Features -- Session based authentication with [Passport](https://www.passportjs.org) -- Emailing for account verification and resetting password with [SendGrid](https://sendgrid.com) -- Admin functionality for viewing/deleting/promoting other users -- Clean authentication pages built with [Material UI](https://mui.com) -- In memory database testing with [Jest](https://jestjs.io) and [Supertest](https://www.npmjs.com/package/supertest) -- [AirBnb Typescript styling](https://github.com/airbnb/javascript) with [Prettier](https://prettier.io) and [ESLint](https://eslint.org) -- [Husky](https://typicode.github.io/husky/#/) and [lint-staged](https://github.com/okonet/lint-staged) for checking linting on commits -- [GitHub Actions](https://docs.github.com/en/actions) for ensuring linting + tests pass on pushes +- Admin portal with ability to change resources, questions, and answers +- Rich text editor for answer and question changes +- Tree-based data structure in backend +- Private and secure user experience that does not track user data +- Back and Next buttons, as well as ability to see other resources if different answers were selected +- Dictionary and side help bar for unkown terms, filtered based on the words in the question/answer/resource ## Required tools diff --git a/client/src/AdminDashboard/AdminDashboardPage.tsx b/client/src/AdminDashboard/AdminDashboardPage.tsx index 5e1b7984..3e93eb53 100644 --- a/client/src/AdminDashboard/AdminDashboardPage.tsx +++ b/client/src/AdminDashboard/AdminDashboardPage.tsx @@ -1,5 +1,5 @@ import React from 'react'; -import { Typography, Grid } from '@mui/material'; +import { Typography, Grid, AppBar } from '@mui/material'; import ScreenGrid from '../components/ScreenGrid'; // import UserTable from './QuestionTable'; import QuestionTable from './QuestionTable'; diff --git a/client/src/AdminDashboard/EditQuestionButton.tsx b/client/src/AdminDashboard/EditQuestionButton.tsx index a0f2beff..910bf3d3 100644 --- a/client/src/AdminDashboard/EditQuestionButton.tsx +++ b/client/src/AdminDashboard/EditQuestionButton.tsx @@ -39,12 +39,14 @@ function EditQuestionButton({ text: '2x edited answer text 1', resultantQuestionId: '63751d7cc26b48cf7f1d9724', resourceContent: '', + resourceLink: '', }; const tempAnswer2: IAnswer = { _id: '6369a04ee0cca0b76f26576b', text: '2x edited answer text 2', resultantQuestionId: '63751d7cc26b48cf7f1d9724', resourceContent: '', + resourceLink: '', }; const tempQuestion: IQuestion = { _id: '63699fdbe0cca0b76f26576a', diff --git a/client/src/App.tsx b/client/src/App.tsx index 01cc4e65..b9ef4009 100644 --- a/client/src/App.tsx +++ b/client/src/App.tsx @@ -48,7 +48,7 @@ function App() { {/* Routes accessed only if user is not authenticated */} }> - } /> + } /> } /> } /> - {/* }> */} - } /> - {/* */} - } /> - } /> + } /> + } /> {/* Routes accessed only if user is authenticated */} - {/* }> */} }> - {/* } /> */} + } + /> + } /> + } /> + } /> - {/* Route which redirects to a different page depending on if the user is an authenticated or not by utilizing the DynamicRedirect component */} - } - /> {/* Route which redirects to a different page depending on if the user is an authenticated or not by utilizing the DynamicRedirect component */} } /> - } /> } /> - } /> {/* Route which is accessed if no other route is matched */} } /> diff --git a/client/src/Authentication/LoginPage.tsx b/client/src/Authentication/LoginPage.tsx index c930499b..9ac7af28 100644 --- a/client/src/Authentication/LoginPage.tsx +++ b/client/src/Authentication/LoginPage.tsx @@ -134,7 +134,7 @@ function LoginPage() { - Log In + Administrator Log In @@ -177,11 +177,11 @@ function LoginPage() { Forgot password? - + {/* Sign up - + */} diff --git a/client/src/Home/AboutThisProjectPage.tsx b/client/src/Home/AboutThisProjectPage.tsx index 5ecca407..7632c7b5 100644 --- a/client/src/Home/AboutThisProjectPage.tsx +++ b/client/src/Home/AboutThisProjectPage.tsx @@ -21,14 +21,14 @@ function AboutThisProjectPage() { direction="row" justifyContent="space-between" alignItems="flex-start" - height="100%" + height="100vh" fit-content="100%" > - + Guide to Interpersonal Resources at Penn @@ -130,7 +130,15 @@ function AboutThisProjectPage() { - +