From fc39c085f01a7935fa20fef0d0dd4c285d39b97c Mon Sep 17 00:00:00 2001 From: Jorge Vargas Date: Sun, 16 Feb 2025 17:00:36 -0600 Subject: [PATCH] Home page --- messages/en.json | 7 ++++- src/components/AlbumBox.astro | 4 +-- src/pages/index.astro | 55 ++++++++++++++++++++++++++++++++++- 3 files changed, 62 insertions(+), 4 deletions(-) diff --git a/messages/en.json b/messages/en.json index 4c06d26..2861be9 100644 --- a/messages/en.json +++ b/messages/en.json @@ -40,5 +40,10 @@ "highlightAlbum": "Highlight Soundtrack", "ostCount": "Soundtrack Count", "animOsts": "Animation Soundtracks", - "gameOsts": "Game Soundtracks" + "gameOsts": "Game Soundtracks", + "recentReleases": "Recent Releases", + "moreGameReleases": "More Game Releases", + "moreAnimReleases": "more Animation releases", + "moreLastAdded": "more Last Added", + "lastAdded": "Last Added" } \ No newline at end of file diff --git a/src/components/AlbumBox.astro b/src/components/AlbumBox.astro index d305d74..766fcc5 100644 --- a/src/components/AlbumBox.astro +++ b/src/components/AlbumBox.astro @@ -2,7 +2,7 @@ import { Image } from 'astro:assets' type Props = - | { title: string; href: string; image: string; loading?: false } + | { title?: string | null; href: string; image: string; loading?: false } | { title?: string; href?: string; image?: string; loading: true } const { props } = Astro @@ -20,7 +20,7 @@ const { title, href, image, loading = false } = props ) : ( {`${title}
-
Page content goes here
+
+

+ {m.recentReleases()} +

+
+ { + recentAlbums.map((album) => ( + + )) + } +
+
+ + +
+
+

+ {m.lastAdded()} +

+
+ { + lastAlbums.map((album) => ( + + )) + } +
+
+ +
+