diff --git a/public/download/r3/toughbook-1.pdf b/public/download/toughbook-expense-report/file1.pdf similarity index 100% rename from public/download/r3/toughbook-1.pdf rename to public/download/toughbook-expense-report/file1.pdf diff --git a/src/app/affiliation/[shortName]/page.tsx b/src/app/affiliation/[shortName]/page.tsx new file mode 100644 index 0000000..05d02ae --- /dev/null +++ b/src/app/affiliation/[shortName]/page.tsx @@ -0,0 +1,53 @@ +import { affiliations } from '@/app/db/data' +import { notFound } from 'next/navigation' +import { Zilla_Slab } from 'next/font/google' +import { Fragment } from 'react' + +const zillaSlab = Zilla_Slab({ subsets: ['latin'], weight: ['500'] }) + +export default function Page({ + params, +}: Readonly<{ params: { shortName: string } }>) { + const { shortName } = params + const { name, short, image, description } = affiliations[shortName] + if (!name) { + notFound() + } + + const Description = () => { + return ( + <> + {description.split('[linebreak]').map((d, i) => ( + <> +