diff --git a/client/src/App.js b/client/src/App.js index 5d28be6..1fe259c 100644 --- a/client/src/App.js +++ b/client/src/App.js @@ -7,13 +7,15 @@ import Driver from "./pages/RideShare/driver/Driver"; import PrivateDriverRoute from "./components/PrivateDriverRoute"; import Passenger from "./pages/RideShare/passenger/Passenger"; import PrivateRoute from "./components/PrivateRoute"; -import Header from './components/Header' +import Header from "./components/Header"; +import Dummy from "./components/Dummy"; + // import Map from "./components/Map"; function App() { return ( -
+
@@ -21,6 +23,7 @@ function App() { + ); diff --git a/client/src/components/Budgetplanner.js b/client/src/components/Budgetplanner.js new file mode 100644 index 0000000..4f9cc35 --- /dev/null +++ b/client/src/components/Budgetplanner.js @@ -0,0 +1,7 @@ +import React from "react"; +import "./BudgetPlanner.css"; +const Budgetplanner = () => { + return
Budgetplanner
; +}; + +export default Budgetplanner; diff --git a/client/src/components/Dummy.js b/client/src/components/Dummy.js new file mode 100644 index 0000000..73931fb --- /dev/null +++ b/client/src/components/Dummy.js @@ -0,0 +1,50 @@ +import React, { useState } from "react"; +import Button from "@mui/material/Button"; +import TextField from "@mui/material/TextField"; +import Card from "@mui/material/Card"; +import CardActions from "@mui/material/CardActions"; +import CardContent from "@mui/material/CardContent"; + +import { FromAddressInput, ToAddressInput } from "./AddressInput"; +const Dummy = () => { + const [open, setOpen] = React.useState(false); + const [fromLocation, setFromLocation] = useState(""); + const [toDestination, setToDestination] = useState(""); + // const [totalDistance, setTotalDistance] = useState(0); + // const [mileage, setMileage] = useState(0); + // const [hours, setHours] = useState(0); + const handleClickOpen = () => { + setOpen(true); + }; + + const handleClose = () => { + setOpen(false); + }; + return ( +
+ + +

Budget Planner

+ +
+ Our predictor works 99% of the time. We can 100% guarentee you that + the data which is entered here would never be revealed to any of the + sites. +
+
+ + +
+
+ + + + +
+
+ ); +}; + +export default Dummy; diff --git a/client/src/pages/Home.css b/client/src/pages/Home.css index 6c07ac3..6b39730 100644 --- a/client/src/pages/Home.css +++ b/client/src/pages/Home.css @@ -1,15 +1,62 @@ - +*{ + margin-left:0; +} +.H-button{ + height:50px; + width:150px; +} .container { margin: 0 ; background-color: #1f2937; width: 100%; } - -.header { +.Hm-about{ + margin-top: 80px; + font-size:32px; + display: flex; + flex-direction: row; + width:100%; +} +.Hm-about-content{ + width: 50% !important;; +} +.H-content{ + display: flex; + flex-direction: row; background-color: #1f2937; + width:1500px; + height:60vh; } +.wrapper{ + display: flex; +} +.wrapper div{ + width:25%; + height:400px; + background-color: lightgray; + margin:10px; +} +.Hm-content{ + margin-top: 70px; + margin-left: 30vh; + width:40vh; + color:white; +} +.H-image{ + height:200px; + width: 200px; +} +.Hm-heading{ + font-size: 64px; + } +.Hm-p{ + margin-top: 70px; + font-size: 40px; +} + +/* nav { display: flex; align-items: center; @@ -41,53 +88,8 @@ nav .navbar ul li a { color: #e5e7eb; } -/** End Navbar **/ +* End Navbar * */ -.hero { - height:40vh; - width:100vh; - padding: 100px 0; - display: flex; - align-items: center; - justify-content: space-between; - gap: 30px; -} - -.hero .hero-content { - flex: 1; - display: flex; - flex-direction: column; - align-items: flex-start; -} - -.hero .hero-content .hero-header { - font-size: 48px; - font-weight: bold; - color: #f9faf8; -} - -.hero .hero-content .hero-desc { - font-size: 20px; - color: #f9faf8; - margin: 15px 0; -} - -.hero .hero-img { - flex: 1; -} - -.hero .hero-img img { - width: 100%; +.header { + } - -.hero .hero-content .btn { - display: block; - padding: 10px 30px; - border-radius: 5px; - border: none; - background-color: #3882f6; - color: #f9faf8; - font-size: 18px; - font-weight: 300; - text-transform: uppercase; -} \ No newline at end of file diff --git a/client/src/pages/Home.js b/client/src/pages/Home.js index 1215f2a..9f172c2 100644 --- a/client/src/pages/Home.js +++ b/client/src/pages/Home.js @@ -1,28 +1,75 @@ import React from "react"; import { Link } from "react-router-dom"; +import Variant from "../assets/variant.png"; import "./Home.css"; + const Home = () => { - return( - <> + return ( + <>
-
-
-

Hello

-

Lorem Ipsum

-
- Hero-image +
+
+

Hello

+

Lorem Ipsum

+
+ Hero-image +
+
+
-
+

+ About us +

+
+
+

Lorem

+
+ image +
+
+
+
+

+ Inspiration +

+

+ +
"Even dead I am the hero"
+
+

+
- - - +
+
+
+
+ computer-picture +
+
+

+
Step1
+

+

lorem ipsum

+
+
+

+
Step2
+

+

lorem ipsum

+
+
+

+
Step1
+

+

lorem ipsum

+
+
+
- - +
{/*
@@ -38,8 +85,8 @@ const Home = () => {
*/} -
- + + ); };