Skip to content

Full Toolkit for Next-Level Domain Analysis

Revert "Promote DevHunt launch πŸš€"

Felix Wotschofsky61c810a19a10
diff --git a/README.md b/README.md
index 4335e81..293c8ef 100644
--- a/README.md
+++ b/README.md
@@ -1,6 +1,3 @@
-> **[We're live on DevHunt!](https://devhunt.org/tool/domain-digger) πŸš€** \
-> Join the conversation and help us reach the top of the leaderboard!
-
![Domain Digger](docs/logo.svg)
# πŸ” Domain Digger: Full Toolkit for Next-Level Domain Analysis
diff --git a/app/_components/devhunt-promo.tsx b/app/_components/devhunt-promo.tsx
deleted file mode 100644
index 15e4265..0000000
--- a/app/_components/devhunt-promo.tsx
+++ /dev/null
@@ -1,94 +0,0 @@
-'use client';
-
-import { useLocalStorage } from '@uidotdev/usehooks';
-import confetti from 'canvas-confetti';
-import { ExternalLinkIcon, XIcon } from 'lucide-react';
-import {
- type FC,
- type MouseEventHandler,
- useCallback,
- useEffect,
- useState,
-} from 'react';
-
-import { Alert, AlertDescription, AlertTitle } from '@/components/ui/alert';
-
-export const DevHuntPromo: FC = () => {
- const [confettiShown, setConfettiShown] = useLocalStorage(
- 'devhunt-confetti.shown',
- false
- );
- const [dismissed, setDismissed] = useState(false);
-
- const handleDismiss = useCallback<MouseEventHandler<SVGSVGElement>>(
- (event) => {
- event.preventDefault();
- setDismissed(true);
- },
- [setDismissed]
- );
-
- useEffect(() => {
- if (confettiShown) {
- return;
- }
-
- setTimeout(() => {
- confetti({
- particleCount: 200,
- spread: 50,
- startVelocity: 100,
- angle: 70,
- origin: { y: 0.95, x: 0.1 },
- });
- }, 2000);
- setTimeout(() => {
- confetti({
- particleCount: 200,
- spread: 50,
- startVelocity: 100,
- angle: 55,
- origin: { y: 0.95, x: 0.1 },
- });
- }, 2200);
-
- setConfettiShown(true);
- }, [confettiShown, setConfettiShown]);
-
- if (dismissed) {
- return null;
- }
-
- return (
- <a
- className="fixed bottom-6 left-6 max-w-[calc(100vw-3rem)]"
- href="https://devhunt.org/tool/domain-digger"
- target="_blank"
- >
- <Alert className="group relative flex cursor-pointer items-center gap-4 p-8">
- <span className="absolute right-3 top-3 hidden h-3 w-3 group-hover:hidden sm:flex">
- <span className="absolute inline-flex h-full w-full animate-ping rounded-full bg-green-500 opacity-75"></span>
- <span className="relative inline-flex h-3 w-3 rounded-full bg-green-500"></span>
- </span>
-
- <XIcon
- role="button"
- onClick={handleDismiss}
- className="absolute !left-[unset] !top-2 right-2 h-5 w-5 text-muted-foreground group-hover:block sm:hidden"
- />
-
- <span className="block !pl-0 text-4xl">πŸš€</span>
- <div>
- <AlertTitle>We&apos;re live on DevHunt!</AlertTitle>
- <AlertDescription>
- Join the conversation and help us reach the top of the leaderboard!{' '}
- <ExternalLinkIcon className="inline-block h-4 w-4 -translate-y-1" />
- </AlertDescription>
- </div>
- </Alert>
- </a>
- );
-};
-
-// TODO Remove once https://github.com/vercel/next.js/issues/60698 is fixed
-export default DevHuntPromo;
diff --git a/app/layout.tsx b/app/layout.tsx
index 7a5c138..6ef0614 100644
--- a/app/layout.tsx
+++ b/app/layout.tsx
@@ -1,6 +1,5 @@
import { SpeedInsights } from '@vercel/speed-insights/next';
import type { Viewport } from 'next';
-import dynamic from 'next/dynamic';
import type { FC, ReactNode } from 'react';
import { Toaster } from '@/components/ui/sonner';
@@ -10,10 +9,6 @@ import { Header } from './_components/header';
import './globals.css';
import { Providers } from './providers';
-const DevHuntPromo = dynamic(() => import('./_components/devhunt-promo'), {
- ssr: false,
-});
-
export const viewport: Viewport = {
width: 'device-width',
initialScale: 1,
@@ -51,7 +46,6 @@ const RootLayout: FC<RootLayoutProps> = ({ children }) => {
<Header />
<main className="w-full flex-1">{children}</main>
- <DevHuntPromo />
<Footer />
</div>
diff --git a/package.json b/package.json
index 963b85b..9ae8255 100644
--- a/package.json
+++ b/package.json
@@ -30,7 +30,6 @@
"@upstash/redis": "^1.28.4",
"@vercel/speed-insights": "^1.0.10",
"autoprefixer": "^10.4.18",
- "canvas-confetti": "^1.9.2",
"class-variance-authority": "^0.7.0",
"clsx": "^2.1.0",
"dataloader": "^2.2.2",
@@ -68,7 +67,6 @@
"devDependencies": {
"@svgr/webpack": "^8.1.0",
"@trivago/prettier-plugin-sort-imports": "^4.3.0",
- "@types/canvas-confetti": "^1.6.4",
"@types/dns-packet": "^5.6.5",
"@types/hyperscript": "^0.0.7",
"@types/leaflet": "^1.9.8",
diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml
index 0afbff2..d510469 100644
--- a/pnpm-lock.yaml
+++ b/pnpm-lock.yaml
@@ -50,9 +50,6 @@ dependencies:
autoprefixer:
specifier: ^10.4.18
version: 10.4.18([email protected])
- canvas-confetti:
- specifier: ^1.9.2
- version: 1.9.2
class-variance-authority:
specifier: ^0.7.0
version: 0.7.0
@@ -160,9 +157,6 @@ devDependencies:
'@trivago/prettier-plugin-sort-imports':
specifier: ^4.3.0
version: 4.3.0([email protected])
- '@types/canvas-confetti':
- specifier: ^1.6.4
- version: 1.6.4
'@types/dns-packet':
specifier: ^5.6.5
version: 5.6.5
@@ -3014,10 +3008,6 @@ packages:
resolution: {integrity: sha512-ZpboH7pCPPeyBWKf8c7TJswtCEQObFo3bOBYalm99NzZarATALYCo5OhbCa/n4RQyJyHfhkdx+hNrdL5ByFYDw==}
dev: false
- resolution: {integrity: sha512-fNyZ/Fdw/Y92X0vv7B+BD6ysHL4xVU5dJcgzgxLdGbn8O3PezZNIJpml44lKM0nsGur+o/6+NZbZeNTt00U1uA==}
- dev: true
-
resolution: {integrity: sha512-qXOC7XLOEe43ehtWJCMnQXvgcIpv6rPmQ1jXT98Ad8A3TB1Ue50jsCbSSSyuazScEuZ/Q026vHbrOTVkmwA+7Q==}
dependencies:
@@ -3755,10 +3745,6 @@ packages:
resolution: {integrity: sha512-j8mQRDziG94uoBfeFuqsJUNECW37DXpnvhcMJMdlH2u3MRkq1sAI0LJcXP1i/Py0KbSIC4UDj8YHPrTn5YsL+Q==}
- resolution: {integrity: sha512-6Xi7aHHzKwxZsem4mCKoqP6YwUG3HamaHHAlz1hTNQPCqXhARFpSXnkC9TWlahHY5CG6hSL5XexNjxK8irVErg==}
- dev: false
-
resolution: {integrity: sha512-13sOfMv2+DWduEU+/xbun3LScLoqN17nBeTLUsmDfKdoiC1fr0n9PU4guu4AhRcOVFk/sW8LyZWHuhWtQZiF+g==}
engines: {node: '>=4'}