Skip to content

Commit

Permalink
add MyAnimeList link
Browse files Browse the repository at this point in the history
  • Loading branch information
syrflover committed Jul 9, 2024
1 parent f3f1202 commit 2bf198c
Showing 1 changed file with 17 additions and 3 deletions.
20 changes: 17 additions & 3 deletions src/pages/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -120,8 +120,14 @@ const IndexPage: React.FC<PageProps> = () => {
return (
<main style={pageStyles}>
<h1 style={headingStyles}>
<span style={headingAccentStyles}>syr</span>
's Anime List
<a
style={{ color: "#232129" }}
href="https://myanimelist.net/animelist/syrlee"
target="_blank"
>
<span style={headingAccentStyles}>syr</span>
's Anime List
</a>
</h1>

<div
Expand Down Expand Up @@ -170,7 +176,15 @@ const IndexPage: React.FC<PageProps> = () => {
: badgeStyles.backgroundColor,
}}
onClick={() => {
selectDay(dayToNumber(day));
const dayNumber = dayToNumber(day);

if (dayNumber === selectedDay) {
selectDay(-1);
}

setTimeout(() => {
selectDay(dayNumber);
});
}}
>
{day}
Expand Down

0 comments on commit 2bf198c

Please sign in to comment.