Skip to content

Commit

Permalink
add missing page metadata
Browse files Browse the repository at this point in the history
  • Loading branch information
aelew committed Feb 21, 2024
1 parent e684de9 commit dfc66d3
Show file tree
Hide file tree
Showing 5 changed files with 65 additions and 0 deletions.
13 changes: 13 additions & 0 deletions src/app/(tools)/(landing)/dns/page.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,18 @@
import type { Metadata } from 'next';
import { notFound } from 'next/navigation';

import { TOOLS } from '@/lib/resources/tools';
import DNSLookupForm from '../../(results)/(domain)/dns/form';

export function generateMetadata() {
const tool = TOOLS.find((tool) => tool.slug === 'dns');
if (!tool) notFound();
return {
title: tool.name,
description: tool.description
} satisfies Metadata;
}

export default function DNSLookupPage() {
return <DNSLookupForm />;
}
13 changes: 13 additions & 0 deletions src/app/(tools)/(landing)/email/page.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,18 @@
import { type Metadata } from 'next';
import { notFound } from 'next/navigation';

import { TOOLS } from '@/lib/resources/tools';
import EmailLookupForm from '../../(results)/email/form';

export function generateMetadata() {
const tool = TOOLS.find((tool) => tool.slug === 'email');
if (!tool) notFound();
return {
title: tool.name,
description: tool.description
} satisfies Metadata;
}

export default function EmailLookupPage() {
return <EmailLookupForm />;
}
13 changes: 13 additions & 0 deletions src/app/(tools)/(landing)/ip/page.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,18 @@
import type { Metadata } from 'next';
import { notFound } from 'next/navigation';

import { TOOLS } from '@/lib/resources/tools';
import { IPLookupForm } from '../../(results)/ip/form';

export function generateMetadata() {
const tool = TOOLS.find((tool) => tool.slug === 'ip');
if (!tool) notFound();
return {
title: tool.name,
description: tool.description
} satisfies Metadata;
}

export default function IPLookupPage() {
return <IPLookupForm showCurrentIPButton />;
}
13 changes: 13 additions & 0 deletions src/app/(tools)/(landing)/subdomain/page.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,18 @@
import type { Metadata } from 'next';
import { notFound } from 'next/navigation';

import { TOOLS } from '@/lib/resources/tools';
import SubdomainFinderForm from '../../(results)/(domain)/subdomain/form';

export function generateMetadata() {
const tool = TOOLS.find((tool) => tool.slug === 'subdomain');
if (!tool) notFound();
return {
title: tool.name,
description: tool.description
} satisfies Metadata;
}

export default function SubdomainFinderPage() {
return <SubdomainFinderForm />;
}
13 changes: 13 additions & 0 deletions src/app/(tools)/(landing)/whois/page.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,18 @@
import type { Metadata } from 'next';
import { notFound } from 'next/navigation';

import { TOOLS } from '@/lib/resources/tools';
import WhoisLookupForm from '../../(results)/(domain)/whois/form';

export function generateMetadata() {
const tool = TOOLS.find((tool) => tool.slug === 'whois');
if (!tool) notFound();
return {
title: tool.name,
description: tool.description
} satisfies Metadata;
}

export default function WhoisLookupPage() {
return <WhoisLookupForm />;
}

0 comments on commit dfc66d3

Please sign in to comment.