diff --git a/README.md b/README.md index 4b85acd..5afc146 100644 --- a/README.md +++ b/README.md @@ -70,6 +70,14 @@ Visit http://localhost:1234 to see it in action. PRs are welcomed. If you thing there are any missing useful layouts or patterns, please create an issue or submit a PR. +It's important to note that you should run the following command to lint the code: + +~~~ +$ npm run lint +~~~ + +If there is any issue, it will be logged in the `tslint.log` file. + ## About This project is developed by [Nguyen Huu Phuoc](https://twitter.com/nghuuphuoc). diff --git a/client/constants/Pattern.ts b/client/constants/Pattern.ts index 7034517..7eecbd0 100644 --- a/client/constants/Pattern.ts +++ b/client/constants/Pattern.ts @@ -71,6 +71,7 @@ enum Pattern { StickyTableHeaders = 'Sticky table headers', Switch = 'Switch', Tab = 'Tab', + Teardrop = 'Teardrop', Timeline = 'Timeline', TogglePasswordVisibility = 'Toggle password visibility', Tooltip = 'Tooltip', diff --git a/client/pages/ExplorePage.tsx b/client/pages/ExplorePage.tsx index 3602201..35046ad 100644 --- a/client/pages/ExplorePage.tsx +++ b/client/pages/ExplorePage.tsx @@ -171,6 +171,7 @@ const ExplorePage = () => { + diff --git a/client/patterns/teardrop/Cover.tsx b/client/patterns/teardrop/Cover.tsx new file mode 100644 index 0000000..261882c --- /dev/null +++ b/client/patterns/teardrop/Cover.tsx @@ -0,0 +1,35 @@ +import React from 'react'; + +import Frame from '../../placeholders/Frame'; + +const Cover: React.FC<{}> = () => { + return ( + +
+
+
+ + ); +}; + +export default Cover; diff --git a/client/patterns/teardrop/Details.tsx b/client/patterns/teardrop/Details.tsx new file mode 100644 index 0000000..1b2941f --- /dev/null +++ b/client/patterns/teardrop/Details.tsx @@ -0,0 +1,81 @@ +import React from 'react'; +import { Helmet } from 'react-helmet'; + +import DetailsLayout from '../../layouts/DetailsLayout'; +import BrowserFrame from '../../placeholders/BrowserFrame'; +import Circle from '../../placeholders/Circle'; + +const Details: React.FC<{}> = () => { + return ( + + + + + +
+ +
+
+ +
+
+
+ )} + source={` +
+ +
+ ... +
+
+`} + /> +
+ + ); +}; + +export default Details; diff --git a/public/sitemap.xml b/public/sitemap.xml index e4aa7b1..4100d16 100644 --- a/public/sitemap.xml +++ b/public/sitemap.xml @@ -72,6 +72,7 @@ https://csslayout.io/patterns/sticky-table-headers https://csslayout.io/patterns/switch https://csslayout.io/patterns/tab + https://csslayout.io/patterns/teardrop https://csslayout.io/patterns/timeline https://csslayout.io/patterns/toggle-password-visibility https://csslayout.io/patterns/tooltip