Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
27 commits
Select commit Hold shift + click to select a range
294846a
Added back arrow in car config that returns user to vehicle page
leonardodg01 Jul 31, 2022
5ab2611
adding accesibility labels
dpkeeter Jul 31, 2022
eec992e
Added long description to image
leonardodg01 Jul 31, 2022
029c775
Merge branch 'main' of https://github.com/evanharr/SuperSimple3444
leonardodg01 Jul 31, 2022
8e6e3d7
more aria updates
dpkeeter Jul 31, 2022
8a759aa
Merge branch 'main' of https://github.com/evanharr/SuperSimple3444
dpkeeter Jul 31, 2022
2437e97
Change image color
leonardodg01 Jul 31, 2022
c5b2a37
Merge branch 'main' of https://github.com/evanharr/SuperSimple3444
leonardodg01 Jul 31, 2022
b5aa79b
Changed alt text location
leonardodg01 Jul 31, 2022
3e3f960
added titles to control labels
dpkeeter Jul 31, 2022
a630e40
Merge branch 'main' of https://github.com/evanharr/SuperSimple3444
dpkeeter Jul 31, 2022
eef653c
added titles to control labels
dpkeeter Jul 31, 2022
2cbdf10
added titles to control labels
dpkeeter Jul 31, 2022
4736c4e
added titles to control labels
dpkeeter Jul 31, 2022
65e7ff8
Styling fixes and wheel customization
leonardodg01 Aug 2, 2022
55dc1dd
Added price and car name text at bottom of car config
leonardodg01 Aug 2, 2022
22fb7b5
More styling changes
leonardodg01 Aug 3, 2022
0fbbc3f
Direct link to Car Configuration on Homepage
leonardodg01 Aug 5, 2022
15e3915
Styling changes and Save Configuration buttons replaces Back button
leonardodg01 Aug 5, 2022
b4c1e6c
Merge branch 'accountInfo' into main
leonardodg01 Aug 8, 2022
1aebcee
Added second car model
leonardodg01 Aug 9, 2022
c2c2daa
Changed text color and fixed checkout link
leonardodg01 Aug 9, 2022
7d99746
adding land cruiser file and linking to vehicle search page, adding l…
evanharr Aug 9, 2022
1aa58ab
Put mazda model back in CarConfig.jsx
leonardodg01 Aug 10, 2022
b9f176d
added darkmode and cleaned up account page ui
dpkeeter Aug 10, 2022
1e69919
updated text to white on account page
dpkeeter Aug 10, 2022
429589f
Added website link to readme
leonardodg01 Sep 10, 2022
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
# SuperSimple3444
# SuperSimple3444
https://evanharr.github.io/SuperSimple3444/#/SuperSimple3444
45 changes: 43 additions & 2 deletions public/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,26 @@
Learn how to configure a non-root public URL by running `npm run build`.
-->
<title>Car Website</title>
<style>
body {

background-color: #211D1D;
color: black;
}
.dark-mode {
background-color: #211D1D;
color: white;
}
.light-mode {
background-color: white;
color: black;
}
.center {
display: flex;
justify-content: center;
align-items: center;
}
</style>
<script type="text/javascript">
// Single Page Apps for GitHub Pages
// MIT License
Expand All @@ -49,8 +69,13 @@
</script>
<!-- End Single Page Apps for GitHub Pages -->
</head>
<body style="background-color: #211D1D">

<div class="center">
<button class ='dark-mode' onclick="darkMode()">Darkmode</button>
<button class ='dark-mode' onclick="lightMode()">LightMode</button>
</div>
<body >

<!-- style="background-color: #211D1D" -->
<div id="root"></div>
<div id="portal"></div>
<!--
Expand All @@ -63,5 +88,21 @@
To begin the development, run `npm start` or `yarn start`.
To create a production bundle, use `npm run build` or `yarn build`.
-->

<script>
function darkMode() {
var element = document.body;
var content = document.getElementById("DarkModetext");
element.className = "dark-mode";
content.innerText = "Dark Mode is ON";
}
function lightMode() {
var element = document.body;
var content = document.getElementById("DarkModetext");
element.className = "light-mode";
content.innerText = "Dark Mode is OFF";
}
</script>
</body>

