Skip to content

Commit

Permalink
Merge pull request #86 from qlemaire22/fix-game-length-labels
Browse files Browse the repository at this point in the history
Fix game length chart labels
  • Loading branch information
robertvanhoesel authored Feb 20, 2024
2 parents ebe9f53 + 27371f5 commit d8f3f55
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 9 deletions.
2 changes: 1 addition & 1 deletion src/components/layout/Footer.astro
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ const navLinks = [
<a
href={link.href}
target={link.target ? link.target : "_self"}
class="text-sm leading-6 text-gray-100 hover:text-white"
class="flex items-center gap-1.5 text-sm leading-6 text-gray-100 hover:text-white"
>
{link.icon && <Svg src={link.icon} class="inline-block w-3.5" />}
{link.text}
Expand Down
17 changes: 9 additions & 8 deletions src/components/widgets/GameLengthChart.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -11,14 +11,15 @@ type GameLengthProps = {
const prettyLabels = {
"0-120": "<2m",
"121-240": "2-4m",
"241-360": "4-8m",
"361-480": "8-10m",
"481-600": "10-12m",
"601-720": "12-14m",
"721-840": "14-16m",
"841-960": "16-18m",
"961-1080": "18-20m",
"1081-1200": "20-22m",
"241-360": "4-6m",
"361-480": "6-8m",
"481-600": "8-10m",
"601-720": "10-12m",
"721-840": "12-14m",
"841-960": "14-16m",
"961-1080": "16-18m",
"1081-1200": "18-20m",
"1201-1320": "20-22m",
"1320+": "22m+",
} as const

Expand Down

0 comments on commit d8f3f55

Please sign in to comment.