From ac3957fa133ee444dc10146117e161136b949966 Mon Sep 17 00:00:00 2001 From: gbrochar Date: Tue, 1 Dec 2020 18:36:25 +0100 Subject: [PATCH] navbar buttons change page content --- src/client/About.tsx | 32 +++++++++++ src/client/Blog.tsx | 26 +++++++++ src/client/Contact.tsx | 19 +++++++ src/client/Home.tsx | 98 +++++++++++++++++++++++++++++++++ src/client/Navbar.tsx | 13 +++-- src/client/Root.tsx | 120 ++++++++++------------------------------- 6 files changed, 211 insertions(+), 97 deletions(-) create mode 100644 src/client/About.tsx create mode 100644 src/client/Blog.tsx create mode 100644 src/client/Contact.tsx create mode 100644 src/client/Home.tsx diff --git a/src/client/About.tsx b/src/client/About.tsx new file mode 100644 index 0000000..97f2fd8 --- /dev/null +++ b/src/client/About.tsx @@ -0,0 +1,32 @@ +import React from 'react'; +import ImagesWithDescription from './ImagesWithDescription'; + +/** + * @return {jsx} The homepage component + */ +export default function About() { + return ( + + + + ); +} diff --git a/src/client/Blog.tsx b/src/client/Blog.tsx new file mode 100644 index 0000000..a53211c --- /dev/null +++ b/src/client/Blog.tsx @@ -0,0 +1,26 @@ +import React from 'react'; +import Banner from './Banner'; + +/** + * @return {jsx} The homepage component + */ +export default function Blog() { + return ( + + + + ); +} diff --git a/src/client/Contact.tsx b/src/client/Contact.tsx new file mode 100644 index 0000000..9534024 --- /dev/null +++ b/src/client/Contact.tsx @@ -0,0 +1,19 @@ +import React from 'react'; +import Quote from './Quote'; + +/** + * @return {jsx} The homepage component + */ +export default function Contact() { + return ( + + + + ); +} diff --git a/src/client/Home.tsx b/src/client/Home.tsx new file mode 100644 index 0000000..57fd633 --- /dev/null +++ b/src/client/Home.tsx @@ -0,0 +1,98 @@ +import React from 'react'; +import Banner from './Banner'; +import Quote from './Quote'; +import Footer from './Footer'; +import ImagesWithDescription from './ImagesWithDescription'; + +/** + * @return {jsx} The homepage component + */ +export default function Home() { + return ( + + + + +