</html>
Binary file added src/3d/LandCruiser.glb
Binary file not shown.
56 changes: 27 additions & 29 deletions src/Account.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ function Account (){
sx={{
flexGrow: '1',
position: 'absolute',
top: '80%',
top: '55%',
left: '50%',
transform: 'translate(-50%, -50%)',
width: 600,
Expand All @@ -124,49 +124,47 @@ function Account (){
alignItems='center'
>

<Grid item paddingTop='20px'>
<Typography variant="h4" color='white'>Account Information</Typography>
<Grid item paddingTop='10px'>
<Typography variant="h3" color='white'>Account Information</Typography>
</Grid>
<Grid item paddingTop='10px'>
<Typography variant="h6" color='white'>Click the Field you wish to edit</Typography>
</Grid>


<Grid paddingTop='10px'>
<StyledPaper sx={{p: '10px'}} variant='outlined'>
<Stack direction="row" spacing={30} alignItems='center' justifyContent='flex-start'>
<p>Name:<br></br>
<StyledPaper sx={{p: '10px'}} variant='outlined'onClick={() => {setEditNameOpen(true)}}>

<p >Name:<br></br>
{firstName} &nbsp;
{lastName}

</p>



<Button variant='contained' size='small' style={{background:"#00853E"}} onClick={() => {setEditNameOpen(true)}}>Edit</Button>

</Stack>

</StyledPaper>
<StyledPaper sx={{p: '10px'}} variant='outlined'>
<Stack direction="row" spacing={30} alignItems='center'justifyContent='flex-start'>
<StyledPaper sx={{p: '10px'}} variant='outlined' onClick={() => {setEditEmailOpen(true)}}>

<p>Email Address:<br></br>{email}</p>
<Button variant='contained' size='small' style={{background:"#00853E"}} onClick={() => {setEditEmailOpen(true)}}>Edit</Button>
</Stack>


</StyledPaper>
<StyledPaper sx={{p: '10px'}} variant='outlined'>
<Stack direction="row" spacing={30} alignItems='center'justifyContent='flex-start'>
<p>Address<br></br>{address}</p>
<Button variant='contained' size='small' style={{background:"#00853E"}} onClick={() => {setEditAddressOpen(true)}}>Edit</Button>
</Stack>
<StyledPaper sx={{p: '10px'}} variant='outlined' onClick={() => {setEditAddressOpen(true)}}>

<p>Address:<br></br>{address}</p>

</StyledPaper>
<StyledPaper sx={{p: '10px'}} variant='outlined'>
<Stack direction="row" spacing={30} alignItems='center'justifyContent='flex-start'>
<p>Date of Birth<br></br>{DOB}</p>
<Button variant='contained' size='small' style={{background:"#00853E"}} onClick={() => {setEditDOBOpen(true)}}>Edit</Button>
</Stack>
<StyledPaper sx={{p: '10px'}} variant='outlined' onClick={() => {setEditDOBOpen(true)}}>

<p>Date of Birth:<br></br>{DOB}</p>

</StyledPaper>
<StyledPaper sx={{p: '10px'}} variant='outlined'>
<StyledPaper sx={{p: '10px'}} variant='outlined'onClick={() => {setEditPasswordOpen(true)}}>
<Stack direction="row" spacing={30} alignItems='center'justifyContent='flex-start'>
<p>Password:<br></br>******</p>
<Button variant='contained' size='small' style={{background:"#00853E"}} onClick={() => {setEditPasswordOpen(true)}}>Edit</Button>
</Stack>
<Button></Button>
</Stack>
</StyledPaper>

</Grid>
Expand Down Expand Up @@ -196,15 +194,15 @@ function Account (){

)}
{!payInfoExists && (
<Button style={{color:'#00853E'}} onClick={() => {setAddPaymentOpen(true)}}>Add Payment Information</Button>
<Button style={{color:'white'}} onClick={() => {setAddPaymentOpen(true)}}>Add Payment Information</Button>
)}



<Grid item paddingTop='20px'>
<Typography variant="h4" color='white'>Vehicle Configuration</Typography>
</Grid>
<Button style={{color:'#00853E'}} onClick={() => {navigateToSavedCarConfig()}}>View Saved Vehicle Configurations</Button>
<Button style={{color:'white'}} onClick={() => {navigateToSavedCarConfig()}}>View Saved Vehicle Configurations</Button>



Expand Down
2 changes: 1 addition & 1 deletion src/AccountEdit.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ import {database} from "./firebase"
display: 'flex',
flexDirection: 'column',
alignItems:"center"}}>
<h1 className='registerInfo'>Register</h1>
<h1 className='boldText'>Register</h1>

<Form onSubmit={handleSubmit}>
<Form.Group id="email">
Expand Down
4 changes: 3 additions & 1 deletion src/App.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,13 @@ import Cart from './Cart'
import Checkout from './Checkout'
import CarConfig from './CarConfig'
import SavedCarConfig from './SavedCarConfig'
import LandCruiserConfig from './LandCruiserConfig'
import { AuthProvider } from "./AuthContext"

import Register from "./register2"
function App() {
return(

<div>
<HashRouter>
<AuthProvider>
Expand All @@ -28,7 +30,7 @@ function App() {
<Route path="/car-configuration" element={<CarConfig />}></Route>
<Route path="/register2" element={<Register />}></Route>
<Route path="/account-info/SavedCarConfig" element={<SavedCarConfig />}></Route>

<Route path="/LandCruiserConfig" element={<LandCruiserConfig />}></Route>

</Routes>

Expand Down
12 changes: 7 additions & 5 deletions src/CarConfig.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -13,28 +13,32 @@ import { ThemeProvider } from '@mui/material/styles';
import { Canvas } from "@react-three/fiber";
import { Suspense } from "react";
import { OrbitControls } from "@react-three/drei";
import Model from './components/Model.jsx'
import Model from './components/Mazda.jsx'
import Toyota from './components/LandCruiser.jsx'

import {getDatabase, set, ref , update, onValue, get,child, push} from "firebase/database";
import {database} from "./firebase"
import { useAuth } from "./AuthContext.js"
import { DstAlphaFactor } from 'three';
import { isValidFormat } from '@firebase/util';


//Change <Model> to <Toyota> to change to other model
function Scene(props) {
return (
<>
<ambientLight intensity={0.1} />
<directionalLight color={"white"}/>
<OrbitControls maxDistance={18} minDistance={13}/>
<Model color={props.color} wheelColor={props.wheelColor}/>

</>
)
}

export default function CarConfig()
{


const {getCurrentUser} = useAuth()
const user = getCurrentUser()

Expand Down Expand Up @@ -91,8 +95,6 @@ export default function CarConfig()


}


return(
<Grid container
direction="row"
Expand Down Expand Up @@ -211,6 +213,7 @@ export default function CarConfig()
</StyledAccordion>

<ThemeProvider theme={defaultButton}>

<Button variant="contained" sx={{width: "100%", marginTop: 1}} onClick= {() =>{handleSubmitConfig()}}>
Save Configuration
</Button>
Expand All @@ -225,4 +228,3 @@ export default function CarConfig()
</Grid>
)
}

5 changes: 3 additions & 2 deletions src/Cart.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,9 @@ import AccordionDetails from '@mui/material/AccordionDetails';
import Typography from '@mui/material/Typography';
import ExpandMoreIcon from '@mui/icons-material/ExpandMore';
import TrimPic from './Images/Trim.png'
import { Button, Link } from "@mui/material";
import { Button } from "@mui/material";
import { StyledTypography } from "./Styles/MUIStyle";
import { Link, useNavigate } from 'react-router-dom'



Expand Down Expand Up @@ -104,7 +105,7 @@ function Cart (){
alignItems:'center',

}} >
<Button variant ='contained' style={{background:'#00853E', color:'white' }} href='/checkout'>Checkout</Button>
<Link style={{color: 'white'}} to="/checkout"><Button variant ='contained' style={{background:'#00853E', color:'white' }}>Checkout</Button></Link>
</Accordion>
</div>
)
Expand Down
2 changes: 1 addition & 1 deletion src/EditAddress.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ import {database} from "./firebase"
display: 'flex',
flexDirection: 'column',
alignItems:"center"}}>
<h1 className='Edit'>Edit Address</h1>
<h1 className='boldText'>Edit Address</h1>

