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

Redirected to different sections using navbar buttons and travelgo icon #28

Closed
wants to merge 1 commit into from
Closed
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
6 changes: 5 additions & 1 deletion src/App.css
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,12 @@ ul{
list-style: none;
}

a {
a{
text-decoration: none;
color: white;
}

a:hover{
cursor: pointer;

}
2 changes: 1 addition & 1 deletion src/components/Cover.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import styled from 'styled-components'

function Cover() {
return (
<Container>
<Container id="home">
<CoverImg src={require('../assets/cover.png')} alt="cover" />
<CoverBody>
<CoverTitle>Your Imagination Is</CoverTitle>
Expand Down
4 changes: 3 additions & 1 deletion src/components/Footer.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,15 @@ import styled from 'styled-components'
import footerLogo from '../assets/footer-logo.svg'
import appStore from '../assets/appstore.svg'
import playStore from '../assets/playstore.svg'
import {Link} from "react-scroll"

function Footer() {
return (
<Container>

<Left>
<Logo src={footerLogo} alt='' />
<Link to="home" smooth={true} duration={500} spy={true} exact="true">
<Logo src={footerLogo} alt='' /></Link>
<LeftText>Book your trip in minute, get full Control for much longer</LeftText>
</Left>

Expand Down
63 changes: 63 additions & 0 deletions src/components/Navbar.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,63 @@
.navbar {
position: absolute;
display: flex;
justify-content: space-around;
align-items: center;
height: 10vh;
background-color: rgba(9, 9, 9, 0.491);
backdrop-filter: blur(5px);

/* border-bottom-left-radius: 1.5rem;
border-bottom-right-radius: 1.5rem; */
/* z-index: 100; */
/* border: 2px solid white; */
}

.nav-link {
display: flex;
align-items: center;
list-style: none;
}

.nav-item {
margin-left: 3rem;
}

.nav-linkers {
/* background-color: #444; */
color: rgb(245, 237, 237);
text-decoration: none;
/* font-family: "Oswald", sans-serif; */
/* font-family: "Dancing Script", cursive; */
font-size: 1.2rem;
opacity: 1;
transition-duration: 300ms;
}
.nav-linkers:hover {
color: #f40303ab;
/* backdrop-filter: blur(10px); */
opacity: 1;
font-size: 1.6rem;
}

.link--btns {
background: none;
border: none;
}

.home-linker {
color: #03e9f4;
opacity: 1;
}
.logo {
width: 5rem;
opacity: 0.6;
}

a {
cursor: "pointer";
color: white;
}
a:hover {
color: #f40303ab;
}
8 changes: 5 additions & 3 deletions src/components/Navbar.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import React from 'react'
import styled from 'styled-components'
import {Link} from "react-scroll"

function Navbar() {
return (
Expand All @@ -8,9 +9,9 @@ function Navbar() {
<Logo src={require('../assets/TravelGo.png')} />
</Left>
<Center>
<a href='/'>Home</a>
<a href='/'>About Us</a>
<a href='/'>Packages</a>
<a><Link to="home" smooth={true} duration={500} spy={true} exact="true">Home</Link></a>
<a><Link to="aboutUs" smooth={true} duration={500} spy={true} exact="true">About Us</Link></a>
<a href='/'><Link to="packages" smooth={true} duration={500} spy={true} exact="true">Packages</Link></a>
</Center>
<Right>
<Favourite src={require('../assets/favourite.png')} alt='Favourites' />
Expand All @@ -28,6 +29,7 @@ const Nav = styled.div`
justify-content: space-around;
width: 100%;
height: 10vh;
z-index:12;
`

const Left = styled.div`
Expand Down
50 changes: 50 additions & 0 deletions src/components/Navbar2.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
import React from 'react'
import { Link } from 'react-scroll';
import "./Navbar.css"
import logo from "../assets/TravelGo.png"
import fav from "../assets/favourite.png";
import profile from "../assets/Profile.png"
export default function Navbar() {
return (
<>
<div>
<nav className="navbar" id="home">
<div className="logos">
<img className="logo" src={logo} alt="logo" />
</div>
<ul className="nav-link">
<li className="nav-item">

<button className="nav-linkers link--btns" id="home--link"> <Link to="home">Home</Link></button>

</li>
<li className="nav-item">

<button className="nav-linkers link--btns" id="stocks--link" to="/aboutus"><Link to="stocks" smooth={true}
duration={500}
spy={true}
exact="true"
offset={-20} className="links">
About Us</Link>
</button>
</li>
<li className="nav-item">
{/* <a href="#" className="nav-linkers">About Us</a> */}
<button className="nav-linkers link--btns" id="about--link"><Link to="packages" smooth={true}
duration={500}
spy={true}
exact="true"
offset={-20}>
Packages</Link>
</button>
</li>
<li>
<img src={fav}></img>
<img src={profile}></img>
</li>
</ul>
</nav>
</div>
</>
);
}
2 changes: 1 addition & 1 deletion src/components/Packages.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import PackageSelect from './PackageSelect'

function Packages() {
return (
<Container>
<Container id="packages">

<Title>Best Packages For You</Title>
<Package>
Expand Down
2 changes: 1 addition & 1 deletion src/components/ServiceStats.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import StatsCard from './StatsCard'

function ServiceStats() {
return (
<Container>
<Container id="aboutUs">
<CoverTitleu>We always try to give you</CoverTitleu>
<CoverTitle>the best service</CoverTitle>
<CoverTextu>We always try to make our customer Happy. We provide all kind of</CoverTextu>
Expand Down