diff --git a/app/(landing)/certs/page.tsx b/app/(landing)/certs/page.tsx index 00c9837..c4231d6 100644 --- a/app/(landing)/certs/page.tsx +++ b/app/(landing)/certs/page.tsx @@ -23,7 +23,7 @@ const CertsLandingPage: FC = () => {

Find certificate history for any domain

-
+
diff --git a/app/(landing)/map/page.tsx b/app/(landing)/map/page.tsx index e871b85..a551a1b 100644 --- a/app/(landing)/map/page.tsx +++ b/app/(landing)/map/page.tsx @@ -23,7 +23,7 @@ const MapLandingPage: FC = () => {

Run DNS lookups across multiple regions

-
+
diff --git a/app/(landing)/page.tsx b/app/(landing)/page.tsx index 52a015e..4ca0802 100644 --- a/app/(landing)/page.tsx +++ b/app/(landing)/page.tsx @@ -24,7 +24,7 @@ const MainLandingPage: FC = () => {

Get details about any Domain

-
+
diff --git a/app/(landing)/subdomains/page.tsx b/app/(landing)/subdomains/page.tsx index dc8a17f..29ddd16 100644 --- a/app/(landing)/subdomains/page.tsx +++ b/app/(landing)/subdomains/page.tsx @@ -23,7 +23,7 @@ const SubdomainsLandingPage: FC = () => {

Find hidden subdomains for any domain

-
+
diff --git a/app/(landing)/whois/page.tsx b/app/(landing)/whois/page.tsx index 1ee546e..f50147c 100644 --- a/app/(landing)/whois/page.tsx +++ b/app/(landing)/whois/page.tsx @@ -23,7 +23,7 @@ const WhoisLandingPage: FC = () => {

Find WHOIS information for any domain

-
+
diff --git a/app/_components/header.tsx b/app/_components/header.tsx index fd450f3..bd374eb 100644 --- a/app/_components/header.tsx +++ b/app/_components/header.tsx @@ -15,40 +15,41 @@ type HeaderProps = { export const Header: FC = ({ showSearch }) => (
-
-
- -
+
+
+ +
{showSearch && ( -
+
)} -
- - diff --git a/app/_components/logo.tsx b/app/_components/logo.tsx index 600ee63..3a2933e 100644 --- a/app/_components/logo.tsx +++ b/app/_components/logo.tsx @@ -3,11 +3,18 @@ import type { FC } from 'react'; import LogoDark from '@/assets/logo-dark.svg'; import LogoLight from '@/assets/logo-light.svg'; +import { cn } from '@/lib/utils'; -export const Logo: FC = () => ( +type LogoProps = { + textClassName?: string; +}; + +export const Logo: FC = ({ textClassName }) => ( - - - Domain Digger + + + + Domain Digger + ); diff --git a/app/_components/search-form.tsx b/app/_components/search-form.tsx index 6733578..973ab93 100644 --- a/app/_components/search-form.tsx +++ b/app/_components/search-form.tsx @@ -1,7 +1,7 @@ 'use client'; -import { useDebounce } from '@uidotdev/usehooks'; -import { Loader2Icon, SearchIcon } from 'lucide-react'; +import { useDebounce, useMeasure } from '@uidotdev/usehooks'; +import { SearchIcon } from 'lucide-react'; import { usePlausible } from 'next-plausible'; import { useParams, usePathname, useRouter } from 'next/navigation'; import { toASCII } from 'punycode'; @@ -18,7 +18,6 @@ import { import { useHotkeys } from 'react-hotkeys-hook'; import useSWRImmutable from 'swr/immutable'; -import { Button } from '@/components/ui/button'; import { Card } from '@/components/ui/card'; import { Input } from '@/components/ui/input'; @@ -140,6 +139,7 @@ export const SearchForm: FC = (props) => { const [suggestionsVisible, setSuggestionsVisible] = useState(false); const [ipDetailsOpen, setIpDetailsOpen] = useState(false); + const [measureRef, { width: inputWidth }] = useMeasure(); const inputRef = useRef(null); useHotkeys( isAppleDevice() ? 'meta+k' : 'ctrl+k', @@ -297,95 +297,87 @@ export const SearchForm: FC = (props) => { return ( <> -
-
- {domain === initialValue ? ( - // eslint-disable-next-line @next/next/no-img-element - - ) : ( - - )} - - { - setTimeout(() => { - setSuggestionsVisible(false); - }, 100); - }} - disabled={state !== FormStates.Initial} - autoFocus={props.autofocus} + + {domain === initialValue ? ( + // eslint-disable-next-line @next/next/no-img-element + - - - - {isAppleDevice() ? ( - <> - K - - ) : ( - 'ctrl+k' - )} - - - - {suggestionsVisible && suggestions && suggestions.length > 0 && ( - -
    - {suggestions.map((value, index) => ( -
  • handleSelectSuggestion(value)} - > - {/* eslint-disable-next-line @next/next/no-img-element */} - - {value} -
  • - ))} -
-
- )} -
- + autoFocus={props.autofocus} + /> + + + + {isAppleDevice() ? ( + <> + K + + ) : ( + 'ctrl+k' + )} + + + + {suggestionsVisible && suggestions && suggestions.length > 0 && ( + +
    + {suggestions.map((value, index) => ( +
  • handleSelectSuggestion(value)} + > + {/* eslint-disable-next-line @next/next/no-img-element */} + + {value} +
  • + ))} +
+
+ )}
{ diff --git a/app/lookup/[domain]/_components/results-tabs.tsx b/app/lookup/[domain]/_components/results-tabs.tsx index 7c1be61..b5682f3 100644 --- a/app/lookup/[domain]/_components/results-tabs.tsx +++ b/app/lookup/[domain]/_components/results-tabs.tsx @@ -68,7 +68,7 @@ export const ResultsTabs: FC = ({ domain }) => { ]); return ( -
+
    ( '[&::-webkit-datetime-edit-meridiem-field]:p-0', ], // Basic layout - 'relative block w-full appearance-none rounded-lg px-3.5 py-2.5 sm:px-3 sm:py-1.5', + 'relative block w-full appearance-none rounded-lg px-3 py-1.5', // Typography - 'text-base/6 text-zinc-950 placeholder:text-zinc-500 dark:text-white sm:text-sm/6', + 'text-sm/6 text-zinc-950 placeholder:text-zinc-500 dark:text-white', // Border 'border border-zinc-950/10 data-[hover]:border-zinc-950/20 dark:border-white/10 dark:data-[hover]:border-white/20', // Background color diff --git a/components/ui/select.tsx b/components/ui/select.tsx index 710ead6..23a3d48 100644 --- a/components/ui/select.tsx +++ b/components/ui/select.tsx @@ -29,8 +29,8 @@ const SelectTrigger = React.forwardRef<