<Form onSubmit={handleSubmit}>
<Form.Group id="newAddress">
Expand Down
2 changes: 1 addition & 1 deletion src/EditDOB.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ import {database} from "./firebase"
display: 'flex',
flexDirection: 'column',
alignItems:"center"}}>
<h1 className='Edit'>Edit Name</h1>
<h1 className='boldText'>Edit Name</h1>

<Form onSubmit={handleSubmit}>
<Form.Group id="newDOB">
Expand Down
2 changes: 1 addition & 1 deletion src/EditEmail.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ import {database} from "./firebase"
display: 'flex',
flexDirection: 'column',
alignItems:"center"}}>
<h1 className='Edit'>Edit Name</h1>
<h1 className='boldText'>Edit Name</h1>

<Form onSubmit={handleSubmit}>
<Form.Group id="newEmail">
Expand Down
2 changes: 1 addition & 1 deletion src/EditName.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ import {database} from "./firebase"
display: 'flex',
flexDirection: 'column',
alignItems:"center"}}>
<h1 className='Edit'>Edit Name</h1>
<h1 className='boldText'>Edit Name</h1>

<Form onSubmit={handleSubmit}>
<Form.Group id="newFirstName">
Expand Down
2 changes: 1 addition & 1 deletion src/EditPassword.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ import {database} from "./firebase"
display: 'flex',
flexDirection: 'column',
alignItems:"center"}}>
<h1 className='Edit'>Edit Name</h1>
<h1 className='boldText'>Edit Name</h1>

