From 848909587cc116f3318c28f2f2e073ae68893cce Mon Sep 17 00:00:00 2001 From: Phuoc Nguyen Date: Thu, 12 Dec 2019 20:16:44 +0700 Subject: [PATCH 1/2] Cleanup --- client/patterns/avatar/Cover.tsx | 6 +++--- client/patterns/avatar/Details.tsx | 6 +++--- client/patterns/toggle-password-visibility/Details.tsx | 6 +++--- client/patterns/upload-button/Cover.tsx | 6 +++--- client/patterns/upload-button/Details.tsx | 6 +++--- 5 files changed, 15 insertions(+), 15 deletions(-) diff --git a/client/patterns/avatar/Cover.tsx b/client/patterns/avatar/Cover.tsx index b0de94c..b030bcf 100644 --- a/client/patterns/avatar/Cover.tsx +++ b/client/patterns/avatar/Cover.tsx @@ -27,11 +27,11 @@ const Cover: React.FC<{}> = () => { = () => { = () => { = () => { = () => { Date: Thu, 12 Dec 2019 20:16:59 +0700 Subject: [PATCH 2/2] Add validation icon pattern --- client/constants/Pattern.ts | 1 + client/pages/ExplorePage.tsx | 3 +- client/pages/HomePage.tsx | 2 +- client/patterns/validation-icon/Cover.tsx | 56 ++++++++ client/patterns/validation-icon/Details.tsx | 146 ++++++++++++++++++++ public/sitemap.xml | 1 + 6 files changed, 207 insertions(+), 2 deletions(-) create mode 100644 client/patterns/validation-icon/Cover.tsx create mode 100644 client/patterns/validation-icon/Details.tsx diff --git a/client/constants/Pattern.ts b/client/constants/Pattern.ts index 0ee4c23..34f8e94 100644 --- a/client/constants/Pattern.ts +++ b/client/constants/Pattern.ts @@ -62,6 +62,7 @@ enum Pattern { Tab = 'Tab', TogglePasswordVisibility = 'Toggle password visibility', UploadButton = 'Upload button', + ValidationIcon = 'Validation icon', Wizard = 'Wizard', } diff --git a/client/pages/ExplorePage.tsx b/client/pages/ExplorePage.tsx index db0689a..6a75468 100644 --- a/client/pages/ExplorePage.tsx +++ b/client/pages/ExplorePage.tsx @@ -62,7 +62,7 @@ const ExplorePage = () => { textAlign: 'center', }} > - Here is the collection of 64 patterns + Here is the collection of 65 patterns
All covers you see in this page are made with CSS only. Inspect them! 🎉 @@ -168,6 +168,7 @@ const ExplorePage = () => { +
diff --git a/client/pages/HomePage.tsx b/client/pages/HomePage.tsx index 218443e..ba4e5ae 100644 --- a/client/pages/HomePage.tsx +++ b/client/pages/HomePage.tsx @@ -170,7 +170,7 @@ const HomePage = () => { marginBottom: '16px', }} > - 64 patterns + 65 patterns = () => { + return ( + +
+
+ + + + + +
+
+ + ); +}; + +export default Cover; diff --git a/client/patterns/validation-icon/Details.tsx b/client/patterns/validation-icon/Details.tsx new file mode 100644 index 0000000..2309fe6 --- /dev/null +++ b/client/patterns/validation-icon/Details.tsx @@ -0,0 +1,146 @@ +import React from 'react'; + +import DetailsLayout from '../../layouts/DetailsLayout'; +import BrowserFrame from '../../placeholders/BrowserFrame'; + +const Details: React.FC<{}> = () => { + return ( + +
+ +
+ + + + + + +
+ +
+ + + + + + +
+
+ )} + source={` +
+ + + + + + + ... + +
+`} + /> + +
+ ); +}; + +export default Details; diff --git a/public/sitemap.xml b/public/sitemap.xml index 5f7d88a..f36a0cb 100644 --- a/public/sitemap.xml +++ b/public/sitemap.xml @@ -63,5 +63,6 @@ https://csslayout.io/patterns/tab https://csslayout.io/patterns/toggle-password-visibility https://csslayout.io/patterns/upload-button + https://csslayout.io/patterns/validation-icon https://csslayout.io/patterns/wizard \ No newline at end of file