Skip to content

Commit

Permalink
Added about page
Browse files Browse the repository at this point in the history
  • Loading branch information
josephlee222 committed Aug 15, 2023
1 parent c29eff3 commit dd5b83b
Show file tree
Hide file tree
Showing 3 changed files with 96 additions and 0 deletions.
Binary file added client/tproject/public/about.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
94 changes: 94 additions & 0 deletions client/tproject/src/pages/About.jsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,94 @@
import React, { useState, useEffect } from 'react'
import { Card, CardContent, CardMedia, Container, Typography, Divider, Stack, Grid, Dialog, DialogContent, DialogActions, DialogTitle, Button } from '@mui/material'
import CardTitle from '../components/CardTitle'
import { Close, Info } from '@mui/icons-material'
import InfoBox from '../components/InfoBox'

function About() {

const [open, setOpen] = useState(false);

const handleOpen = () => {
setOpen(true);
};

const handleClose = (e) => {
setOpen(false);
};

useEffect(() => {
document.title = "About - EnviroGo";
}, []);

return (
<>
<Container maxWidth="md">
<Card sx={{ marginY: "1rem" }}>
<div onClick={handleOpen}>
<CardMedia
component="img"
height="250"
image="/about.jpg"
alt="Material Forest"
/>
</div>
<CardContent>
<CardTitle title="About EnviroGo" back="/" icon={<Info />} />
<Typography variant="body2" color="text.secondary" marginTop={"0.5rem"}>
EnviroGo is a web application that allows users to create and join carpooling sessions to reduce carbon emissions as well as renting bicycles for a more eco-friendly mode of transport.
</Typography>
<Divider sx={{ my: 2 }} />
<Typography variant="h5" fontWeight={700} marginBottom={"1rem"}>Credits</Typography>
<Grid container spacing={2}>
<Grid item xs={12} md={6}>
<InfoBox title="General Design, User Management & Support" value="Joseph Lee" />
</Grid>
<Grid item xs={12} md={6}>
<InfoBox title="Driver Management & Routing System" value="Yuk Ka Chyun" />
</Grid>
<Grid item xs={12} md={6}>
<InfoBox title="Ride Requests & Pick-Up Locations" value="Gregory Chua" />
</Grid>
<Grid item xs={12} md={6}>
<InfoBox title="Bicycle Management" value="Azrel" />
</Grid>
<Grid item xs={12} md={6}>
<InfoBox title="Online Shop Management" value="Samuel Ong" />
</Grid>
</Grid>
<Divider sx={{ my: 2 }} />
<Typography variant="h5" fontWeight={700} marginBottom={"1rem"}>Technologies</Typography>
<Grid container spacing={2}>
<Grid item xs={12} md={6}>
<InfoBox title="Frontend" value="ReactJS, Material UI" />
</Grid>
<Grid item xs={12} md={6}>
<InfoBox title="Backend" value="NodeJS, ExpressJS, Socket.io, MySQL" />
</Grid>
<Grid item xs={12}>
<InfoBox title="APIs" value="Google Maps, Google Geocoding, Google Directions, Stripe, OAuth (Google & Facebook)" />
</Grid>
</Grid>
</CardContent>
</Card>
</Container>
<Dialog
open={open}
onClose={handleClose}
maxWidth="sm"
fullWidth
>
<DialogTitle>Secret Dialog</DialogTitle>
<DialogContent>
<iframe width="100%" height="315" src="https://www.youtube.com/embed/KC5PzT2zDlU" title="YouTube video player" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share" allowfullscreen></iframe>
</DialogContent>
<DialogActions>
<Button startIcon={<Close/>} onClick={handleClose}>Close</Button>
</DialogActions>
</Dialog>
</>

)
}

export default About
2 changes: 2 additions & 0 deletions client/tproject/src/pages/UserRoutes.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ import BicycleHistory from './BicycleHistory'
import ProductRoutes from './products/ProductRoutes'
import CartRoutes from './cart/CartRoutes'
import Wishlist from './wishlist/ViewWishlist'
import About from './About'
import { UserContext } from '..'


Expand Down Expand Up @@ -48,6 +49,7 @@ function UserRoutes() {
<Route path="/cart/*" element={<CartRoutes />} />
<Route path="/riderequests/*" element={<RiderRoutes />} />
<Route path="/wishlist" element={<Wishlist/>} />
<Route path="/about" element={<About />} />
</Routes>
)
}
Expand Down

1 comment on commit dd5b83b

@vercel
Copy link

@vercel vercel bot commented on dd5b83b Aug 15, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.