Skip to content

Commit

Permalink
first commit
Browse files Browse the repository at this point in the history
  • Loading branch information
saimhasan09 committed Oct 31, 2021
0 parents commit 6441c80
Show file tree
Hide file tree
Showing 57 changed files with 30,173 additions and 0 deletions.
23 changes: 23 additions & 0 deletions .gitignore
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*
15 changes: 15 additions & 0 deletions README.md
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>
16,260 changes: 16,260 additions & 0 deletions package-lock.json

Large diffs are not rendered by default.

44 changes: 44 additions & 0 deletions package.json
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 added public/favicon.ico
Binary file not shown.
50 changes: 50 additions & 0 deletions public/index.html
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>
Binary file added public/logo192.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 added public/logo512.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
25 changes: 25 additions & 0 deletions public/manifest.json
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"
}
3 changes: 3 additions & 0 deletions public/robots.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# https://www.robotstxt.org/robotstxt.html
User-agent: *
Disallow:
38 changes: 38 additions & 0 deletions src/App.css
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);
}
}
66 changes: 66 additions & 0 deletions src/App.js
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;
8 changes: 8 additions & 0 deletions src/App.test.js
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();
});
10 changes: 10 additions & 0 deletions src/Components/AddService/AddService.css
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;
}
30 changes: 30 additions & 0 deletions src/Components/AddService/AddService.js
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;
11 changes: 11 additions & 0 deletions src/Components/Blogs/Blogs.css
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;

}
22 changes: 22 additions & 0 deletions src/Components/Blogs/Blogs.js
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;
25 changes: 25 additions & 0 deletions src/Components/Carousel/Carousel.css
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);
}
Loading

0 comments on commit 6441c80

Please sign in to comment.