Full Toolkit for Next-Level Domain Analysis
Rework landing page ✨
Felix Wotschofskydf101bd1b892
diff --git a/app/lookup/[domain]/layout.tsx b/app/lookup/[domain]/layout.tsxindex 41f344f..931f523 100644--- a/app/lookup/[domain]/layout.tsx+++ b/app/lookup/[domain]/layout.tsx@@ -40,7 +40,11 @@ const LookupLayout: FC<LookupLayoutProps> = ({return (<><div className="container mb-8 max-w-xl">- <SearchForm initialValue={domain} autofocus={false} />+ <SearchForm+ textAlignment="center"+ initialValue={domain}+ autofocus={false}+ /></div><div className="container">diff --git a/app/page.tsx b/app/page.tsxindex f6b3eed..d7b9413 100644--- a/app/page.tsx+++ b/app/page.tsx@@ -1,6 +1,5 @@import Link from 'next/link';--import { Card } from '@/components/ui/card';+import Balancer from 'react-wrap-balancer';import SearchForm from '@/components/SearchForm';@@ -18,51 +17,162 @@ const EXAMPLE_DOMAINS = [const Home = () => {return (- <>- <Card className="mx-auto my-16 max-w-lg p-6">- <h1 className="mb-5 text-center text-xl font-semibold tracking-tight sm:text-2xl">- Get details about any Domain- </h1>+ <div className="container">+ <div className="flex min-h-[80vh] flex-col justify-center gap-36 py-24 lg:w-3/4 xl:w-1/2">+ <div>+ <h1 className="mb-16 text-2xl font-semibold tracking-tight sm:text-5xl">+ Get details about any Domain+ </h1>+ <SearchForm textAlignment="left" autofocus={true} />+ </div>- <SearchForm autofocus={true} />+ <div className="max-w-xl">+ <h2 className="mb-5 text-xl font-semibold tracking-tight sm:text-2xl">+ Or start with some examples+ </h2>- <div className="mt-6 flex flex-wrap justify-center gap-x-2 gap-y-1 text-sm text-muted-foreground">- {EXAMPLE_DOMAINS.map((domain) => (- <Link- key={domain}- className="underline decoration-dotted underline-offset-4"- href={`/lookup/${domain}`}- >- {domain}- </Link>- ))}+ <div className="mt-6 text-sm leading-7 text-muted-foreground">+ <Balancer>+ {EXAMPLE_DOMAINS.map((domain) => (+ <>+ <Link+ key={domain}+ className="underline decoration-dotted underline-offset-4"+ href={`/lookup/${domain}`}+ >+ {domain}+ </Link>+ <span className="whitespace-pre-wrap">{' '}</span>+ </>+ ))}+ </Balancer>+ </div></div>- </Card>+ </div>- <div className="mx-auto my-16 max-w-lg p-6">- <h2 className="mb-5 text-center text-xl font-semibold tracking-tight sm:text-2xl">- About Domain Digger+ <div>+ <h2 className="mb-6 text-3xl font-bold">+ Domain Digger: The Essential Domain Information Tool</h2>- <p className="mb-5 mt-2 text-center text-sm text-muted-foreground">- Domain Digger is the easy but incredibly powerful tool for looking up- and quickly inspecting DNS records, WHOIS data, SSL/TLS certificate- history and other domain related data. No installation required!- </p>- <p className="mb-5 mt-2 text-center text-sm text-muted-foreground">- Domain Digger is entirely free and{' '}- <a- className="underline decoration-dotted underline-offset-4"- href="https://github.com/wotschofsky/domain-digger"- target="_blank"- rel="noopener"- >- open source- </a>- . Any contributions are welcome!- </p>+ <div className="relative mb-24 flex flex-col before:absolute before:bottom-0 before:left-5 before:top-0 before:w-0.5 before:bg-muted-foreground">+ <div className="relative mb-24 gap-4">+ <span className="absolute left-0 flex h-10 w-10 -translate-y-2 transform items-center justify-center rounded-full border-2 border-muted-foreground bg-background text-lg font-bold text-muted-foreground shadow-md shadow-background">+ 1+ </span>+ <div className="pl-14">+ <h3 className="mb-2 text-xl font-semibold">+ A Comprehensive, Web-Based DNS Client+ </h3>+ <p>+ Domain Digger is an advanced, web-based tool designed to provide+ detailed insights into domain-related data. It serves as a+ versatile DNS client, offering functionalities similar to+ command-line tools like dig and nslookup, but with the added+ convenience of a user-friendly web interface. This tool is+ indispensable for anyone needing in-depth information about+ domain names, making it a valuable resource for digital+ marketers, SEO experts, and web developers.+ </p>+ </div>+ </div>++ <div className="relative mb-24 gap-4">+ <span className="absolute left-0 flex h-10 w-10 -translate-y-2 transform items-center justify-center rounded-full border-2 border-muted-foreground bg-background text-lg font-bold text-muted-foreground shadow-md shadow-background">+ 2+ </span>+ <div className="pl-14">+ <h3 className="mb-2 text-xl font-semibold">+ Efficient and Accurate DNS Record Analysis+ </h3>+ <p>+ Our tool excels in delivering an extensive overview of DNS+ records for any given domain name. It's designed to present+ all relevant DNS records of a website in a clear,+ easy-to-understand format. Unlike traditional tools that may+ cache DNS responses, Domain Digger ensures the most current+ information by querying DNS servers for fresh records.+ </p>+ </div>+ </div>++ <div className="relative mb-24 gap-4">+ <span className="absolute left-0 flex h-10 w-10 -translate-y-2 transform items-center justify-center rounded-full border-2 border-muted-foreground bg-background text-lg font-bold text-muted-foreground shadow-md shadow-background">+ 3+ </span>+ <div className="pl-14">+ <h3 className="mb-2 text-xl font-semibold">+ Simplified Process, Enhanced Capabilities+ </h3>+ <p>+ Using Domain Digger is straightforward. Simply enter a domain+ name, and you're instantly taken to a comprehensive+ overview of its DNS records. Behind the scenes, our tool queries+ a DNS server without caching results, ensuring you receive the+ most up-to-date information.+ </p>+ </div>+ </div>++ <div className="relative mb-24 gap-4">+ <span className="absolute left-0 flex h-10 w-10 -translate-y-2 transform items-center justify-center rounded-full border-2 border-muted-foreground bg-background text-lg font-bold text-muted-foreground shadow-md shadow-background">+ 4+ </span>+ <div className="pl-14">+ <h3 className="mb-2 text-xl font-semibold">+ Choice of DNS Servers and Record Types+ </h3>+ <p>+ Domain Digger offers the flexibility to select from a wide range+ of DNS servers, including popular public DNS servers,+ authoritative servers for the domain in question, and local+ servers worldwide. By default, it displays standard records like+ A, AAAA, CNAME, TXT, NS, MX, and SOA, but users can also opt to+ view additional types.+ </p>+ </div>+ </div>++ <div className="relative mb-24 gap-4">+ <span className="absolute left-0 flex h-10 w-10 -translate-y-2 transform items-center justify-center rounded-full border-2 border-muted-foreground bg-background text-lg font-bold text-muted-foreground shadow-md shadow-background">+ 5+ </span>+ <div className="pl-14">+ <h3 className="mb-2 text-xl font-semibold">+ Extensive Support for Active DNS Record Types+ </h3>+ <p>+ Our platform supports a broad spectrum of DNS record types known+ to be in active use, including but not limited to: A and AAAA+ for IP addresses, CNAME for canonical names, MX for mail+ exchanges, NS for name servers, SOA for start of authority, SRV+ for service locators, TXT for human-readable text, and many+ more.+ </p>+ </div>+ </div>++ <div className="relative gap-4">+ <span className="absolute left-0 flex h-10 w-10 -translate-y-2 transform items-center justify-center rounded-full border-2 border-muted-foreground bg-background text-lg font-bold text-muted-foreground shadow-md shadow-background">+ 6+ </span>+ <div className="pl-14">+ <h3 className="text-xl font-semibold">+ Practical Applications and Use Cases+ </h3>+ <p>+ Domain Digger is useful in various scenarios, such as verifying+ the correct configuration of DNS records for your domain or+ monitoring the propagation of DNS record changes across the+ domain name system. Its ability to display multiple record types+ simultaneously and the option to share results make it superior+ to traditional command-line interfaces for DNS lookup tasks.+ </p>+ </div>+ </div>+ </div></div>- </>+ </div>);};diff --git a/components/SearchForm.tsx b/components/SearchForm.tsxindex 58a2aea..7a7f62e 100644--- a/components/SearchForm.tsx+++ b/components/SearchForm.tsx@@ -9,6 +9,8 @@ import { ChangeEvent, FormEvent, useEffect, useState } from 'react';import { Button } from '@/components/ui/button';import { Input } from '@/components/ui/input';+import { cn } from '@/lib/utils';+enum FormStates {Initial,Submitting,@@ -16,6 +18,7 @@ enum FormStates {}type SearchFormProps = {+ textAlignment: 'left' | 'center';initialValue?: string;autofocus?: boolean;};@@ -96,11 +99,19 @@ const SearchForm = (props: SearchFormProps) => {</form>{error ? (- <p className="mt-2 text-center text-sm text-red-600">- An error occured! Please check your input or try again later.+ <p+ className={cn('mt-2 text-sm text-red-600', {+ 'text-center': props.textAlignment === 'center',+ })}+ >+ An error occurred! Please check your input or try again later.</p>) : (- <p className="mt-2 text-center text-sm text-muted-foreground">+ <p+ className={cn('mt-2 text-sm text-muted-foreground', {+ 'text-center': props.textAlignment === 'center',+ })}+ >It can be anything! An apex, subdomain, or even a URL.</p>)}diff --git a/components/ui/card.tsx b/components/ui/card.tsxdeleted file mode 100644index 67aaa31..0000000--- a/components/ui/card.tsx+++ /dev/null@@ -1,86 +0,0 @@-import * as React from 'react';--import { cn } from '@/lib/utils';--const Card = React.forwardRef<- HTMLDivElement,- React.HTMLAttributes<HTMLDivElement>->(({ className, ...props }, ref) => (- <div- ref={ref}- className={cn(- 'rounded-lg border bg-card text-card-foreground shadow-sm',- className- )}- {...props}- />-));-Card.displayName = 'Card';--const CardHeader = React.forwardRef<- HTMLDivElement,- React.HTMLAttributes<HTMLDivElement>->(({ className, ...props }, ref) => (- <div- ref={ref}- className={cn('flex flex-col space-y-1.5 p-6', className)}- {...props}- />-));-CardHeader.displayName = 'CardHeader';--const CardTitle = React.forwardRef<- HTMLParagraphElement,- React.HTMLAttributes<HTMLHeadingElement>->(({ className, ...props }, ref) => (- <h3- ref={ref}- className={cn(- 'text-lg font-semibold leading-none tracking-tight',- className- )}- {...props}- />-));-CardTitle.displayName = 'CardTitle';--const CardDescription = React.forwardRef<- HTMLParagraphElement,- React.HTMLAttributes<HTMLParagraphElement>->(({ className, ...props }, ref) => (- <p- ref={ref}- className={cn('text-sm text-muted-foreground', className)}- {...props}- />-));-CardDescription.displayName = 'CardDescription';--const CardContent = React.forwardRef<- HTMLDivElement,- React.HTMLAttributes<HTMLDivElement>->(({ className, ...props }, ref) => (- <div ref={ref} className={cn('p-6 pt-0', className)} {...props} />-));-CardContent.displayName = 'CardContent';--const CardFooter = React.forwardRef<- HTMLDivElement,- React.HTMLAttributes<HTMLDivElement>->(({ className, ...props }, ref) => (- <div- ref={ref}- className={cn(' flex items-center p-6 pt-0', className)}- {...props}- />-));-CardFooter.displayName = 'CardFooter';--export {- Card,- CardHeader,- CardFooter,- CardTitle,- CardDescription,- CardContent,-};diff --git a/package.json b/package.jsonindex b82bf7a..ba53a1e 100644--- a/package.json+++ b/package.json@@ -44,6 +44,7 @@"react-icons": "^4.12.0","react-leaflet": "^4.2.1","react-string-replace": "^1.1.1",+ "react-wrap-balancer": "^1.1.0","swr": "^2.2.4","tailwind-merge": "^2.1.0","tailwindcss": "^3.3.6",diff --git a/pnpm-lock.yaml b/pnpm-lock.yamlindex 81c46ef..7d98664 100644--- a/pnpm-lock.yaml+++ b/pnpm-lock.yaml@@ -95,6 +95,9 @@ dependencies:react-string-replace:specifier: ^1.1.1version: 1.1.1+ react-wrap-balancer:+ specifier: ^1.1.0+ version: 1.1.0([email protected])swr:specifier: ^2.2.4version: 2.2.4([email protected])@@ -4838,6 +4841,14 @@ packages:tslib: 2.6.2dev: false+ resolution: {integrity: sha512-EhF3jOZm5Fjx+Cx41e423qOv2c2aOvXAtym2OHqrGeMUnwERIyNsRBgnfT3plB170JmuYvts8K2KSPEIerKr5A==}+ peerDependencies:+ react: '>=16.8.0 || ^17.0.0 || ^18'+ dependencies:+ react: 18.2.0+ dev: false+resolution: {integrity: sha512-/3IjMdb2L9QbBdWiW5e3P2/npwMBaU9mHCSCUzNln0ZCYbcfTsGbTJrU/kGemdH2IWmB2ioZ+zkxtmq6g09fGQ==}engines: {node: '>=0.10.0'}