Skip to content

Commit

Permalink
Product Hunt Badge added
Browse files Browse the repository at this point in the history
  • Loading branch information
iam-rohid committed May 12, 2022
1 parent c7ef397 commit 88a6340
Showing 1 changed file with 15 additions and 1 deletion.
16 changes: 15 additions & 1 deletion src/components/Header.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { FaGithub } from "react-icons/fa";
const Header = () => {
return (
<div className="w-full h-14 flex items-center px-4 gap-2">
<div className="w-full py-4 flex items-center px-4 gap-4">
<p className="text-gray-300">
Built by -{" "}
<a
Expand All @@ -23,8 +23,22 @@ const Header = () => {
>
<FaGithub className="text-2xl" />
</a>
<ProductHuntBadge />
</div>
);
};

export default Header;

export const ProductHuntBadge = () => (
<a
href="https://www.producthunt.com/posts/code-to-image-converter?utm_source=badge-featured&utm_medium=badge&utm_souce=badge-code&#0045;to&#0045;image&#0045;converter"
target="_blank"
>
<img
src="https://api.producthunt.com/widgets/embed-image/v1/featured.svg?post_id=346242&theme=dark"
alt="Code&#0032;to&#0032;Image&#0032;Converter - Convert&#0032;your&#0032;code&#0032;snippets&#0032;to&#0032;beautiful&#0032;images | Product Hunt"
className="h-12"
/>
</a>
);

0 comments on commit 88a6340

Please sign in to comment.