Skip to content

Commit 9d3d609

Browse files
authored
Merge pull request #202 from husamql3/claude/remove-product-hunt-header-YKGcB
chore: remove Product Hunt header banner and README badge
2 parents 9262921 + 77cc144 commit 9d3d609

2 files changed

Lines changed: 0 additions & 39 deletions

File tree

README.md

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -34,10 +34,6 @@ A modern, universal (pgAdmin alternative) database management studio for any dat
3434

3535
<br>
3636

37-
<a href="https://www.producthunt.com/products/dbstudio-sh/launches/dbstudio-sh?embed=true&amp;utm_source=badge-featured&amp;utm_medium=badge&amp;utm_campaign=badge-dbstudio-sh" target="_blank" rel="noopener noreferrer"><img alt="dbstudio.sh - A modern pgAdmin alternative that works with every database | Product Hunt" width="180" height="40" src="https://api.producthunt.com/widgets/embed-image/v1/featured.svg?post_id=1056391&amp;theme=light&amp;t=1777406433935"></a>
38-
39-
<br>
40-
4137
<img src="assets/screenshot.png" alt="DB Studio screenshot" width="1000" />
4238
</div>
4339

www/src/routes/(main)/_pathlessLayout.tsx

Lines changed: 0 additions & 35 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,4 @@
11
import { createFileRoute, Outlet } from "@tanstack/react-router";
2-
import { RocketIcon, XIcon } from "lucide-react";
3-
import { useState } from "react";
42
import { Footer } from "@/components/footer";
53
import { Header } from "@/components/header";
64
import { getStarsCount } from "@/utils/get-stars-count";
@@ -13,43 +11,10 @@ export const Route = createFileRoute("/(main)/_pathlessLayout")({
1311
},
1412
});
1513

16-
function ProductHuntBanner() {
17-
const [dismissed, setDismissed] = useState(false);
18-
19-
if (dismissed) return null;
20-
21-
return (
22-
<div className="w-full bg-[#4B70FF] text-white text-sm flex items-center justify-center gap-3 px-4 py-2.5 relative">
23-
<RocketIcon className="size-4 shrink-0" />
24-
<span>
25-
We&apos;re live on Product Hunt! If you&apos;re enjoying db-studio, support us with an
26-
upvote.
27-
</span>
28-
<a
29-
href="https://www.producthunt.com/products/dbstudio-sh/launches/dbstudio-sh"
30-
target="_blank"
31-
rel="noopener noreferrer"
32-
className="shrink-0 rounded border border-white/60 px-2.5 py-0.5 text-xs font-medium hover:bg-white/10 transition-colors"
33-
>
34-
Upvote us!
35-
</a>
36-
<button
37-
type="button"
38-
onClick={() => setDismissed(true)}
39-
className="absolute right-3 top-1/2 -translate-y-1/2 p-1 hover:bg-white/10 rounded transition-colors"
40-
aria-label="Dismiss banner"
41-
>
42-
<XIcon className="size-3.5" />
43-
</button>
44-
</div>
45-
);
46-
}
47-
4814
function RouteComponent() {
4915
const { stars } = Route.useLoaderData();
5016
return (
5117
<main className="relative min-h-dvh w-full flex flex-col h-full z-10">
52-
<ProductHuntBanner />
5318
<div className="px-4 md:px-0 flex flex-col flex-1">
5419
<Header stars={stars} />
5520
<Outlet />

0 commit comments

Comments
 (0)