Skip to content

Commit a816452

Browse files
committedJul 14, 2023
Second Commit Few Changes
1 parent 46fd484 commit a816452

11 files changed

+95
-5
lines changed
 

‎public/fav.ico

4.19 KB
Binary file not shown.

‎public/index.html

+2-2
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
<html lang="en">
33
<head>
44
<meta charset="utf-8" />
5-
<link rel="icon" href="%PUBLIC_URL%/favicon.ico" />
5+
<link rel="icon" href="fav.ico" />
66
<meta name="viewport" content="width=device-width, initial-scale=1" />
77
<meta name="theme-color" content="#000000" />
88
<meta
@@ -25,7 +25,7 @@
2525
Learn how to configure a non-root public URL by running `npm run build`.
2626
-->
2727
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css" integrity="sha512-iecdLmaskl7CVkqkXNQ/ZH/XLlvWZOJyj7Yy7tcenmpD1ypASozpmT/E0iPtmFIB46ZmdtAc9eNBvH0H/ZpiBw==" crossorigin="anonymous" referrerpolicy="no-referrer" />
28-
<title>React App</title>
28+
<title>Happy Journey</title>
2929
</head>
3030
<body>
3131
<noscript>You need to enable JavaScript to run this app.</noscript>

‎src/assets/fav.png

2.12 KB
Loading

‎src/components/AboutUs.js

+7-2
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,13 @@ import "./AboutUsStyles.css"
22

33
function AboutUs(){
44
return(
5-
<div>
6-
5+
<div className="about-container">
6+
<h1>Our History</h1>
7+
<p>The first tour operator went into business in England in 1758, and is still in business today. In Europe, pleasure travel started in earnest during the 1840s, when Thomas Cook began conducting tours to Paris and later around Europe. By the 1850s, railroad tours were already in operation. Modern tour operators – companies that organize group tours and independent travel packages — date back to the mid-nineteenth century, and most likely have their roots as ticket agents for steamship lines and railroads. </p>
8+
<h1>Our Mission</h1>
9+
<p>Helping People and Companies travel smart and achieve more</p>
10+
<h1>Our Vision</h1>
11+
<p>To be the worl'd most trusted, innovative and sustainable travel management company.</p>
712
</div>
813
)
914
}

‎src/components/AboutUsStyles.css

+18
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
.about-container{
2+
margin: 4rem 6rem ;
3+
text-align: start;
4+
}
5+
.about-container h1{
6+
padding-bottom: 1rem;
7+
font-size: 5rem;
8+
}
9+
.about-container p{
10+
padding-bottom: 2rem;
11+
font-size: 1.5rem;
12+
}
13+
@media screen and (max-width:850px) {
14+
.about-container{
15+
margin: 4rem 2rem;
16+
}
17+
18+
}

‎src/components/ContactForm.js

+17
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
import "./ContactFormStyles.css"
2+
function ContactForm(){
3+
return(
4+
<div className="from-container">
5+
<h1>Send a Message to us</h1>
6+
<form>
7+
<input placeholder="Name"/>
8+
<input placeholder="Email"/>
9+
<input placeholder="Subject"/>
10+
<textarea placeholder="Message" rows="4"></textarea>
11+
<button>Send Message</button>
12+
</form>
13+
</div>
14+
15+
)
16+
}
17+
export default ContactForm;

‎src/components/ContactFormStyles.css

+39
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
.from-container{
2+
margin: 4rem 6rem;
3+
color: #2a2a2a;
4+
5+
}
6+
7+
.from-container form{
8+
padding-top: 3rem;
9+
display: flex;
10+
flex-direction: column;
11+
width: 50%;
12+
margin: auto;
13+
}
14+
.from-container input{
15+
height: 3rem;
16+
padding: 0 1rem;
17+
margin-bottom: 2rem;
18+
border-radius: 0.3rem;
19+
border: 1px solid #2a2a2a;
20+
}
21+
.from-container textarea{
22+
padding: 1rem;
23+
margin-bottom: 2rem;
24+
border-radius: 0.3rem;
25+
border: 1px solid #2a2a2a;
26+
}
27+
.from-container button{
28+
display: inline;
29+
}
30+
@media screen and (max-width:850px) {
31+
.from-container{
32+
margin: 4rem 2rem;
33+
}
34+
.from-container form{
35+
padding-top:2rem;
36+
width: 90%;
37+
}
38+
}
39+

‎src/components/Navbar.js

+2-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,8 @@ class Navbar extends Component{
1212
render() {
1313
return(
1414
<nav className="NavbarItems">
15-
<h1 className="navbar-logo">Happy Journey</h1>
15+
16+
<h1 className="navbar-logo"><a href="/">Happy Journey</a></h1>
1617

1718
<div className="menu-icons" onClick={this.handleClick}>
1819
<i className={this.state.clicked ? "fas fa-times" : "fas fa-bars"}></i>

‎src/components/NavbarStyles.css

+6
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,13 @@
1818
color: #222;
1919
font-size: 2rem;
2020
cursor: pointer;
21+
text-decoration: none;
22+
}
23+
.navbar-logo a{
24+
text-decoration: none;
25+
color: black;
2126
}
27+
2228
.nav-menu{
2329
display: grid;
2430
grid-template-columns:repeat(6, auto);

‎src/routes/About.js

+2
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ import Navbar from "../components/Navbar";
22
import Hero from "../components/Hero";
33
import AboutImg from "../assets/5.jpeg"
44
import Footer from "../components/Footer";
5+
import AboutUs from "../components/AboutUs";
56
function About (){
67
return(
78
<>
@@ -12,6 +13,7 @@ function About (){
1213
title="About"
1314
btnClass="hide"
1415
/>
16+
<AboutUs/>
1517
<Footer/>
1618
</>
1719
)

‎src/routes/Contact.js

+2
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ import Navbar from "../components/Navbar";
22
import Hero from "../components/Hero";
33
import AboutImg from "../assets/pexels-adrian-falcon-3359250.jpg"
44
import Footer from "../components/Footer";
5+
import ContactForm from "../components/ContactForm";
56
function Contact (){
67
return(
78
<>
@@ -12,6 +13,7 @@ function Contact (){
1213
title="Contact"
1314
btnClass="hide"
1415
/>
16+
<ContactForm/>
1517
<Footer/>
1618

1719
</>

0 commit comments

Comments
 (0)
Please sign in to comment.