diff --git a/.gitignore b/.gitignore index c02125b..8dbad63 100644 --- a/.gitignore +++ b/.gitignore @@ -4,3 +4,4 @@ next.config.js .next postcss.config.js tailwind.config.js +.idea/ diff --git a/app/[member]/page.tsx b/app/[member]/page.tsx deleted file mode 100644 index 9901985..0000000 --- a/app/[member]/page.tsx +++ /dev/null @@ -1,29 +0,0 @@ -import { teamSparkles } from '../../list'; - -export default function Page({ params }: { params: { member: string } }) { - const member = teamSparkles.find((person) => person.slug === params.member); - - if (!member) return
This member does not exist 🤷‍♀️
; - - return ( -
-
-
-   >>>> This page is about {params.member} -
-
- -
-
-
- ); -} - -// eslint-disable-next-line unicorn/prevent-abbreviations -export async function generateStaticParams() { - return teamSparkles - .filter((person) => person.slug) - .map((person) => ({ - member: person.slug, - })); -} diff --git a/app/page.tsx b/app/page.tsx index cf5e598..7eaf628 100644 --- a/app/page.tsx +++ b/app/page.tsx @@ -14,8 +14,7 @@ export default function App() {
Team ✨
{teamSparkles.map((member, index) => ( - @@ -43,7 +42,7 @@ export default function App() { {member.title ?? 'Contributor'}
- + ))} diff --git a/list.ts b/list.ts index ade9712..4bb791b 100644 --- a/list.ts +++ b/list.ts @@ -25,11 +25,6 @@ export const teamSparkles: Person[] = [ avatar: '/team/jakob.webp', slug: 'jakob', }, - { - name: 'Elliot Lindberg', - title: 'Boeing-777 Pilot', - slug: 'elliot', - }, { name: 'Harry Bairstow', title: 'Distributed Systems Engineer', @@ -62,6 +57,11 @@ export const team2: Person[] = [ avatar: '/team/ana.webp', slug: 'ana', }, + { + name: 'Elliot Lindberg', + title: 'Boeing-777 Pilot', + slug: 'elliot', + }, ]; export const general_contributors: Person[] = [