From ba1469c7ef7e3168333473aada140833b4cfc808 Mon Sep 17 00:00:00 2001 From: aelew <118043566+aelew@users.noreply.github.com> Date: Tue, 6 Feb 2024 11:06:20 -0800 Subject: [PATCH] add spaceship ad --- README.md | 19 ++-- next.config.js | 1 + .../(domain)/_components/domain-header.tsx | 1 - .../_components/domain-not-registered.tsx | 40 +++++++- .../(tools)/(domain)/whois/[domain]/page.tsx | 1 - src/components/ui/dropdown-menu.tsx | 98 +++++++++---------- src/styles/globals.css | 2 +- 7 files changed, 96 insertions(+), 66 deletions(-) diff --git a/README.md b/README.md index 209efa7..d9461f8 100644 --- a/README.md +++ b/README.md @@ -2,19 +2,18 @@ The cyber swiss army knife of lookup tools. Research information on domains, IP addresses, email addresses, phone numbers, and more. -Demo: [lookup.tools](https://lookup.tools) +Check out the hosted version here: [lookup.tools](https://lookup.tools) -> [!NOTE] -> lookup.tools is currently a work in progress. If you have any feedback or suggestions, feel free to open an issue or pull request! +## Built with -## Tech stack +- [Next.js](https://nextjs.org): The React framework for the web +- [tRPC](https://trpc.io): End-to-end typesafe APIs +- [create-t3-app](https://create.t3.gg): The best way to start a full-stack, typesafe Next.js app +- [Tailwind CSS](https://tailwindcss.com): A utility-first CSS framework +- [shadcn/ui](https://ui.shadcn.com): Beautifully designed components +- [Pigeon Maps](https://pigeon-maps.js.org): Maps without external dependencies -- Starter: [create-t3-app](https://create.t3.gg) -- Framework: [Next.js](https://nextjs.org) -- CSS: [Tailwind CSS](https://tailwindcss.com) -- Components: [shadcn/ui](https://ui.shadcn.com) -- Backend: [tRPC](https://trpc.io) -- Maps: [Pigeon Maps](https://pigeon-maps.js.org) + ## Development diff --git a/next.config.js b/next.config.js index 4b1a82e..fbee259 100644 --- a/next.config.js +++ b/next.config.js @@ -15,6 +15,7 @@ const config = { }, images: { remotePatterns: [ + { protocol: 'https', hostname: 'a.impactradius-go.com' }, { protocol: 'https', hostname: 'favicon.victr.me' }, { protocol: 'https', hostname: 'flagsapi.com' } ] diff --git a/src/app/(tools)/(domain)/_components/domain-header.tsx b/src/app/(tools)/(domain)/_components/domain-header.tsx index 02aadf9..97b3ffc 100644 --- a/src/app/(tools)/(domain)/_components/domain-header.tsx +++ b/src/app/(tools)/(domain)/_components/domain-header.tsx @@ -24,7 +24,6 @@ export function DomainHeader({
- Looks like {domain} hasn't - been registered yet. Click the button below to purchase it! + Looks like the domain {domain}{' '} + hasn't been registered yet.
- + {env.NEXT_PUBLIC_IS_MAIN_INSTANCE === '1' && ( + <> + , React.ComponentPropsWithoutRef & { - inset?: boolean + inset?: boolean; } >(({ className, inset, children, ...props }, ref) => ( -)) +)); DropdownMenuSubTrigger.displayName = - DropdownMenuPrimitive.SubTrigger.displayName + DropdownMenuPrimitive.SubTrigger.displayName; const DropdownMenuSubContent = React.forwardRef< React.ElementRef, @@ -51,14 +51,14 @@ const DropdownMenuSubContent = React.forwardRef< -)) +)); DropdownMenuSubContent.displayName = - DropdownMenuPrimitive.SubContent.displayName + DropdownMenuPrimitive.SubContent.displayName; const DropdownMenuContent = React.forwardRef< React.ElementRef, @@ -69,33 +69,33 @@ const DropdownMenuContent = React.forwardRef< ref={ref} sideOffset={sideOffset} className={cn( - "z-50 min-w-[8rem] overflow-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-md", - "data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2", + 'z-50 min-w-[8rem] overflow-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-md', + 'data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2', className )} {...props} /> -)) -DropdownMenuContent.displayName = DropdownMenuPrimitive.Content.displayName +)); +DropdownMenuContent.displayName = DropdownMenuPrimitive.Content.displayName; const DropdownMenuItem = React.forwardRef< React.ElementRef, React.ComponentPropsWithoutRef & { - inset?: boolean + inset?: boolean; } >(({ className, inset, ...props }, ref) => ( -)) -DropdownMenuItem.displayName = DropdownMenuPrimitive.Item.displayName +)); +DropdownMenuItem.displayName = DropdownMenuPrimitive.Item.displayName; const DropdownMenuCheckboxItem = React.forwardRef< React.ElementRef, @@ -104,7 +104,7 @@ const DropdownMenuCheckboxItem = React.forwardRef< {children} -)) +)); DropdownMenuCheckboxItem.displayName = - DropdownMenuPrimitive.CheckboxItem.displayName + DropdownMenuPrimitive.CheckboxItem.displayName; const DropdownMenuRadioItem = React.forwardRef< React.ElementRef, @@ -128,7 +128,7 @@ const DropdownMenuRadioItem = React.forwardRef< {children} -)) -DropdownMenuRadioItem.displayName = DropdownMenuPrimitive.RadioItem.displayName +)); +DropdownMenuRadioItem.displayName = DropdownMenuPrimitive.RadioItem.displayName; const DropdownMenuLabel = React.forwardRef< React.ElementRef, React.ComponentPropsWithoutRef & { - inset?: boolean + inset?: boolean; } >(({ className, inset, ...props }, ref) => ( -)) -DropdownMenuLabel.displayName = DropdownMenuPrimitive.Label.displayName +)); +DropdownMenuLabel.displayName = DropdownMenuPrimitive.Label.displayName; const DropdownMenuSeparator = React.forwardRef< React.ElementRef, @@ -167,11 +167,11 @@ const DropdownMenuSeparator = React.forwardRef< >(({ className, ...props }, ref) => ( -)) -DropdownMenuSeparator.displayName = DropdownMenuPrimitive.Separator.displayName +)); +DropdownMenuSeparator.displayName = DropdownMenuPrimitive.Separator.displayName; const DropdownMenuShortcut = ({ className, @@ -179,12 +179,12 @@ const DropdownMenuShortcut = ({ }: React.HTMLAttributes) => { return ( - ) -} -DropdownMenuShortcut.displayName = "DropdownMenuShortcut" + ); +}; +DropdownMenuShortcut.displayName = 'DropdownMenuShortcut'; export { DropdownMenu, @@ -201,5 +201,5 @@ export { DropdownMenuSub, DropdownMenuSubContent, DropdownMenuSubTrigger, - DropdownMenuRadioGroup, -} + DropdownMenuRadioGroup +}; diff --git a/src/styles/globals.css b/src/styles/globals.css index 8a09b7d..0ece66d 100644 --- a/src/styles/globals.css +++ b/src/styles/globals.css @@ -57,7 +57,7 @@ --accent: 240 3.7% 15.9%; --accent-foreground: 0 0% 98%; - --destructive: 0 62.8% 30.6%; + --destructive: 0 84.2% 60.2%; --destructive-foreground: 0 0% 98%; --border: 240 3.7% 15.9%;