Skip to content

Commit

Permalink
Prettier tweaks
Browse files Browse the repository at this point in the history
  • Loading branch information
robertvanhoesel committed Feb 11, 2024
1 parent 7ac79f1 commit c69d561
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 9 deletions.
13 changes: 12 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,17 @@
],
"prettier": {
"printWidth": 120,
"semi": false
"semi": false,
"plugins": [
"prettier-plugin-astro"
],
"overrides": [
{
"files": "*.astro",
"options": {
"parser": "astro"
}
}
]
}
}
8 changes: 4 additions & 4 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 4 additions & 4 deletions src/pages/players/[id]-[username].astro
Original file line number Diff line number Diff line change
Expand Up @@ -47,10 +47,10 @@ const highestLeague = player?.leaderboard_entries?.reduce(

<Layout title={player?.nickname}>
<div class="w-full border-b border-gray-700/50 bg-gray-800/50 backdrop-blur-lg">
<div class="mx-auto flex max-w-screen-lg flex-wrap items-center gap-4 px-4 md:px-8 py-4">
<div class="flex-auto flex items-center gap-3">
{player.avatar_url ? <img src={player.avatar_url} alt={player.nickname} class="rounded-sm w-6 md:w-8" /> : <></>}
<h1 class="flex-auto text-lg md:text-2xl font-bold text-gray-50">{player.nickname}</h1>
<div class="mx-auto flex max-w-screen-lg flex-wrap items-center gap-4 px-4 py-4 md:px-8">
<div class="flex flex-auto items-center gap-3">
{player.avatar_url && <img src={player.avatar_url} alt={player.nickname} class="w-6 rounded-sm md:w-8" />}
<h1 class="flex-auto text-lg font-bold text-gray-50 md:text-2xl">{player.nickname}</h1>
</div>
<RankedBadge entry={highestLeague} class="w-16 md:w-20" client:load />
</div>
Expand Down

0 comments on commit c69d561

Please sign in to comment.