diff --git a/client/DetailsLayout.jsx b/client/DetailsLayout.jsx index 2f6e1b8..2c34b60 100644 --- a/client/DetailsLayout.jsx +++ b/client/DetailsLayout.jsx @@ -6,14 +6,14 @@ import Layout from './Layout'; const DetailsLayout = ({ name, children }) => { return ( -
- Home -
/
-
{name}
-
- -
- {children} +
+
+ CSS Layout +
+

{name}

+
+ {children} +
); diff --git a/client/Home.jsx b/client/Home.jsx index 7de1170..d2c7434 100644 --- a/client/Home.jsx +++ b/client/Home.jsx @@ -11,25 +11,41 @@ const Home = () => { return ( -

Layouts

- -
-
- - -

Sticky footer

- +
+
+ { + 'CSS LAYOUT'.split('').map((c, index) => { + return ( + c === ' ' + ?
+ :
{c}
+ ); + }) + }
+

a collection of popular layouts and patterns made with CSS

+
+

Layouts

-

Patterns

+
+
+ + +

Sticky footer

+ +
+
-
-
- - -

Centering

- +

Patterns

+ +
+
+ + +

Centering

+ +
diff --git a/client/Layout.jsx b/client/Layout.jsx index d8d4432..67c38b0 100644 --- a/client/Layout.jsx +++ b/client/Layout.jsx @@ -6,9 +6,87 @@ const Layout = ({ children }) => { }, []); return ( -
- {children} -
+ <> +
+ {children} +
+
+
+
+
Other cool things
+ +
+
+
© 2019 Nguyen Huu Phuoc and contributors
+ +
+
+
+ ); }; diff --git a/client/layouts/StickyFooter.jsx b/client/layouts/StickyFooter.jsx index c26ed41..8126a5f 100644 --- a/client/layouts/StickyFooter.jsx +++ b/client/layouts/StickyFooter.jsx @@ -11,7 +11,7 @@ const StickyFooter = () => { return (
- The footer is always sticky at the bottom if the main content is short. + The footer always sticks to the bottom if the main content is short.