summaryrefslogtreecommitdiff
path: root/src/components
diff options
context:
space:
mode:
authorJoe Carstairs <65492573+Sycamost@users.noreply.github.com>2023-08-07 19:41:11 +0100
committerGitHub <noreply@github.com>2023-08-07 19:41:11 +0100
commite08094210c15ee0114ae4f11142aa5f89d81c7aa (patch)
treebfa129cae6a2b981d5b6dc5c3cc16cfb2bc5c95a /src/components
parent925f6de56ef43013583a48dbc49a350ee84cdb3e (diff)
parent2fcbccfbd49c6eaf433272749e32589a6f490200 (diff)
Merge branch 'master' into master
Diffstat (limited to 'src/components')
-rw-r--r--src/components/LallansIssuesGallery.astro26
1 files changed, 26 insertions, 0 deletions
diff --git a/src/components/LallansIssuesGallery.astro b/src/components/LallansIssuesGallery.astro
new file mode 100644
index 0000000..1580e53
--- /dev/null
+++ b/src/components/LallansIssuesGallery.astro
@@ -0,0 +1,26 @@
+---
+import type LallansIssue from '../types/LallansIssue';
+import type Locale from '../types/Locale';
+import { getAllLallansIssues } from '../data/lallans';
+
+const issues = await getAllLallansIssues();
+---
+
+<ul class="lallans-issues-gallery">
+ { issues.map(issue => (
+ <li>
+ <a
+ class="link lallans-issues-gallery__issue-container"
+ href={ `lallans/${issue.issueNumber}` }
+ >
+ <img
+ class="lallans-issues-gallery__issue-cover-image"
+ src={ `/public/images/lallans/issue${issue.issueNumber}.jpg` }
+ />
+ <p class="lallans-issues-gallery__issue-title">
+ Lallans { issue.issueNumber } | { issue.issueName }
+ </p>
+ </a>
+ </li>
+ ))}
+</ul> \ No newline at end of file