File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change 11<script lang =" ts" >
22 import { onMount } from ' svelte' ;
33 import { getAllGames , getAllPlayers , db } from ' $lib/db' ;
4- import { maps } from ' $lib/gameData ' ;
4+ import { resolve } from ' $app/paths ' ;
55
66 type GameWithDetails = Awaited <ReturnType <typeof getAllGames >>[number ];
77 type Player = Awaited <ReturnType <typeof getAllPlayers >>[number ];
151151<div class =" page-background min-h-screen bg-amber-50" >
152152 <div class =" mx-auto max-w-6xl px-4 py-8" >
153153 <header class =" mb-8" >
154- <a href =" / " class =" mb-4 inline-block text-amber-600 hover:text-amber-700" >← Back to Home</a >
154+ <a href =" { resolve ( " / " )} " class =" mb-4 inline-block text-amber-600 hover:text-amber-700" >← Back to Home</a >
155155 <h1 class =" text-3xl font-bold text-amber-900" >📊 Statistics</h1 >
156156 </header >
157157
163163 <div class =" rounded-lg bg-white p-8 text-center shadow" >
164164 <p class =" text-gray-500" >No games recorded yet. Start tracking games to see statistics!</p >
165165 <a
166- href =" /games/new"
166+ href =" { resolve ( " /games/new" )} "
167167 class =" mt-4 inline-block rounded-lg bg-amber-600 px-6 py-3 font-semibold text-white shadow-md transition hover:bg-amber-700"
168168 >
169169 + Record First Game
You can’t perform that action at this time.
0 commit comments