initial pass at media page
This commit is contained in:
parent
5ac22dff6c
commit
84d56cbeaa
11 changed files with 1224 additions and 58 deletions
30
pages/media.tsx
Normal file
30
pages/media.tsx
Normal file
|
@ -0,0 +1,30 @@
|
|||
import siteMetadata from '@/data/siteMetadata'
|
||||
import mediaData from '@/data/mediaData'
|
||||
import { PageSEO } from '@/components/SEO'
|
||||
import MediaItem from '@/components/MediaItem'
|
||||
|
||||
export default function Media() {
|
||||
return (
|
||||
<>
|
||||
<PageSEO title={`Media - ${siteMetadata.author}`} description={siteMetadata.description} />
|
||||
<div className="divide-y divide-gray-200 dark:divide-gray-700">
|
||||
<div className="space-y-2 pt-6 pb-8 md:space-y-5">
|
||||
<h1 className="text-3xl font-extrabold leading-9 tracking-tight text-gray-900 dark:text-gray-100 sm:text-4xl sm:leading-10 md:text-6xl md:leading-14">
|
||||
Media
|
||||
</h1>
|
||||
</div>
|
||||
<div className="container py-12">
|
||||
<div className="flex flex-wrap">
|
||||
{mediaData.length ? (
|
||||
mediaData.map((d) => (
|
||||
<MediaItem key={d.title} type={d.type} title={d.title} data={d.data} />
|
||||
))
|
||||
) : (
|
||||
<p className="pb-2">No media found.</p>
|
||||
)}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</>
|
||||
)
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue