Skip to content

Commit

Permalink
Add aria-labels to all elements and specify english locale
Browse files Browse the repository at this point in the history
  • Loading branch information
leomet07 committed Jan 30, 2024
1 parent 12e4d27 commit fc34222
Show file tree
Hide file tree
Showing 4 changed files with 27 additions and 7 deletions.
25 changes: 20 additions & 5 deletions components/Footer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -22,19 +22,34 @@ const Footer = () => {
<Link href="/">The Spectator</Link>
</p>
<div id={styles.mediaButtons}>
<Link href="https://open.spotify.com/show/1D0i5KdRFdMNNUwsKVfpYb">
<Link
href="https://open.spotify.com/show/40JaCJA0FvtZToAv81qVjz"
aria-label="The Lens Podcast on Spotify"
>
<BsSpotify id={styles.mediaButton} />
</Link>
<Link href="https://www.facebook.com/stuyspectator">
<Link
href="https://www.facebook.com/stuyspectator"
aria-label="Facebook"
>
<BsFacebook id={styles.mediaButton} />
</Link>
<Link href="https://www.instagram.com/stuyspectator/">
<Link
href="https://www.instagram.com/stuyspectator/"
aria-label="Instagram"
>
<BsInstagram id={styles.mediaButton} />
</Link>
<Link href="https://www.linkedin.com/company/the-stuyvesant-spectator">
<Link
href="https://www.linkedin.com/company/the-stuyvesant-spectator"
aria-label="Linkedin"
>
<BsLinkedin id={styles.mediaButton} />
</Link>
<Link href="https://github.com/stuyspec">
<Link
href="https://github.com/stuyspec"
aria-label="GitHub"
>
<BsGithub id={styles.mediaButton} />
</Link>
</div>
Expand Down
3 changes: 2 additions & 1 deletion components/LatestPreviewImage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,10 @@ const LatestPreviewImage = (props: { imageClass: any; imageIndex: number }) => {
return (
<Link
passHref
href={(data && data.link) || "https://issuu.com/stuyspectator"}
href={(data && data.link) || "https://pdf.stuyspec.com"}
target="_blank"
rel="noopener"
aria-label={`Issue ${data?.issue} Volume ${data?.volume}`}
>
<img
alt={`The ${
Expand Down
4 changes: 4 additions & 0 deletions next.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,10 @@ const securityHeaders = [
];

module.exports = {
i18n: {
locales: ["en"],
defaultLocale: "en",
},
reactStrictMode: true,
images: {
domains: [
Expand Down
2 changes: 1 addition & 1 deletion pages/api/issuu/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ async function getLatestImages() {
const volume = Number(splitTitle[1]);
const issue = Number(splitTitle[3]);

const link = `https://issuu.com/stuyspectator/docs/${uriFileName}`;
const link = `https://pdf.stuyspec.com/${volume}/${issue}.pdf`;

return { images, volume, issue, title: postTitle, link };
}

0 comments on commit fc34222

Please sign in to comment.