From e2d8ff1f3a7406cd4ca26dee12ea9aa8bc555db0 Mon Sep 17 00:00:00 2001 From: Phuoc Nguyen Date: Thu, 12 Dec 2019 21:36:14 +0700 Subject: [PATCH] Add timeline pattern --- client/constants/Pattern.ts | 1 + client/pages/ExplorePage.tsx | 3 +- client/pages/HomePage.tsx | 2 +- client/patterns/timeline/Cover.tsx | 78 +++++++++++++ client/patterns/timeline/Details.tsx | 158 +++++++++++++++++++++++++++ public/sitemap.xml | 1 + 6 files changed, 241 insertions(+), 2 deletions(-) create mode 100644 client/patterns/timeline/Cover.tsx create mode 100644 client/patterns/timeline/Details.tsx diff --git a/client/constants/Pattern.ts b/client/constants/Pattern.ts index 34f8e94..b1f32e8 100644 --- a/client/constants/Pattern.ts +++ b/client/constants/Pattern.ts @@ -60,6 +60,7 @@ enum Pattern { StickyHeader = 'Sticky header', Switch = 'Switch', Tab = 'Tab', + Timeline = 'Timeline', TogglePasswordVisibility = 'Toggle password visibility', UploadButton = 'Upload button', ValidationIcon = 'Validation icon', diff --git a/client/pages/ExplorePage.tsx b/client/pages/ExplorePage.tsx index 6a75468..328ec18 100644 --- a/client/pages/ExplorePage.tsx +++ b/client/pages/ExplorePage.tsx @@ -62,7 +62,7 @@ const ExplorePage = () => { textAlign: 'center', }} > - Here is the collection of 65 patterns + Here is the collection of 66 patterns
All covers you see in this page are made with CSS only. Inspect them! 🎉 @@ -154,6 +154,7 @@ const ExplorePage = () => { +
diff --git a/client/pages/HomePage.tsx b/client/pages/HomePage.tsx index ba4e5ae..4b176fb 100644 --- a/client/pages/HomePage.tsx +++ b/client/pages/HomePage.tsx @@ -170,7 +170,7 @@ const HomePage = () => { marginBottom: '16px', }} > - 65 patterns + 66 patterns = () => { + return ( + +
+
+
+
    +
  • +
    + +
    +
    +
    +
    +
    +
    +
    +
    +
    +
    +
  • +
  • +
    + +
    +
    +
    +
    +
    +
    +
    +
    +
    +
    +
  • +
+
+
+ + ); +}; + +export default Cover; diff --git a/client/patterns/timeline/Details.tsx b/client/patterns/timeline/Details.tsx new file mode 100644 index 0000000..c904b24 --- /dev/null +++ b/client/patterns/timeline/Details.tsx @@ -0,0 +1,158 @@ +import React from 'react'; + +import DetailsLayout from '../../layouts/DetailsLayout'; +import Block from '../../placeholders/Block'; +import BrowserFrame from '../../placeholders/BrowserFrame'; +import Circle from '../../placeholders/Circle'; +import Rectangle from '../../placeholders/Rectangle'; + +const Details: React.FC<{}> = () => { + return ( + +
+ +
+
+
    +
  • +
    + +
    +
    +
    +
    +
    + +
    +
  • +
  • +
    + +
    +
    +
    +
    +
    + +
    +
  • +
  • +
    + +
    +
    +
    +
    +
    + +
    +
  • +
+
+
+ )} + source={` +
+ +
+ + +
    + +
  • + +
    + +
    + + +
    + ... +
    +
    + + +
    + ... +
    +
  • + + + ... +
+
+`} + /> +
+ + ); +}; + +export default Details; diff --git a/public/sitemap.xml b/public/sitemap.xml index f36a0cb..1ced200 100644 --- a/public/sitemap.xml +++ b/public/sitemap.xml @@ -61,6 +61,7 @@ https://csslayout.io/patterns/stepper-input https://csslayout.io/patterns/switch https://csslayout.io/patterns/tab + https://csslayout.io/patterns/timeline https://csslayout.io/patterns/toggle-password-visibility https://csslayout.io/patterns/upload-button https://csslayout.io/patterns/validation-icon