From 5757fe5208c890129ad3f9e594f8dffdbf951a32 Mon Sep 17 00:00:00 2001 From: Phuoc Nguyen Date: Tue, 3 Dec 2019 22:21:07 +0700 Subject: [PATCH] Add popover arrow --- client/constants/Pattern.ts | 1 + client/pages/ExplorePage.tsx | 1 + client/patterns/popover-arrow/Cover.tsx | 47 +++ client/patterns/popover-arrow/Details.tsx | 428 ++++++++++++++++++++++ public/sitemap.xml | 1 + 5 files changed, 478 insertions(+) create mode 100644 client/patterns/popover-arrow/Cover.tsx create mode 100644 client/patterns/popover-arrow/Details.tsx diff --git a/client/constants/Pattern.ts b/client/constants/Pattern.ts index b33c750..f6aa583 100644 --- a/client/constants/Pattern.ts +++ b/client/constants/Pattern.ts @@ -28,6 +28,7 @@ enum Pattern { Notification = 'Notification', OverlayPlayButton = 'Overlay play button', Pagination = 'Pagination', + PopoverArrow = 'Popover arrow', PresenceIndicator = 'Presence indicator', PreviousNextButtons = 'Previous next buttons', PricingTable = 'Pricing table', diff --git a/client/pages/ExplorePage.tsx b/client/pages/ExplorePage.tsx index 427d7c1..a0059f1 100644 --- a/client/pages/ExplorePage.tsx +++ b/client/pages/ExplorePage.tsx @@ -116,6 +116,7 @@ const ExplorePage = () => { + diff --git a/client/patterns/popover-arrow/Cover.tsx b/client/patterns/popover-arrow/Cover.tsx new file mode 100644 index 0000000..49370a6 --- /dev/null +++ b/client/patterns/popover-arrow/Cover.tsx @@ -0,0 +1,47 @@ +import React from 'react'; + +import Frame from '../../placeholders/Frame'; + +const Cover: React.FC<{}> = () => { + return ( + +
+
+
+
+
+ + ); +}; + +export default Cover; diff --git a/client/patterns/popover-arrow/Details.tsx b/client/patterns/popover-arrow/Details.tsx new file mode 100644 index 0000000..21cf88a --- /dev/null +++ b/client/patterns/popover-arrow/Details.tsx @@ -0,0 +1,428 @@ +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 eb938b2..df98c72 100644 --- a/public/sitemap.xml +++ b/public/sitemap.xml @@ -33,6 +33,7 @@ https://csslayout.io/patterns/notification https://csslayout.io/patterns/overlay-play-button https://csslayout.io/patterns/pagination + https://csslayout.io/patterns/popover-arrow https://csslayout.io/patterns/presence-indicator https://csslayout.io/patterns/previous-next-buttons https://csslayout.io/patterns/pricing-table