diff --git a/client/constants/Pattern.ts b/client/constants/Pattern.ts index b1f32e8..b810f06 100644 --- a/client/constants/Pattern.ts +++ b/client/constants/Pattern.ts @@ -16,6 +16,7 @@ enum Pattern { DockedAtCorner = 'Docked at corner', DotLeader = 'Dot leader', DotNavigation = 'Dot navigation', + Drawer = 'Drawer', DropArea = 'Drop area', DropCap = 'Drop cap', Dropdown = 'Dropdown', diff --git a/client/pages/ExplorePage.tsx b/client/pages/ExplorePage.tsx index 328ec18..664a284 100644 --- a/client/pages/ExplorePage.tsx +++ b/client/pages/ExplorePage.tsx @@ -62,7 +62,7 @@ const ExplorePage = () => { textAlign: 'center', }} > - Here is the collection of 66 patterns + Here is the collection of 67 patterns
All covers you see in this page are made with CSS only. Inspect them! 🎉 @@ -93,6 +93,7 @@ const ExplorePage = () => { + diff --git a/client/pages/HomePage.tsx b/client/pages/HomePage.tsx index 4b176fb..7fe2d86 100644 --- a/client/pages/HomePage.tsx +++ b/client/pages/HomePage.tsx @@ -170,7 +170,7 @@ const HomePage = () => { marginBottom: '16px', }} > - 66 patterns + 67 patterns
= () => { + return ( + +
+
+
+
+
+
+
+
+ + ); +}; + +export default Cover; diff --git a/client/patterns/drawer/Details.tsx b/client/patterns/drawer/Details.tsx new file mode 100644 index 0000000..584cf27 --- /dev/null +++ b/client/patterns/drawer/Details.tsx @@ -0,0 +1,96 @@ +import React from 'react'; + +import DetailsLayout from '../../layouts/DetailsLayout'; +import Block from '../../placeholders/Block'; +import BrowserFrame from '../../placeholders/BrowserFrame'; + +const Details: React.FC<{}> = () => { + return ( + +
+
+ This pattern is also known as off-canvas. +
+ +
+
+ +
+
+ )} + source={` +
+ +
+ + +
+ ... +
+
+`} + /> +
+ + ); +}; + +export default Details; diff --git a/client/placeholders/Frame.tsx b/client/placeholders/Frame.tsx index e789bff..588872c 100644 --- a/client/placeholders/Frame.tsx +++ b/client/placeholders/Frame.tsx @@ -5,7 +5,7 @@ const Frame: React.FC<{}> = ({ children }) => {
https://csslayout.io/patterns/docked-at-corner https://csslayout.io/patterns/dot-leader https://csslayout.io/patterns/dot-navigation + https://csslayout.io/patterns/drawer https://csslayout.io/patterns/drop-area https://csslayout.io/patterns/drop-cap https://csslayout.io/patterns/dropdown