Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add files via upload #10

Merged
merged 1 commit into from
Oct 11, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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
16,456 changes: 16,456 additions & 0 deletions travelwebsite/react/package-lock.json

Large diffs are not rendered by default.

38 changes: 38 additions & 0 deletions travelwebsite/react/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
{
"name": "travelwebsite",
"version": "0.1.0",
"private": true,
"dependencies": {
"@testing-library/jest-dom": "^5.14.1",
"@testing-library/react": "^11.2.7",
"@testing-library/user-event": "^12.8.3",
"react": "^17.0.2",
"react-dom": "^17.0.2",
"react-scripts": "4.0.3",
"web-vitals": "^1.1.2"
},
"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"
]
}
}
20 changes: 20 additions & 0 deletions travelwebsite/react/public/index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8" />
<link rel="icon" href="./travellogo.png" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<meta name="theme-color" content="#000000" />
<meta
name="Travel Website"
content="Get your travel destination deatils in one page and travel in a hassel free way."
/>
<link rel="apple-touch-icon" href="./travellogo.png" />
<link rel="manifest" href="%PUBLIC_URL%/manifest.json" />
<title>Travel Website</title>
</head>
<body>
<noscript>You need to enable JavaScript to run this app.</noscript>
<div id="root"></div>
</body>
</html>
15 changes: 15 additions & 0 deletions travelwebsite/react/public/manifest.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
{
"short_name": "React App",
"name": "Create React App Sample",
"icons": [
{
"src": "favicon.ico",
"sizes": "64x64 32x32 24x24 16x16",
"type": "image/x-icon"
}
],
"start_url": ".",
"display": "standalone",
"theme_color": "#000000",
"background_color": "#ffffff"
}
3 changes: 3 additions & 0 deletions travelwebsite/react/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:
Binary file added travelwebsite/react/public/travellogo.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
38 changes: 38 additions & 0 deletions travelwebsite/react/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);
}
}
17 changes: 17 additions & 0 deletions travelwebsite/react/src/App.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
import './App.css';
import Footer from './Components/Footer';
import Navbar from './Components/Navbar'
import Openingpage from './Components/Openingpage';
import Openingpage2 from './Components/Openingpage2';
// import {BrowserRouter as Router,Switch,Route} from "react-router-dom";
function App() {
return (
<div className="app">
<Navbar/>
<Openingpage/>
<Openingpage2/>
<Footer/>
</div>
);
}
export default App;
8 changes: 8 additions & 0 deletions travelwebsite/react/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();
});
44 changes: 44 additions & 0 deletions travelwebsite/react/src/Components/Footer.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
@import url('https://fonts.googleapis.com/css2?family=Ubuntu:wght@300&display=swap');
.foot{
min-height: 50vh;
background-color: #2e2d2d;
color: whitesmoke;
text-align: center;
font-family: 'Ubuntu', sans-serif;
padding: 2vh 0vw;
}
.foot label input{
outline: none;
border: none;
height: 3.5vh;
width: 20vw;
margin: 2vh 0vw;
margin-right: 1vw;
border: 2px solid white;
}
.foot label button{
height: 4vh;
background: transparent;
color: white;
border: 1px solid white;
padding: 0vh 1vw;
font-family: 'Ubuntu', sans-serif;
}
.foot table{
margin-top: 5vh;
margin-left:22vw;
}
.foot table thead{
text-align: left;
padding: 0vh 5vw;
}
.foot table tbody{
text-align: left;
}
.foot table thead th{
padding-right:10vw ;
padding-bottom: 2vh;
}
.foot table tbody td{
padding-bottom: 0.4vh;
}
55 changes: 55 additions & 0 deletions travelwebsite/react/src/Components/Footer.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
import React from 'react'
import './Footer.css'
export default function Footer() {
return (
<div className="foot">
<p>Join the Adventure newsletter to recieve our best vacation deals.</p>
<p>You can unsubscribe any time.</p>
<label htmlFor="mail">
<input type="text" name="mail" id="mail" placeholder=" Your Email"/><button>Subscribe</button>
</label>
<table>
<thead>
<tr>
<th>About Us</th>
<th>Contact Us</th>
<th>Videos</th>
<th>Social Media</th>
</tr>
</thead>
<tbody>
<tr>
<td>How it works</td>
<td>Contact</td>
<td>Submit Videos</td>
<td>Instagram</td>
</tr>
</tbody>
<tbody>
<tr>
<td>Testimonials</td>
<td>Support</td>
<td>Ambassadors</td>
<td>Facebook</td>
</tr>
</tbody>
<tbody>
<tr>
<td>Carrers</td>
<td>Destinations</td>
<td>Agency</td>
<td>Youtube</td>
</tr>
</tbody>
<tbody>
<tr>
<td>Investors</td>
<td>Sponshorships</td>
<td>Influencer</td>
<td>Twitter</td>
</tr>
</tbody>
</table>
</div>
)
}
41 changes: 41 additions & 0 deletions travelwebsite/react/src/Components/Navbar.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
@import url('https://fonts.googleapis.com/css2?family=Roboto+Condensed&display=swap');
*{
margin: 0;
padding: 0;
}
nav{
position: fixed;
width: 100%;
}
.flex{
display: flex;
background-color: #2e2d2d;
}
.menu{
text-decoration: none;
color: white;
margin: 2vh 2vw;
font-family: 'Roboto Condensed', sans-serif;
}
.menu1{
margin-top: 2vh;
margin-left: 40vw;
}
.travel{
text-decoration: none;
color: white;
margin: 2vh 0vw;
margin-left: 1vw;
margin-right:15vw ;
font-family: 'Roboto Condensed', sans-serif;
}
.signup{
text-decoration: none;
background-color: #2e2d2d;
color: white;
margin: 2vh 0vw;
border: 1px solid white;
margin-left: 2vw;
padding: 2px 10px;
font-family: 'Roboto Condensed', sans-serif;
}
19 changes: 19 additions & 0 deletions travelwebsite/react/src/Components/Navbar.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
import React from 'react'
import './Navbar.css'
export default function Navbar() {
return (
<div>
<nav>
<ul className="flex">
<a className="travel" href="/">TRVL</a>
<div className="menu1">
<a href="/" className="menu">HOME</a>
<a href="/" className="menu">SERVICE</a>
<a href="/" className="menu">CONTACT</a>
</div>
<button className="signup">SIGN UP</button>
</ul>
</nav>
</div>
)
}
45 changes: 45 additions & 0 deletions travelwebsite/react/src/Components/Openingpage.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
@import url('https://fonts.googleapis.com/css2?family=Mukta&display=swap');
.bg{
padding-top: 5vh;
min-height: 100vh;
background-image: url("../Images/Adventure.png");
background-repeat: no-repeat;
background-position: center;
background-size: cover;
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
color: rgba(255, 255, 255, 0.87);
font-family: 'Mukta', sans-serif;
}
h1{
font-size: 4rem;
}
h2{
font-size: 2rem;
margin-top: -4vh;
}
.get{
height: 7vh;
width:14vw;
margin: 0vh 1vw;
background: transparent;
color: white;
border: 1px solid white;
font-weight:700;
cursor:pointer;
}
.get:hover{
background-color: white;
color: black;
}
.trailer{
height: 7vh;
width:14vw;
margin: 0vh 1vw;
background-color: white;
border: 1px solid white;
font-weight:700;
cursor:pointer;
}
14 changes: 14 additions & 0 deletions travelwebsite/react/src/Components/Openingpage.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
import React from 'react'
import './Openingpage.css'
export default function Openingpage() {
return (
<div className="bg">
<h1>ADVENTURE AWAITS</h1>
<h2>What are you waiting for?</h2>
<div className="buts">
<button className="get">GET STARTED</button>
<button className="trailer">WATCH TRAILER &#8227;</button>
</div>
</div>
)
}
Loading