diff --git a/README.md b/README.md index 95120c7..23c0a08 100644 --- a/README.md +++ b/README.md @@ -1,3 +1,5 @@ +[![Vote for me on ProductHunt](https://api.producthunt.com/widgets/embed-image/v1/featured.svg?post_id=176424&theme=light)](https://www.producthunt.com/posts/css-layout?utm_source=badge-featured&utm_medium=badge&utm_souce=badge-css-layout) + # CSS Layout A collection of popular layouts and patterns made with CSS: diff --git a/client/layouts/DetailsLayout.tsx b/client/layouts/DetailsLayout.tsx index 3fcd9dd..2b83ad1 100644 --- a/client/layouts/DetailsLayout.tsx +++ b/client/layouts/DetailsLayout.tsx @@ -2,7 +2,8 @@ import React from 'react'; import { Link } from 'react-router-dom'; import useDocumentTitle from '../hooks/useDocumentTitle'; -import Layout from './Layout'; +import Footer from './Footer'; +import ProductHuntBadge from './ProductHuntBadge'; interface DetailsLayoutProps { title: string; @@ -12,7 +13,10 @@ const DetailsLayout: React.FC = ({ title, children }) => { useDocumentTitle(`CSS Layout ∙ ${title}`); return ( - +
+
+ +
= ({ title, children }) => { {children}
- +
+
); }; diff --git a/client/layouts/ProductHuntBadge.tsx b/client/layouts/ProductHuntBadge.tsx new file mode 100644 index 0000000..173754f --- /dev/null +++ b/client/layouts/ProductHuntBadge.tsx @@ -0,0 +1,21 @@ +import React from 'react'; + +const ProductHuntBadge: React.FC<{}> = () => { + return ( + + CSS Layout - Most popular layouts and patterns that can be built with CSS | Product Hunt Embed + + ); +}; + +export default ProductHuntBadge; diff --git a/client/pages/ExplorePage.tsx b/client/pages/ExplorePage.tsx index c2d7918..e49d938 100644 --- a/client/pages/ExplorePage.tsx +++ b/client/pages/ExplorePage.tsx @@ -6,6 +6,7 @@ import Heading from '../components/Heading'; import Pattern from '../constants/Pattern'; import useDocumentTitle from '../hooks/useDocumentTitle'; import Layout from '../layouts/Layout'; +import ProductHuntBadge from '../layouts/ProductHuntBadge'; const ExplorePage = () => { useDocumentTitle('CSS Layout ∙ Explore'); @@ -67,6 +68,10 @@ const ExplorePage = () => { 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 486f0a7..57f6729 100644 --- a/client/pages/HomePage.tsx +++ b/client/pages/HomePage.tsx @@ -7,6 +7,7 @@ import CoverCard from '../components/CoverCard'; import Pattern from '../constants/Pattern'; import useDocumentTitle from '../hooks/useDocumentTitle'; import Layout from '../layouts/Layout'; +import ProductHuntBadge from '../layouts/ProductHuntBadge'; import MadeOf from './MadeOf'; const HomePage = () => { @@ -76,6 +77,10 @@ const HomePage = () => { +
+ +
+