From 805e49b0172e979852468c19d345ee481a19a3ab Mon Sep 17 00:00:00 2001 From: Cameron Otsuka Date: Tue, 25 Nov 2025 12:31:07 -0800 Subject: [PATCH] place items in a table --- src/pages/podcasts/index.astro | 45 +++++++++++++++++++++++++--------- src/pages/reviews/index.astro | 41 +++++++++++++++++++++---------- 2 files changed, 61 insertions(+), 25 deletions(-) diff --git a/src/pages/podcasts/index.astro b/src/pages/podcasts/index.astro index 0b23b71..32dbacc 100644 --- a/src/pages/podcasts/index.astro +++ b/src/pages/podcasts/index.astro @@ -10,15 +10,36 @@ const sortedPodcasts = podcasts.sort((a, b) => b.data.date.getTime() - a.data.da

Podcasts

-
- {sortedPodcasts.map((podcast) => { - const date = formatDate(podcast.data.date); - return ( -
{podcast.data.title}
-
- {podcast.data.show} - {podcast.data.description} -
- ) - })} -
- \ No newline at end of file + + + + + + + + + + {sortedPodcasts.map((podcast) => ( + + + + + + ))} + +
ShowTitleDate
{podcast.data.show} +
+
{podcast.data.title}
+
{podcast.data.description}
+
+
{formatDate(podcast.data.date)}
+ + + \ No newline at end of file diff --git a/src/pages/reviews/index.astro b/src/pages/reviews/index.astro index 6ab44d9..7516024 100644 --- a/src/pages/reviews/index.astro +++ b/src/pages/reviews/index.astro @@ -1,6 +1,5 @@ --- import { getCollection } from 'astro:content'; -import formatDate from '@utils/formatDate.ts'; import Base from '@layouts/base.astro'; import RatingDistribution from '@components/ratingdistribution/component.astro'; import Rating from '@components/ui/rating.astro'; @@ -16,16 +15,32 @@ const sortedReviews = reviews.sort((a, b) => b.data.date.getTime() - a.data.date
-
- {sortedReviews.map((review) => { - const date = formatDate(review.data.date); - return ( -
{review.data.title}
-
- -
- ) - })} -
+ + + + + + + + + + {sortedReviews.map((review) => ( + + + + + + ))} + +
TypeTitleRating
{review.data.type}{review.data.title}
- \ No newline at end of file + + + \ No newline at end of file -- 2.52.0