Skip to content

Commit 7b378fa

Browse files
author
brittneypostma
committed
padding issue
1 parent b896842 commit 7b378fa

1 file changed

Lines changed: 15 additions & 6 deletions

File tree

‎frontend/main/src/components/ScheduleCards.tsx‎

Lines changed: 15 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -13,11 +13,11 @@ export default function ScheduleCards({
1313
return (
1414
<>
1515
{posts && posts.length > 0 ? (
16-
<section className="relative grid grid-cols-1 gap-4 lg:grid-cols-2 sm:gap-10">
16+
<section className="relative grid grid-cols-1 gap-4 lg:grid-cols-2">
1717
{posts.map((post) => {
1818
return (
1919
<div
20-
className="grid transition-all rounded-md shadow-lg dark:text-primary-50 dark:bg-basics-600 grid-rows-auto-2 hover:shadow-2xl hover:scale-105 bg-basics-50"
20+
className="p-4 grid gap-2 transition-all rounded-md shadow-lg dark:text-primary-50 dark:bg-basics-600 hover:shadow-2xl hover:scale-105 cursor-pointer bg-basics-50"
2121
key={post._id}
2222
>
2323
<Link href="https://twitch.tv/codingcatdev">
@@ -54,13 +54,22 @@ export default function ScheduleCards({
5454
})}
5555
</div> */}
5656
<div className="flex flex-col gap-1">
57-
<p className="text-xl border-b-2 card-title border-b-primary-500">
57+
<time
58+
dateTime={
59+
post?.recordingDate
60+
? new Date(post.recordingDate).toLocaleString()
61+
: ''
62+
}
63+
className="text-lg border-b-2 card-title border-b-primary-500"
64+
>
5865
{post?.recordingDate
5966
? new Date(post.recordingDate).toLocaleString()
6067
: ''}
61-
</p>
62-
<p className="text-2xl">{post?.title?.replace(re, '')}</p>
63-
<p className="text-lg">{post?.excerpt}</p>
68+
</time>
69+
<h2 className="bold font-sans lg:text-2xl">
70+
{post?.title?.replace(re, '')}
71+
</h2>
72+
<p className="text-lg font-thin">{post?.excerpt}</p>
6473
</div>
6574
</>
6675
</Link>

0 commit comments

Comments
 (0)