From f81388b133be8b8c6c525a748a7aa60f016b45b9 Mon Sep 17 00:00:00 2001 From: Phuoc Nguyen Date: Thu, 12 Dec 2019 20:16:59 +0700 Subject: [PATCH] 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