<Form onSubmit={handleSubmit}>

Expand Down
2 changes: 1 addition & 1 deletion src/EditPayment.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ import {database} from "./firebase"
display: 'flex',
flexDirection: 'column',
alignItems:"center"}}>
<h1 className='Edit'>Edit Payment</h1>
<h1 className='boldText'>Edit Payment</h1>

<Form onSubmit={handleSubmit}>
<Form.Group id="newCardNumber">
Expand Down
25 changes: 23 additions & 2 deletions src/Home.jsx
Original file line number Diff line number Diff line change
@@ -1,12 +1,33 @@
import {React,} from 'react';
import Background from './Images/Background.png'
import {Box, Button} from '@mui/material';
import { Link } from 'react-router-dom';

import { ThemeProvider } from '@mui/material/styles';
import { defaultButton } from './Styles/MUIStyle';
import './Styles/style.css'

function Home(){

return(

<div style={{background: `url(${Background})`, height: '90vh', backgroundSize:'cover'}}>

<div style={{background: `url(${Background})`, height: '90vh', backgroundSize:'cover'}} alt = 'Blue toyota camry driving on road in desert area'>
<Box
sx={{backgroundColor: '#30303090', position: 'absolute',
width: '20%', height: '20%',
left: '10%', top:'15%'}}
>
<h1 className='boldText' style={{left:'15%', position: 'absolute'}}>
Brand new car
</h1>
<ThemeProvider theme={defaultButton}>
<Link style={{color: 'white', width: "100%", top:'60%', left:'15%', position: 'absolute'}} to="/car-configuration">
<Button variant="contained" sx={{width: "50%", fontSize: 16, fontWeight: '700', textTransform: 'none',}}>
Build Now
</Button>
</Link>
</ThemeProvider>
</Box>
</div>
)
}
Expand Down
Binary file added src/Images/LandCruiserTrim.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified src/Images/Trim.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion src/Images/carIcon.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import carIconLogo from './carIconLogo.svg'

function carIcon(){
return(
<img src={carIconLogo} width='60px' height='47px'/>
<img src={carIconLogo} width='60px' height='47px' alt = "white outline of car and carkey"/>
)
}
export default carIcon
Loading