From 854ef771944d7ddd70089f5081e1360a7c086927 Mon Sep 17 00:00:00 2001 From: Phuoc Nguyen Date: Mon, 30 Dec 2019 22:54:33 +0700 Subject: [PATCH] Add statistic pattern --- client/constants/Pattern.ts | 1 + client/pages/ExplorePage.tsx | 1 + client/patterns/statistic/Cover.tsx | 43 ++++++++++++++ client/patterns/statistic/Details.tsx | 84 +++++++++++++++++++++++++++ public/sitemap.xml | 1 + 5 files changed, 130 insertions(+) create mode 100644 client/patterns/statistic/Cover.tsx create mode 100644 client/patterns/statistic/Details.tsx diff --git a/client/constants/Pattern.ts b/client/constants/Pattern.ts index ff886ce..8b82b66 100644 --- a/client/constants/Pattern.ts +++ b/client/constants/Pattern.ts @@ -68,6 +68,7 @@ enum Pattern { SplitNavigation = 'Split navigation', SplitScreen = 'Split screen', StackedCards = 'Stacked cards', + Statistic = 'Statistic', StepperInput = 'Stepper input', StickyFooter = 'Sticky footer', StickyHeader = 'Sticky header', diff --git a/client/pages/ExplorePage.tsx b/client/pages/ExplorePage.tsx index da9b4b1..6967188 100644 --- a/client/pages/ExplorePage.tsx +++ b/client/pages/ExplorePage.tsx @@ -174,6 +174,7 @@ const ExplorePage = () => { + diff --git a/client/patterns/statistic/Cover.tsx b/client/patterns/statistic/Cover.tsx new file mode 100644 index 0000000..5853068 --- /dev/null +++ b/client/patterns/statistic/Cover.tsx @@ -0,0 +1,43 @@ +/** + * A collection of popular layouts and patterns made with CSS (https://csslayout.io) + * (c) 2019 - 2020 Nguyen Huu Phuoc + */ + +import React from 'react'; + +import Frame from '../../placeholders/Frame'; + +const Cover: React.FC<{}> = () => { + return ( + +
+
+
+ 1k+ +
+
+ stars +
+
+
+ + ); +}; + +export default Cover; diff --git a/client/patterns/statistic/Details.tsx b/client/patterns/statistic/Details.tsx new file mode 100644 index 0000000..84858b4 --- /dev/null +++ b/client/patterns/statistic/Details.tsx @@ -0,0 +1,84 @@ +/** + * A collection of popular layouts and patterns made with CSS (https://csslayout.io) + * (c) 2019 - 2020 Nguyen Huu Phuoc + */ + +import React from 'react'; +import { Helmet } from 'react-helmet'; + +import random from '../../helpers/random'; +import DetailsLayout from '../../layouts/DetailsLayout'; +import BrowserFrame from '../../placeholders/BrowserFrame'; + +const Details: React.FC<{}> = () => { + return ( + + + + + +
+ +
+
+ {random(1000, 9999).toLocaleString()} +
+
+ stars +
+
+
+ )} + source={` +
+ +
+ ... +
+ + +
+ ... +
+
+`} + /> + +
+ ); +}; + +export default Details; diff --git a/public/sitemap.xml b/public/sitemap.xml index 4100d16..9d0caff 100644 --- a/public/sitemap.xml +++ b/public/sitemap.xml @@ -64,6 +64,7 @@ https://csslayout.io/patterns/split-navigation https://csslayout.io/patterns/split-screen https://csslayout.io/patterns/stacked-cards + https://csslayout.io/patterns/statistic https://csslayout.io/patterns/stepper-input https://csslayout.io/patterns/sticky-footer https://csslayout.io/patterns/sticky-header