refactor(just): reorganize Justfiles to match project architecture and format code

This commit is contained in:
2025-12-30 04:20:19 -06:00
parent 884f42a855
commit eedf22f86d
10 changed files with 161 additions and 83 deletions
+19 -3
View File
@@ -167,7 +167,12 @@
</button>
<div class="flex items-center gap-8">
<NavLink href="/leaderboard" icon={IconTrophy} label="Leaderboard" active={isActive('/leaderboard')} />
<NavLink
href="/leaderboard"
icon={IconTrophy}
label="Leaderboard"
active={isActive('/leaderboard')}
/>
<a
href="/"
@@ -188,7 +193,12 @@
</h1>
</a>
<NavLink href="/download" icon={IconDownload} label="Download" active={isActive('/download')} />
<NavLink
href="/download"
icon={IconDownload}
label="Download"
active={isActive('/download')}
/>
</div>
<div class="absolute right-4 hidden sm:flex gap-4 items-center">
@@ -257,7 +267,13 @@
</div>
<div class="flex flex-col gap-3">
{#each links as link}
<NavLink href={link.href} icon={link.icon} label={link.label} active={isActive(link.href)} size={28} />
<NavLink
href={link.href}
icon={link.icon}
label={link.label}
active={isActive(link.href)}
size={28}
/>
{/each}
</div>
</div>
+3 -1
View File
@@ -2,7 +2,9 @@
<div class="space-y-6">
<div class="card">
<h2 class="text-2xl font-bold mb-4">Download Pac-Man</h2>
<p class="text-gray-300 mb-4">Download instructions and releases will be available here soon.</p>
<p class="text-gray-300 mb-4">
Download instructions and releases will be available here soon.
</p>
</div>
</div>
</div>
+5 -7
View File
@@ -20,12 +20,7 @@
<tr class="bg-black">
<td class="py-2">
<div class="flex items-center gap-2">
<img
src={entry.avatar}
alt={entry.name}
class="w-9 h-9 rounded-sm"
loading="lazy"
/>
<img src={entry.avatar} alt={entry.name} class="w-9 h-9 rounded-sm" loading="lazy" />
<div class="flex flex-col">
<span class="text-yellow-400 font-semibold text-lg">{entry.name}</span>
<span class="text-xs text-gray-400">{entry.submittedAt}</span>
@@ -49,7 +44,10 @@
<div class="space-y-6">
<div class="card">
<div class="flex gap-2 border-b border-yellow-400/20 pb-2 mb-4">
<button onclick={() => (activeTab = 'global')} class={tabButtonClass(activeTab === 'global')}>
<button
onclick={() => (activeTab = 'global')}
class={tabButtonClass(activeTab === 'global')}
>
<IconTrophy size={16} />
Global
</button>