Skip to content

Commit

Permalink
Initial Commit
Browse files Browse the repository at this point in the history
  • Loading branch information
anushkar committed Sep 26, 2023
1 parent ca638b1 commit 72fcd5a
Show file tree
Hide file tree
Showing 20 changed files with 21,662 additions and 5,823 deletions.
1 change: 1 addition & 0 deletions .env
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
REACT_APP_GOOGLE:"AIzaSyCXbMf-XXrTqEmR_vawob7x1kfC7HB6FX0"
26,122 changes: 20,378 additions & 5,744 deletions package-lock.json

Large diffs are not rendered by default.

29 changes: 23 additions & 6 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,26 +3,39 @@
"version": "0.1.0",
"private": true,
"dependencies": {
"@nomiclabs/hardhat-ethers": "^2.0.3",
"@nomiclabs/hardhat-waffle": "^2.0.1",
"@react-google-maps/api": "^2.19.2",
"@tailwindcss/forms": "^0.3.4",
"@testing-library/jest-dom": "^5.17.0",
"@testing-library/react": "^13.4.0",
"@testing-library/user-event": "^13.5.0",
"alchemy-sdk": "^2.10.1",
"autoprefixer": "^10.4.0",
"chai": "^4.3.4",
"classnames": "^2.3.2",
"ethereum-waffle": "^3.4.0",
"ethers": "^5.7.2",
"postcss": "^8.3.11",
"react": "^18.2.0",
"react-dom": "^18.2.0",
"react-google-autocomplete": "^2.7.3",
"react-google-places-autocomplete": "^4.0.1",
"react-helmet": "^6.1.0",
"react-hook-form": "^7.46.1",
"react-icons": "^4.3.1",
"react-router-dom": "^6.15.0",
"react-scripts": "5.0.1",
"tw-elements": "^1.0.0",
"web-vitals": "^2.1.4"
},
"scripts": {
"dev": "react-scripts start",
"start": "react-scripts start",
"build": "react-scripts build",
"test": "react-scripts test",
"eject": "react-scripts eject"
},
"eslintConfig": {
"extends": [
"react-app",
"react-app/jest"
]
},
"browserslist": {
"production": [
">0.2%",
Expand All @@ -34,5 +47,9 @@
"last 1 firefox version",
"last 1 safari version"
]
},
"devDependencies": {
"dotenv": "^16.3.1",
"tailwindcss": "^2.2.19"
}
}
44 changes: 9 additions & 35 deletions public/index.html
Original file line number Diff line number Diff line change
@@ -1,43 +1,17 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8" />
<link rel="icon" href="%PUBLIC_URL%/favicon.ico" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<meta name="theme-color" content="#000000" />
<meta
name="description"
content="Web site created using create-react-app"
/>
<link rel="apple-touch-icon" href="%PUBLIC_URL%/logo192.png" />
<!--
manifest.json provides metadata used when your web app is installed on a
user's mobile device or desktop. See https://developers.google.com/web/fundamentals/web-app-manifest/
-->
<link rel="manifest" href="%PUBLIC_URL%/manifest.json" />
<!--
Notice the use of %PUBLIC_URL% in the tags above.
It will be replaced with the URL of the `public` folder during the build.
Only files inside the `public` folder can be referenced from the HTML.
Unlike "/favicon.ico" or "favicon.ico", "%PUBLIC_URL%/favicon.ico" will
work correctly both with client-side routing and a non-root public URL.
Learn how to configure a non-root public URL by running `npm run build`.
-->
<title>React App</title>
<meta charset="UTF-8" />
<link rel="icon" type="image/svg+xml" href="/src/favicon.svg" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<script
type="text/javascript"
src="https://maps.googleapis.com/maps/api/js?key=AIzaSyCXbMf-XXrTqEmR_vawob7x1kfC7HB6FX0&libraries=places"
></script>
<title>CRYPTO RIDE</title>
</head>
<body>
<noscript>You need to enable JavaScript to run this app.</noscript>
<div id="root"></div>
<!--
This HTML file is a template.
If you open it directly in the browser, you will see an empty page.
You can add webfonts, meta tags, or analytics to this file.
The build step will place the bundled scripts into the <body> tag.
To begin the development, run `npm start` or `yarn start`.
To create a production bundle, use `npm run build` or `yarn build`.
-->
<script type="module" src="/src/index.js"></script>
</body>
</html>
43 changes: 24 additions & 19 deletions src/App.js
Original file line number Diff line number Diff line change
@@ -1,25 +1,30 @@
import logo from './logo.svg';
import './App.css';
import React from "react";
import { BrowserRouter, Routes, Route } from "react-router-dom";

function App() {
import Home from "./components/Home";
import Driver from "./components/Driver";
import BookRide from "./components/BookRide";
import Error from "./components/Error";
/**
* Render the main application component.
*
* @return {JSX.Element} The rendered application component.
*/
const App = () => {
return (
<div className="App">
<header className="App-header">
<img src={logo} className="App-logo" alt="logo" />
<p>
Edit <code>src/App.js</code> and save to reload.
</p>
<a
className="App-link"
href="https://reactjs.org"
target="_blank"
rel="noopener noreferrer"
>
Learn React
</a>
</header>
<div className="min-h-screen">
<div className="gradient-bg-welcome">
<BrowserRouter>
<Routes>
<Route path="/" element={<Home />} />
<Route path="/bookride" element={<BookRide />} />
<Route path="/drive" element={<Driver />} />
<Route element={<Error />} />
</Routes>
</BrowserRouter>
</div>
</div>
);
}
};

export default App;
10 changes: 10 additions & 0 deletions src/components/BookRide.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
import React from "react";
function BookRide() {
return (
<div>
<h1>BookRide</h1>
<p>BookRide page body content</p>
</div>
);
}
export default BookRide;
10 changes: 10 additions & 0 deletions src/components/Driver.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
import React from "react";
function Driver() {
return (
<div>
<h1>Driver</h1>
<p>Driver page body content</p>
</div>
);
}
export default Driver;
11 changes: 11 additions & 0 deletions src/components/Error.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
import React from "react";

const Error = () => {
return (
<div>
<p>Error: Page does not exist!</p>
</div>
);
};

export default Error;
3 changes: 3 additions & 0 deletions src/components/Footer/Footer.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
export default function Footer() {
return <div></div>;
}
Loading

0 comments on commit 72fcd5a

Please sign in to comment.