Skip to content

Commit 858d491

Browse files
authored
refactor: remove unused imports and producthunt badge (#174)
1 parent 6d34009 commit 858d491

File tree

1 file changed

+0
-19
lines changed

1 file changed

+0
-19
lines changed

apps/docs/components/landing/hero.tsx

Lines changed: 0 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
11
'use client';
22

33
import dynamic from 'next/dynamic';
4-
import Image from 'next/image';
5-
import { useTheme } from 'next-themes';
64
import DemoContainer from './demo';
75
import { SciFiButton } from './scifi-btn';
86
import { Spotlight } from './spotlight';
@@ -28,8 +26,6 @@ export default function Hero() {
2826
}
2927
};
3028

31-
const { resolvedTheme } = useTheme();
32-
const isDarkMode = resolvedTheme === 'dark';
3329

3430
return (
3531
<section className="relative flex min-h-[100svh] w-full flex-col items-center overflow-hidden">
@@ -39,21 +35,6 @@ export default function Hero() {
3935
<div className="grid grid-cols-1 items-center gap-8 pt-12 pb-6 sm:pt-16 sm:pb-8 lg:grid-cols-2 lg:gap-12 lg:pt-20 lg:pb-12 xl:gap-16">
4036
{/* Text Content */}
4137
<div className="order-2 flex flex-col items-center gap-6 text-center lg:order-1 lg:items-start lg:gap-8 lg:text-left">
42-
<div>
43-
<a
44-
className="block transition-transform hover:scale-105"
45-
href="https://www.producthunt.com/products/databuddy-analytics"
46-
rel="noopener noreferrer"
47-
target="_blank"
48-
>
49-
<Image
50-
alt="Databuddy Analytics on Product Hunt"
51-
height={40}
52-
src={`https://api.producthunt.com/widgets/embed-image/v1/featured.svg?post_id=1021633&theme=${isDarkMode ? 'dark' : 'light'}`}
53-
width={250}
54-
/>
55-
</a>
56-
</div>
5738
<div className="self-center lg:self-start">
5839
<div className="inline-flex items-center rounded-full border border-border bg-background/80 px-3 py-1 font-medium text-muted-foreground text-xs shadow backdrop-blur">
5940
<span>Rejected by</span>

0 commit comments

Comments
 (0)