From 958457be8626148a9559716caf032bb54c10bbdc Mon Sep 17 00:00:00 2001 From: Joe Carstairs <65492573+Sycamost@users.noreply.github.com> Date: Wed, 18 Oct 2023 20:39:19 +0100 Subject: Dev (#16) * Adds images for Lallans 102 * Adds most 102 data... except contributors... * Adds contributors * Adds issue to Lallans data index * Adds instructions about adding a Lallans issue to the README * Adds sanity check instructions --- README.md | 17 ++++++++++ src/data/lallans/index.ts | 1 + src/data/lallans/issue102.ts | 58 ++++++++++++++++++++++++++++++++++ src/images/lallans/issue102-192w.webp | Bin 0 -> 14884 bytes src/images/lallans/issue102-274w.webp | Bin 0 -> 26694 bytes src/images/lallans/issue102.webp | Bin 0 -> 132290 bytes src/types/LallansIssueNumber.d.ts | 3 +- 7 files changed, 78 insertions(+), 1 deletion(-) create mode 100644 src/data/lallans/issue102.ts create mode 100644 src/images/lallans/issue102-192w.webp create mode 100644 src/images/lallans/issue102-274w.webp create mode 100644 src/images/lallans/issue102.webp diff --git a/README.md b/README.md index 8e97aa0..fdbb2fc 100644 --- a/README.md +++ b/README.md @@ -141,3 +141,20 @@ and the base branch of `dev`. Once you've done that, it's down to an owner of the upstream repository to approve your Pull Request. Once they've done that, your new news article will appear on the website. + +## Adding an issue of Lallans + +1. Add the issue number to `src/types/LallansIssueNumber.d.ts`. +2. Add the original issue cover photo as `src/images/issueXYZ.jpg`, where `XYZ` + is the issue number. Most of the examples are `.jpg`, but the file type isn't important. +3. Make copies of the cover image that are scaled to 192 and 274 pixels wide. + Name them `issueXYZ-192w.jpg` and `issueXYZ-274w.jpg` respectively. +4. Copy one of the existing Lallans issues in `src/data/lallans` and name the + copy `issueXYZ.ts`. +5. Edit the file you just made with the new issue's information, including the + locations of the correctly scaled cover images that you just made. +6. Import that data file into the Lallans data index file, `src/data/lallans/index.ts`. +7. Check that everything's working: the issue should appear at the top on the + Lallans page, `/furthsettins/lallans`, and the issue information should appear + at `/furthsettins/lallans/XYZ`. Check both the English and Scots versions. + diff --git a/src/data/lallans/index.ts b/src/data/lallans/index.ts index 434ff1c..db443d2 100644 --- a/src/data/lallans/index.ts +++ b/src/data/lallans/index.ts @@ -77,6 +77,7 @@ export const getLallansIssue: LallansIssueGetterTable = { 99: async () => (await import('./issue99')).default, 100: async () => (await import('./issue100')).default, 101: async () => (await import('./issue101')).default, + 102: async () => (await import('./issue102')).default, }; export type LallansIssueGetterTable = { [key in LallansIssueNumber]: () => Promise }; diff --git a/src/data/lallans/issue102.ts b/src/data/lallans/issue102.ts new file mode 100644 index 0000000..1ae14e5 --- /dev/null +++ b/src/data/lallans/issue102.ts @@ -0,0 +1,58 @@ +import img192w from '$images/lallans/issue102-192w.webp'; +import img274w from '$images/lallans/issue102-274w.webp'; +import type LallansIssue from '$types/LallansIssue'; + +const issue: LallansIssue = { + issueNumber: 102, + img: { + width192: img192w, + width274: img274w, + }, + issueName: 'Beltane/Lammas 2023', + price: '10.00', + uploadDate: '2023-10-16', + description: { + 'en-GB': 'The hundred-and-second issue of the Lallans magazine.', + sco: 'The hunner-an-saicont issue o the Lallans magazine.', + }, + contributors: [ + 'Finola Scott', + 'Derrick McClure', + 'Jamie Purves', + 'Lord Braxfield', + 'Frieda Morrison', + 'Irene Howat', + 'David Bleiman', + 'Marcus Keaveney', + 'WS Milne', + 'Alistair McLeish', + 'Craig Aitchison', + 'Ian Nimmo White', + 'Maggie Elliott', + 'Jim Aitken', + 'Gordon D Moodie', + 'Walter Perrie', + 'Kevin Connelly', + 'Frances Robson', + 'Jim Roddie', + 'Fred Freeman', + 'George T Watt', + 'Hamish Scott', + 'Rose MacGregor', + 'Nicole Le Marie', + 'Jacqueline Tweddle', + 'Sheena Blackhall', + 'Elaine Morton', + 'Alasdair Allan', + 'Pete Fortune', + 'Tony Beekman', + 'Ewan MacColl', + 'Odveig Klyve', + 'Jock Stein', + 'Michael Swan', + 'Marion Angus', + 'Brendan McCluskey', + ], +}; + +export default issue; diff --git a/src/images/lallans/issue102-192w.webp b/src/images/lallans/issue102-192w.webp new file mode 100644 index 0000000..22e45b3 Binary files /dev/null and b/src/images/lallans/issue102-192w.webp differ diff --git a/src/images/lallans/issue102-274w.webp b/src/images/lallans/issue102-274w.webp new file mode 100644 index 0000000..a158271 Binary files /dev/null and b/src/images/lallans/issue102-274w.webp differ diff --git a/src/images/lallans/issue102.webp b/src/images/lallans/issue102.webp new file mode 100644 index 0000000..11b5861 Binary files /dev/null and b/src/images/lallans/issue102.webp differ diff --git a/src/types/LallansIssueNumber.d.ts b/src/types/LallansIssueNumber.d.ts index 29f07cc..52dc35a 100644 --- a/src/types/LallansIssueNumber.d.ts +++ b/src/types/LallansIssueNumber.d.ts @@ -68,6 +68,7 @@ type LallansIssueNumber = | 98 | 99 | 100 - | 101; + | 101 + | 102; export default LallansIssueNumber; -- cgit v1.2.3