diff --git a/src/app/document/page.tsx b/src/app/document/page.tsx new file mode 100644 index 0000000..2423d49 --- /dev/null +++ b/src/app/document/page.tsx @@ -0,0 +1,46 @@ +import { documents } from '@/app/db/data' +import { notFound } from 'next/navigation' +import { Zilla_Slab } from 'next/font/google' +import { Fragment } from 'react' +import DocumentCard from '../components/DocumentCard' + +const zillaSlab = Zilla_Slab({ subsets: ['latin'], weight: ['500'] }) + +const DocumentCardWrapper = ({ + params, +}: Readonly<{ params: { shortName: string } }>) => { + const { shortName } = params + const doc = documents[shortName] + const href = `/document/view/${shortName}` + if (!doc) { + notFound() + } + + return ( + + ) +} + +const Page = () => { + return ( +
+

+ Documents +

+
+ {Object.keys(documents).map((documentShortName) => { + return ( + + + + ) + })} +
+
+ ) +} + +export default Page