Remove PH banner

This commit is contained in:
Eric Allam
2022-06-09 12:39:02 +01:00
parent abd804ca4e
commit e37607b377
2 changed files with 2 additions and 27 deletions
@@ -1,23 +0,0 @@
import { Body } from "../Primitives/Body";
export function HomeProductHuntBanner() {
return (
<div className="flex items-center justify-center w-full px-6 py-3 bg-indigo-600">
<div className="flex items-center">
<Body className="mr-3 text-xl text-white">
We're live on Product Hunt! 👉
</Body>
<a
href="https://www.producthunt.com/posts/json-hero-chrome-extension?utm_source=badge-featured&utm_medium=badge&utm_souce=badge-json&#0045;hero&#0045;chrome&#0045;extension"
target="_blank"
>
<img
src="https://api.producthunt.com/widgets/embed-image/v1/featured.svg?post_id=348656&theme=light"
alt="JSON&#0032;Hero&#0032;Chrome&#0032;extension - A&#0032;beautiful&#0032;JSON&#0032;explorer&#0032;packed&#0032;with&#0032;features | Product Hunt"
className="h-14"
/>
</a>
</div>
</div>
);
}
+2 -4
View File
@@ -7,7 +7,6 @@ import { HomeInfoBoxSection } from "~/components/Home/HomeInfoBoxSection";
import { HomeSearchSection } from "~/components/Home/HomeSearchSection";
import { HomeFooter } from "~/components/Home/HomeFooter";
import { GithubBanner } from "~/components/Home/HomeGithubBanner";
import { HomeProductHuntBanner } from "~/components/Home/HomeProductHuntBanner";
import { HomeChromeExtensionPrompt } from "~/components/Home/HomeChromeExtensionPrompt";
import { LoaderFunction, useLoaderData } from "remix";
import userAgentParser from "ua-parser-js";
@@ -34,12 +33,11 @@ export default function Index() {
<div className="overflow-x-hidden">
<HomeHeader fixed={true} />
<HomeHeroSection />
{/* {userAgent.browser.name === "Chrome" ? (
{userAgent.browser.name === "Chrome" ? (
<HomeChromeExtensionPrompt />
) : (
<GithubBanner />
)} */}
<HomeProductHuntBanner />
)}
<HomeInfoBoxSection />
<HomeEdgeCasesSection />
<HomeSearchSection />