-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
saimhasan09
committed
Oct 31, 2021
0 parents
commit 6441c80
Showing
57 changed files
with
30,173 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
# See https://help.github.com/articles/ignoring-files/ for more about ignoring files. | ||
|
||
# dependencies | ||
/node_modules | ||
/.pnp | ||
.pnp.js | ||
|
||
# testing | ||
/coverage | ||
|
||
# production | ||
/build | ||
|
||
# misc | ||
.DS_Store | ||
.env.local | ||
.env.development.local | ||
.env.test.local | ||
.env.production.local | ||
|
||
npm-debug.log* | ||
yarn-debug.log* | ||
yarn-error.log* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
# TraverSia | ||
|
||
## live site : https://traversia-5a136.web.app/ | ||
### Technologies: Html,css,React js, React bootstrap, Firebase,mongodb . | ||
|
||
## project details: <p>google authentication , email and password authentication , redirecting if user have not login or signin using google or email</p> | ||
|
||
|
||
|
||
## project Features: | ||
<li> user can book a tour</li> | ||
<li> user can Add a tour </li> | ||
<li> User can learn about the Tour.</li> | ||
<li> User can delete and update the tour</li> | ||
<li> User can contact with us.</li> |
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
{ | ||
"name": "voltenter-app", | ||
"version": "0.1.0", | ||
"private": true, | ||
"dependencies": { | ||
"@react-google-maps/api": "^2.5.0", | ||
"@testing-library/jest-dom": "^5.11.4", | ||
"@testing-library/react": "^11.1.0", | ||
"@testing-library/user-event": "^12.1.10", | ||
"axios": "^0.24.0", | ||
"firebase": "^9.1.3", | ||
"react": "^17.0.2", | ||
"react-bootstrap": "^2.0.1", | ||
"react-dom": "^17.0.2", | ||
"react-hook-form": "^7.18.0", | ||
"react-router-dom": "^5.3.0", | ||
"react-scripts": "4.0.3", | ||
"web-vitals": "^1.0.1" | ||
}, | ||
"scripts": { | ||
"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%", | ||
"not dead", | ||
"not op_mini all" | ||
], | ||
"development": [ | ||
"last 1 chrome version", | ||
"last 1 firefox version", | ||
"last 1 safari version" | ||
] | ||
} | ||
} |
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,50 @@ | ||
<!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" /> | ||
<link rel="stylesheet" href="https://use.fontawesome.com/releases/v5.15.4/css/all.css" | ||
integrity="sha384-DyZ88mC6Up2uqS4h/KRgHuoeGwBcD4Ng9SiP4dIRy0EXTlnuz47vAwmeGwVChigm" crossorigin="anonymous"> | ||
<!-- | ||
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`. | ||
--> | ||
<link href="https://cdn.jsdelivr.net/npm/[email protected]/dist/css/bootstrap.min.css" rel="stylesheet" | ||
integrity="sha384-1BmE4kWBq78iYhFldvKuhfTAU6auU8tT94WrHftjDbrCEXSU1oBoqyl2QvZ6jIW3" crossorigin="anonymous"> | ||
<title>TraverSia || Travel</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 src="https://cdn.jsdelivr.net/npm/[email protected]/dist/js/bootstrap.bundle.min.js" | ||
integrity="sha384-ka7Sk0Gln4gmtz2MlQnikT1wXgYsOg+OMhuP+IlRH9sENBO0LRn5q+8nbTov4+1p" | ||
crossorigin="anonymous"></script> | ||
</body> | ||
|
||
</html> |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
{ | ||
"short_name": "React App", | ||
"name": "Create React App Sample", | ||
"icons": [ | ||
{ | ||
"src": "favicon.ico", | ||
"sizes": "64x64 32x32 24x24 16x16", | ||
"type": "image/x-icon" | ||
}, | ||
{ | ||
"src": "logo192.png", | ||
"type": "image/png", | ||
"sizes": "192x192" | ||
}, | ||
{ | ||
"src": "logo512.png", | ||
"type": "image/png", | ||
"sizes": "512x512" | ||
} | ||
], | ||
"start_url": ".", | ||
"display": "standalone", | ||
"theme_color": "#000000", | ||
"background_color": "#ffffff" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
# https://www.robotstxt.org/robotstxt.html | ||
User-agent: * | ||
Disallow: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
.App { | ||
text-align: center; | ||
} | ||
|
||
.App-logo { | ||
height: 40vmin; | ||
pointer-events: none; | ||
} | ||
|
||
@media (prefers-reduced-motion: no-preference) { | ||
.App-logo { | ||
animation: App-logo-spin infinite 20s linear; | ||
} | ||
} | ||
|
||
.App-header { | ||
background-color: #282c34; | ||
min-height: 100vh; | ||
display: flex; | ||
flex-direction: column; | ||
align-items: center; | ||
justify-content: center; | ||
font-size: calc(10px + 2vmin); | ||
color: white; | ||
} | ||
|
||
.App-link { | ||
color: #61dafb; | ||
} | ||
|
||
@keyframes App-logo-spin { | ||
from { | ||
transform: rotate(0deg); | ||
} | ||
to { | ||
transform: rotate(360deg); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,66 @@ | ||
import './App.css'; | ||
import React from "react"; | ||
import { | ||
BrowserRouter as Router, | ||
Switch, | ||
Route, | ||
Link | ||
} from "react-router-dom"; | ||
import Home from './Components/Home/Home'; | ||
import Login from './Components/Login/Login'; | ||
import Register from './Components/Register/Register'; | ||
import AuthProvider from './Components/Context/AuthProvider'; | ||
import PagenotFound from './Components/PagenotFound/PagenotFound'; | ||
import Header from './Components/Header/Header'; | ||
import AddService from './Components/AddService/AddService'; | ||
import PlaceOrder from './Components/PlaceOrder/PlaceOrder'; | ||
import MyOrder from './Components/MyOrder/MyOrder'; | ||
import ManageAllOrder from './Components/ManageAllOrder/ManageAllOrder'; | ||
import PrivateRoute from './Components/Login/PrivateRoute/PrivateRoute'; | ||
|
||
|
||
|
||
function App() { | ||
return ( | ||
<div className='w-100'> | ||
<AuthProvider> | ||
<Router> | ||
<Header></Header> | ||
<Switch> | ||
<Route exact path="/"> | ||
<Home></Home> | ||
</Route> | ||
<Route path="/home"> | ||
<Home></Home> | ||
</Route> | ||
<Route path="/login"> | ||
<Login></Login> | ||
</Route> | ||
<Route path="/register"> | ||
<Register></Register> | ||
</Route> | ||
<Route path='/addService'> | ||
<AddService></AddService> | ||
</Route> | ||
<PrivateRoute path='/placeOrder/:serviceId'> | ||
<PlaceOrder></PlaceOrder> | ||
</PrivateRoute> | ||
<Route path='/myOrder'> | ||
<MyOrder></MyOrder> | ||
</Route> | ||
<Route path='/manageOrder'> | ||
<ManageAllOrder></ManageAllOrder> | ||
</Route> | ||
<Route path="*"> | ||
<PagenotFound></PagenotFound> | ||
</Route> | ||
</Switch> | ||
|
||
</Router> | ||
</AuthProvider> | ||
|
||
</div> | ||
); | ||
} | ||
|
||
export default App; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
import { render, screen } from '@testing-library/react'; | ||
import App from './App'; | ||
|
||
test('renders learn react link', () => { | ||
render(<App />); | ||
const linkElement = screen.getByText(/learn react/i); | ||
expect(linkElement).toBeInTheDocument(); | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
.add-service form{ | ||
display:flex; | ||
flex-direction:column; | ||
justify-content:center; | ||
align-items:center; | ||
} | ||
.add-service input,textarea{ | ||
width:50%; | ||
margin:10px; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
import axios from 'axios'; | ||
import React from 'react'; | ||
import { useForm } from "react-hook-form"; | ||
import './AddService.css' | ||
const AddService = () => { | ||
const { register, handleSubmit, reset } = useForm(); | ||
const onSubmit = data => { | ||
console.log(data); | ||
axios.post('https://floating-lowlands-24787.herokuapp.com/services', data) | ||
.then(res => { | ||
if (res.data.insertedId) { | ||
alert('Insert successfully'); | ||
reset(); | ||
} | ||
}) | ||
}; | ||
return ( | ||
<div className='add-service'> | ||
<h1>Please add a service</h1> | ||
<form onSubmit={handleSubmit(onSubmit)}> | ||
<input {...register("Name", { required: true, maxLength: 20 })} placeholder='Enter name' /> | ||
<textarea {...register("description")} placeholder='Enter description' /> | ||
<input {...register("img")} placeholder='Enter img ' /> | ||
<input type="submit" /> | ||
</form> | ||
</div> | ||
); | ||
}; | ||
|
||
export default AddService; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
.blogs-container{ | ||
display: flex; | ||
justify-content: center; | ||
align-items: center; | ||
margin: 10px; | ||
} | ||
.blogs-container img{ | ||
width: 75%; | ||
border-radius:10px; | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
import React from 'react'; | ||
import img from '../Images/tour-4.jpg' | ||
import './Blogs.css' | ||
const Blogs = () => { | ||
return ( | ||
<div className='w-100'> | ||
<h1 className='text-center my-5'>Learn More</h1> | ||
<div className='blogs-container'> | ||
<div className='col-md-6'> | ||
<h1>Weekend in Europe, London</h1> | ||
<p>For a long time, London was a small city. All its people lived inside the walls that were built by the Romans. This area is still called the City of London. There were many villages around it and gradually they joined.</p> | ||
<button className='btn btn-outline-success'>View Details</button> | ||
</div> | ||
<div > | ||
<img src={img } className='img-fluid' /> | ||
</div> | ||
</div> | ||
</div> | ||
); | ||
}; | ||
|
||
export default Blogs; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
.slide-bg1{ | ||
background-image: url('../Images/tour-2.jpg'); | ||
background-repeat: no-repeat; | ||
background-size: cover; | ||
} | ||
.slide-bg2{ | ||
background-image: url('../Images//tour-4.jpg'); | ||
background-repeat: no-repeat; | ||
background-size: cover; | ||
} | ||
.slide-bg3{ | ||
background-image: url('../Images/tour-3.jpg'); | ||
background-repeat: no-repeat; | ||
background-size: cover; | ||
} | ||
.slide-text{ | ||
padding-left: 5rem; | ||
padding-top: 5rem; | ||
padding-bottom: 5rem; | ||
} | ||
.slide-text h1{ | ||
font-family: 'sans-serif'; | ||
font-size: 3rem; | ||
color: rgb(28, 22, 87); | ||
} |
Oops, something went wrong.