diff --git a/client/pages/ExplorePage.tsx b/client/pages/ExplorePage.tsx index 664a284..37586ef 100644 --- a/client/pages/ExplorePage.tsx +++ b/client/pages/ExplorePage.tsx @@ -10,6 +10,7 @@ import ProductHuntBadge from '../layouts/ProductHuntBadge'; const ExplorePage = () => { useDocumentTitle('CSS Layout ∙ Explore'); + const numPatterns = Object.keys(Pattern).length; return ( @@ -62,7 +63,7 @@ const ExplorePage = () => { textAlign: 'center', }} > - Here is the collection of 67 patterns + Here is the collection of {numPatterns} patterns
All covers you see in this page are made with CSS only. Inspect them! 🎉 diff --git a/client/pages/HomePage.tsx b/client/pages/HomePage.tsx index 7fe2d86..274c508 100644 --- a/client/pages/HomePage.tsx +++ b/client/pages/HomePage.tsx @@ -12,6 +12,7 @@ import MadeOf from './MadeOf'; const HomePage = () => { useDocumentTitle('CSS Layout'); + const numPatterns = Object.keys(Pattern).length; return ( @@ -170,7 +171,7 @@ const HomePage = () => { marginBottom: '16px', }} > - 67 patterns + {numPatterns} patterns