-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #3 from spencer-rafada/spencer/add-routes
Added Routes and Metadata for each page
- Loading branch information
Showing
6 changed files
with
74 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
import { Metadata } from 'next' | ||
import React from 'react' | ||
|
||
export const metadata: Metadata = { | ||
title: 'About', | ||
description: 'About Page', | ||
} | ||
|
||
export default function About() { | ||
return ( | ||
<> | ||
<div>About Page</div> | ||
</> | ||
) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
import { Metadata } from 'next' | ||
import React from 'react' | ||
|
||
export const metadata: Metadata = { | ||
title: 'Contact', | ||
description: 'Contact Page', | ||
} | ||
|
||
export default function Contact() { | ||
return <div>Contact Page</div> | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
import { Metadata } from 'next' | ||
import React from 'react' | ||
|
||
export const metadata: Metadata = { | ||
title: 'Project', | ||
description: 'Project Page', | ||
} | ||
|
||
export default function Project() { | ||
return <div>Project Page</div> | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
import { Metadata, ResolvingMetadata } from 'next' | ||
import React from 'react' | ||
|
||
type MetadataProps = { | ||
params: { id: string } | ||
} | ||
|
||
export async function generateMetadata( | ||
{ params }: MetadataProps, | ||
parent: ResolvingMetadata | ||
): Promise<Metadata> { | ||
const id = params.id | ||
|
||
// Fetch Team Member Information Here | ||
|
||
return { | ||
title: `Team Member ${id}`, | ||
description: `Team Member ${id}`, | ||
} | ||
} | ||
|
||
export default function TeamMember({ params }: { params: { id: string } }) { | ||
return <div>TeamMember {params.id}</div> | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
import { Metadata } from 'next' | ||
import React from 'react' | ||
|
||
export const metadata: Metadata = { | ||
title: 'Team', | ||
description: 'Team Page', | ||
} | ||
|
||
export default function Team() { | ||
return <div>Team Page</div> | ||
} |