From c23115431d4f95300287c9c297886b67a65878cb Mon Sep 17 00:00:00 2001 From: Phuoc Nguyen Date: Thu, 21 Nov 2019 13:02:57 +0700 Subject: [PATCH] Tweak homepage --- client/Footer.jsx | 101 +++++++++++++++ client/Home.jsx | 314 +++++++++++++++++++++++----------------------- client/Layout.jsx | 86 ++----------- 3 files changed, 263 insertions(+), 238 deletions(-) create mode 100644 client/Footer.jsx diff --git a/client/Footer.jsx b/client/Footer.jsx new file mode 100644 index 0000000..a3e1ef1 --- /dev/null +++ b/client/Footer.jsx @@ -0,0 +1,101 @@ +import React from 'react'; + +const Footer = () => { + return ( +
+
+

PRODUCTS

+ + +
+ +
+

ABOUT

+ +
+
© 2019 Nguyen Huu Phuoc and contributors
+ +
+
+
+ ); +}; + +export default Footer; diff --git a/client/Home.jsx b/client/Home.jsx index 2074c02..ee21f91 100644 --- a/client/Home.jsx +++ b/client/Home.jsx @@ -33,172 +33,168 @@ const Home = () => { return ( -
-
- { - 'CSS LAYOUT'.split('').map((c, index) => { - return ( - c === ' ' - ?
- :
{c}
- ); - }) - } -
-

a collection of popular layouts and patterns made with CSS

+
+

+ CSS Layout +

+

a collection of popular layouts and patterns made with CSS

-
-

Layouts

+
+
+

Layouts

-
-
- - -

Holy grail

+
+
+ + +

Holy grail

+ +
+
+ + +

Sidebar

+ +
+
+ + +

Split screen

+ +
+
+ + +

Sticky footer

+ +
+
+ + +

Sticky header

-
-
- - -

Sidebar

- -
-
- - -

Split screen

- -
-
- - -

Sticky footer

- -
-
- - -

Sticky header

- +
-

Patterns

+
+

Patterns

-
-
- - -

Badge

- -
-
- - -

Breadcrumb

- -
-
- - -

Button with icon

- -
-
- - -

Card

- -
-
- - -

Centering

- -
-
- - -

Fixed at corner

- -
-
- - -

Input addon

- -
-
- - -

Media object

- -
-
- - -

Menu

- -
-
- - -

Modal

- -
-
- - -

Notification

- -
-
- - -

Pagination

- -
-
- - -

Previous next buttons

- -
-
- - -

Pricing table

- -
-
- - -

Progress bar

- -
-
- - -

Same height columns

- -
-
- - -

Slider

- -
-
- - -

Stepper input

- -
-
- - -

Switch

- +
+
+ + +

Badge

+ +
+
+ + +

Breadcrumb

+ +
+
+ + +

Button with icon

+ +
+
+ + +

Card

+ +
+
+ + +

Centering

+ +
+
+ + +

Fixed at corner

+ +
+
+ + +

Input addon

+ +
+
+ + +

Media object

+ +
+
+ + +

Menu

+ +
+
+ + +

Modal

+ +
+
+ + +

Notification

+ +
+
+ + +

Pagination

+ +
+
+ + +

Previous next buttons

+ +
+
+ + +

Pricing table

+ +
+
+ + +

Progress bar

+ +
+
+ + +

Same height columns

+ +
+
+ + +

Slider

+ +
+
+ + +

Stepper input

+ +
+
+ + +

Switch

+ +
diff --git a/client/Layout.jsx b/client/Layout.jsx index c7714f8..1efcb53 100644 --- a/client/Layout.jsx +++ b/client/Layout.jsx @@ -1,90 +1,18 @@ import React, { useEffect } from 'react'; +import Footer from './Footer'; + const Layout = ({ children }) => { useEffect(() => { window.scrollTo(0, 0); }, []); return ( - <> -
- {children} -
-
-
-
-
Other cool things
- -
-
-
© 2019 Nguyen Huu Phuoc and contributors
- -
-
-
- +
+ {children} + +
); };