From cd8c22991388874ec48f0fbd3ccdc8ed9e1c7616 Mon Sep 17 00:00:00 2001 From: Phuoc Nguyen Date: Fri, 29 Nov 2019 15:11:21 +0700 Subject: [PATCH] Add upload button --- client/constants/Pattern.ts | 1 + client/pages/ExplorePage.tsx | 1 + client/pages/HomePage.tsx | 1 + client/patterns/upload-button/Cover.tsx | 58 +++++++++++ client/patterns/upload-button/Details.tsx | 117 ++++++++++++++++++++++ public/sitemap.xml | 1 + 6 files changed, 179 insertions(+) create mode 100644 client/patterns/upload-button/Cover.tsx create mode 100644 client/patterns/upload-button/Details.tsx diff --git a/client/constants/Pattern.ts b/client/constants/Pattern.ts index 9d5f2eb..e8e6681 100644 --- a/client/constants/Pattern.ts +++ b/client/constants/Pattern.ts @@ -44,6 +44,7 @@ enum Pattern { Switch = 'Switch', Tab = 'Tab', TogglePasswordVisibility = 'Toggle password visibility', + UploadButton = 'Upload button', Wizard = 'Wizard', } diff --git a/client/pages/ExplorePage.tsx b/client/pages/ExplorePage.tsx index e9ba511..c93b560 100644 --- a/client/pages/ExplorePage.tsx +++ b/client/pages/ExplorePage.tsx @@ -123,6 +123,7 @@ const ExplorePage = () => { + diff --git a/client/pages/HomePage.tsx b/client/pages/HomePage.tsx index f8c2e77..935fba9 100644 --- a/client/pages/HomePage.tsx +++ b/client/pages/HomePage.tsx @@ -235,6 +235,7 @@ const HomePage = () => { + diff --git a/client/patterns/upload-button/Cover.tsx b/client/patterns/upload-button/Cover.tsx new file mode 100644 index 0000000..7b5e65b --- /dev/null +++ b/client/patterns/upload-button/Cover.tsx @@ -0,0 +1,58 @@ +import React from 'react'; + +import Circle from '../../placeholders/Circle'; +import Frame from '../../placeholders/Frame'; +import Rectangle from '../../placeholders/Rectangle'; + +const Cover: React.FC<{}> = () => { + return ( + +
+
+
+ + + +
+ +
+
+ + ); +}; + +export default Cover; diff --git a/client/patterns/upload-button/Details.tsx b/client/patterns/upload-button/Details.tsx new file mode 100644 index 0000000..3277dde --- /dev/null +++ b/client/patterns/upload-button/Details.tsx @@ -0,0 +1,117 @@ +import React from 'react'; + +import DetailsLayout from '../../layouts/DetailsLayout'; +import BrowserFrame from '../../placeholders/BrowserFrame'; +import Circle from '../../placeholders/Circle'; +import Rectangle from '../../placeholders/Rectangle'; + +const Details: React.FC<{}> = () => { + return ( + +
+
+ You can click the button to choose a file. +
+ +
+
+ +
+ + + +
+ +
+
+
+ )} + source={` +
+ + + + +
...
+ + + ... +
+`} + /> + +
+ ); +}; + +export default Details; diff --git a/public/sitemap.xml b/public/sitemap.xml index a52843b..063a222 100644 --- a/public/sitemap.xml +++ b/public/sitemap.xml @@ -45,5 +45,6 @@ https://csslayout.io/patterns/switch https://csslayout.io/patterns/tab https://csslayout.io/patterns/toggle-password-visibility + https://csslayout.io/patterns/upload-button https://csslayout.io/patterns/wizard \ No newline at end of file