diff --git a/client/constants/Pattern.ts b/client/constants/Pattern.ts index 58bb830..0ee4c23 100644 --- a/client/constants/Pattern.ts +++ b/client/constants/Pattern.ts @@ -19,6 +19,7 @@ enum Pattern { DropArea = 'Drop area', DropCap = 'Drop cap', Dropdown = 'Dropdown', + FeatureComparison = 'Feature comparison', FeatureList = 'Feature list', FixedAtCorner = 'Fixed at corner', FloatingLabel = 'Floating label', diff --git a/client/pages/ExplorePage.tsx b/client/pages/ExplorePage.tsx index 677bf17..db0689a 100644 --- a/client/pages/ExplorePage.tsx +++ b/client/pages/ExplorePage.tsx @@ -62,7 +62,7 @@ const ExplorePage = () => { textAlign: 'center', }} > - Here is the collection of 63 patterns + Here is the collection of 64 patterns
All covers you see in this page are made with CSS only. Inspect them! 🎉 @@ -77,6 +77,7 @@ const ExplorePage = () => {
+ @@ -142,6 +143,7 @@ const ExplorePage = () => { + @@ -151,7 +153,6 @@ const ExplorePage = () => { -
diff --git a/client/pages/HomePage.tsx b/client/pages/HomePage.tsx index 94c85fb..218443e 100644 --- a/client/pages/HomePage.tsx +++ b/client/pages/HomePage.tsx @@ -170,7 +170,7 @@ const HomePage = () => { marginBottom: '16px', }} > - 63 patterns + 64 patterns
= () => { + return ( + +
+
+
+ +
+
+ +
+
+ +
+
+
+
+ +
+
+
+ +
+
+
+
+ +
+
+ +
+
+
+
+ + ); +}; + +export default Cover; diff --git a/client/patterns/feature-comparison/Details.tsx b/client/patterns/feature-comparison/Details.tsx new file mode 100644 index 0000000..607430b --- /dev/null +++ b/client/patterns/feature-comparison/Details.tsx @@ -0,0 +1,175 @@ +import React from 'react'; + +import RelatedPatterns from '../../components/RelatedPatterns'; +import Pattern from '../../constants/Pattern'; +import DetailsLayout from '../../layouts/DetailsLayout'; +import Block from '../../placeholders/Block'; +import BrowserFrame from '../../placeholders/BrowserFrame'; +import Circle from '../../placeholders/Circle'; +import Rectangle from '../../placeholders/Rectangle'; + +const Details: React.FC<{}> = () => { + return ( + +
+ +
+
+
+ +
+
+ +
+
+ +
+
+ +
+
+ +
+
+ +
+
+ +
+
+ +
+
+ +
+
+
+ +
+
+ +
+
+ +
+
+ +
+
+
+ +
+
+ +
+
+ +
+
+
+
+
+ )} + source={` +
+ +
+ ... +
+ + +
+ + ... +
+ + + ... +
+ + +... +`} + /> +
+ + + + ); +}; + +export default Details; diff --git a/client/patterns/feature-list/Details.tsx b/client/patterns/feature-list/Details.tsx index 02f4094..0f271d0 100644 --- a/client/patterns/feature-list/Details.tsx +++ b/client/patterns/feature-list/Details.tsx @@ -1,5 +1,7 @@ import React from 'react'; +import RelatedPatterns from '../../components/RelatedPatterns'; +import Pattern from '../../constants/Pattern'; import DetailsLayout from '../../layouts/DetailsLayout'; import Block from '../../placeholders/Block'; import BrowserFrame from '../../placeholders/BrowserFrame'; @@ -70,6 +72,8 @@ const Details: React.FC<{}> = () => { `} />
+ + ); }; diff --git a/client/patterns/pricing-table/Details.tsx b/client/patterns/pricing-table/Details.tsx index 6c85d61..da4d633 100644 --- a/client/patterns/pricing-table/Details.tsx +++ b/client/patterns/pricing-table/Details.tsx @@ -1,6 +1,8 @@ import React from 'react'; import { Link } from 'react-router-dom'; +import RelatedPatterns from '../../components/RelatedPatterns'; +import Pattern from '../../constants/Pattern'; import DetailsLayout from '../../layouts/DetailsLayout'; import Block from '../../placeholders/Block'; import BrowserFrame from '../../placeholders/BrowserFrame'; @@ -141,6 +143,8 @@ const Details: React.FC<{}> = () => { `} />
+ +
); }; diff --git a/public/sitemap.xml b/public/sitemap.xml index 52da664..5f7d88a 100644 --- a/public/sitemap.xml +++ b/public/sitemap.xml @@ -25,6 +25,7 @@ https://csslayout.io/patterns/drop-area https://csslayout.io/patterns/drop-cap https://csslayout.io/patterns/dropdown + https://csslayout.io/patterns/feature-comparison https://csslayout.io/patterns/feature-list https://csslayout.io/patterns/fixed-at-corner https://csslayout.io/patterns/floating-label