From b4394da9005a0fb0fb270bb23524b65a0b39c247 Mon Sep 17 00:00:00 2001 From: Phuoc Nguyen Date: Fri, 15 Nov 2019 17:26:10 +0700 Subject: [PATCH] Add cover for sticky footer --- client/Home.jsx | 14 ++++++++++- client/covers/StickyFooterCover.jsx | 38 +++++++++++++++++++++++++++++ client/placeholders/Frame.jsx | 5 +++- client/placeholders/Line.jsx | 6 +++-- 4 files changed, 59 insertions(+), 4 deletions(-) create mode 100644 client/covers/StickyFooterCover.jsx diff --git a/client/Home.jsx b/client/Home.jsx index 70991a8..3213f84 100644 --- a/client/Home.jsx +++ b/client/Home.jsx @@ -2,6 +2,7 @@ import React from 'react'; import { Link } from 'react-router-dom'; import CenterCover from './covers/CenterCover'; +import StickyFooterCover from './covers/StickyFooterCover'; import Layout from './Layout'; import useDocumentTitle from './useDocumentTitle'; @@ -10,7 +11,18 @@ const Home = () => { return ( -

Pattern

+

Layouts

+ +
+
+ + +

Sticky footer

+ +
+
+ +

Patterns

diff --git a/client/covers/StickyFooterCover.jsx b/client/covers/StickyFooterCover.jsx new file mode 100644 index 0000000..57e3409 --- /dev/null +++ b/client/covers/StickyFooterCover.jsx @@ -0,0 +1,38 @@ +import React from 'react'; + +import Frame from '../placeholders/Frame'; +import Line from '../placeholders/Line'; + +const StickyFooterCover = () => { + return ( + +
+
+
+
+
+
+
+ +
+
+
+
+
+
+
+
+
+ +
+
+
+
+
+
+
+ + ); +}; + +export default StickyFooterCover; diff --git a/client/placeholders/Frame.jsx b/client/placeholders/Frame.jsx index fb1d17b..545fbb5 100644 --- a/client/placeholders/Frame.jsx +++ b/client/placeholders/Frame.jsx @@ -1,10 +1,13 @@ import React from 'react'; -const Frame = ({ children }) => { +const Frame = ({ children, size }) => { + const bw = (size === 'medium' ? '2px' : '1px'); + return (
{ +const Line = ({ size }) => { + const h = (size === 'medium' ? '2px' : '1px'); + return (
); };