From 83d81f3340ccd0d57573718f5f51fa92267bf84f Mon Sep 17 00:00:00 2001 From: Team 1280 Programming Date: Tue, 20 Feb 2024 15:45:23 -0800 Subject: [PATCH] fix: make all documents the same height in gallery view --- src/app/document/page.tsx | 34 ++++++++++++++++++++++++++++++++-- 1 file changed, 32 insertions(+), 2 deletions(-) diff --git a/src/app/document/page.tsx b/src/app/document/page.tsx index b4a9362..ae7098f 100644 --- a/src/app/document/page.tsx +++ b/src/app/document/page.tsx @@ -2,7 +2,11 @@ import { documents } from '@/app/db/data' import { Zilla_Slab } from 'next/font/google' import { notFound } from 'next/navigation' import { Fragment } from 'react' -import DocumentCard from '../components/DocumentCard' +import Link from 'next/link' +import cardEffects from '@/app/styles/cardEffects.module.css' +import { Authors, Topics } from '../components/DataDisplay' +import { epoch2datestring } from '../utils/epoch2datestring' +import { ItemBadge, Status } from '../components/Badges' const zillaSlab = Zilla_Slab({ subsets: ['latin'], weight: ['500'] }) @@ -16,7 +20,33 @@ const DocumentCardWrapper = ({ notFound() } - return + const { manifest, abstract } = doc + const { title, authors, topics, dates, status, type } = manifest + return ( + + + + ) } const getDocumentDate = (id: string) => {