From f5c2e102c61ecc632390562382a7f77741fca81f Mon Sep 17 00:00:00 2001 From: Yusuf Ipek Date: Fri, 7 May 2021 12:05:10 +0300 Subject: [PATCH] created media queries, fixed nav links and some other links. Popup closes after clicking outside of the div, update readme --- README.md | 6 +++- src/commons/about-section/about.jsx | 10 +++---- src/commons/booking-section/booking.jsx | 2 +- src/commons/feature-section/feature.jsx | 2 +- src/commons/footer-section/footer.jsx | 2 +- src/commons/header/header.jsx | 4 ++- src/commons/navigation/navigation.jsx | 39 +++++++++++++++++++++---- src/commons/popup/popup.jsx | 7 +++-- src/commons/stories-section/stories.jsx | 2 +- src/commons/tours-section/tours.jsx | 2 +- src/sass/abstracts/_mixins.scss | 8 ++--- src/sass/base/_base.scss | 5 ++++ src/sass/components/_card.scss | 2 +- src/sass/components/_popup.scss | 12 ++++++++ src/sass/layout/_header.scss | 5 ++-- 15 files changed, 81 insertions(+), 27 deletions(-) diff --git a/README.md b/README.md index 63dfd0d..120fe24 100644 --- a/README.md +++ b/README.md @@ -1 +1,5 @@ -# Natour +# Natours + +A landing page for travel agencies. The design is created by Jonas Schmedtmann. I've implemented the webpage using React, SASS and HTML. + +[Live Demo](https://yusufipk.github.io/natours-react/) diff --git a/src/commons/about-section/about.jsx b/src/commons/about-section/about.jsx index f6a935f..9d016e6 100644 --- a/src/commons/about-section/about.jsx +++ b/src/commons/about-section/about.jsx @@ -7,7 +7,7 @@ import nat3 from "../../commons/images/nat-3.jpg"; function About() { return ( -
+

Exciting tours for adventurous people @@ -32,7 +32,7 @@ function About() { Lorem ipsum dolor sit amet consectetur adipisicing elit. Quisquam perferendis esse minima provident neque

- + Learn More ➯

@@ -41,7 +41,7 @@ function About() { Photo 1 @@ -49,7 +49,7 @@ function About() { Photo 2 @@ -57,7 +57,7 @@ function About() { Photo 3 diff --git a/src/commons/booking-section/booking.jsx b/src/commons/booking-section/booking.jsx index 44dd841..57a684c 100644 --- a/src/commons/booking-section/booking.jsx +++ b/src/commons/booking-section/booking.jsx @@ -2,7 +2,7 @@ import Form from "../form/form"; function Booking() { return ( -
+
diff --git a/src/commons/feature-section/feature.jsx b/src/commons/feature-section/feature.jsx index adf98e4..d84c7d5 100644 --- a/src/commons/feature-section/feature.jsx +++ b/src/commons/feature-section/feature.jsx @@ -1,6 +1,6 @@ function Feature() { return ( -
+
diff --git a/src/commons/footer-section/footer.jsx b/src/commons/footer-section/footer.jsx index 0690f92..8e1e21b 100644 --- a/src/commons/footer-section/footer.jsx +++ b/src/commons/footer-section/footer.jsx @@ -55,7 +55,7 @@ function Footer() {

Design by Jonas Schmedtmann. Coded by{" "} Outdoors is where life happens - Discover our tours + + Discover our tours +

); diff --git a/src/commons/navigation/navigation.jsx b/src/commons/navigation/navigation.jsx index 0b6ec0a..4d8318e 100644 --- a/src/commons/navigation/navigation.jsx +++ b/src/commons/navigation/navigation.jsx @@ -1,12 +1,19 @@ +import React, { useState } from "react"; function Navigation() { + const [check, setCheck] = useState(false); return (
-