mirror of
https://github.com/yusufipk/natours-react.git
synced 2026-09-11 11:06:10 +00:00
created footer element and changed structure of components
This commit is contained in:
+5
-10
@@ -1,20 +1,15 @@
|
|||||||
import "./App.scss";
|
import "./App.scss";
|
||||||
import About from "./commons/about-section/about";
|
|
||||||
import Booking from "./commons/booking-section/booking";
|
|
||||||
import Feature from "./commons/feature-section/feature";
|
|
||||||
import Header from "./commons/header/header.jsx";
|
import Header from "./commons/header/header.jsx";
|
||||||
import Stories from "./commons/stories-section/stories";
|
import Main from "./commons/main/main";
|
||||||
import Tours from "./commons/tours-section/tours";
|
import Footer from "./commons/footer-section/footer";
|
||||||
|
|
||||||
function App() {
|
function App() {
|
||||||
return (
|
return (
|
||||||
<div>
|
<div>
|
||||||
<Header />
|
<Header />
|
||||||
<About />
|
<Main />
|
||||||
<Feature />
|
<Footer />
|
||||||
<Tours />
|
|
||||||
<Stories />
|
|
||||||
<Booking />
|
|
||||||
</div>
|
</div>
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -4,7 +4,6 @@ import nat3Large from "../../commons/images/nat-3-large.jpg";
|
|||||||
|
|
||||||
function About() {
|
function About() {
|
||||||
return (
|
return (
|
||||||
<main>
|
|
||||||
<section className="section-about">
|
<section className="section-about">
|
||||||
<div className="u-center-text u-margin-bottom-big">
|
<div className="u-center-text u-margin-bottom-big">
|
||||||
<h2 className="heading-secondary">
|
<h2 className="heading-secondary">
|
||||||
@@ -55,7 +54,6 @@ function About() {
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</section>
|
</section>
|
||||||
</main>
|
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
export default About;
|
export default About;
|
||||||
|
|||||||
@@ -0,0 +1,5 @@
|
|||||||
|
function Footer() {
|
||||||
|
return <section className="section-footer"></section>;
|
||||||
|
}
|
||||||
|
|
||||||
|
export default Footer;
|
||||||
@@ -0,0 +1,19 @@
|
|||||||
|
import About from "../about-section/about";
|
||||||
|
import Booking from "../booking-section/booking";
|
||||||
|
import Feature from "../feature-section/feature";
|
||||||
|
import Stories from "../stories-section/stories";
|
||||||
|
import Tours from "../tours-section/tours";
|
||||||
|
|
||||||
|
function Main() {
|
||||||
|
return (
|
||||||
|
<main>
|
||||||
|
<About />
|
||||||
|
<Feature />
|
||||||
|
<Tours />
|
||||||
|
<Stories />
|
||||||
|
<Booking />
|
||||||
|
</main>
|
||||||
|
);
|
||||||
|
}
|
||||||
|
|
||||||
|
export default Main;
|
||||||
Reference in New Issue
Block a user