show project loading more gracefully

This commit is contained in:
2024-11-28 16:42:24 -05:00
parent 4b1fc2812e
commit 12e79791da
9 changed files with 44 additions and 39 deletions
@@ -54,10 +54,11 @@ export default function RecentGame() {
/>
)
} else {
<>
<h1 className="font-bold text-2xl">No data :(</h1>
<p>Check out <a className="underline" href="https://steamcommunity.com/id/luvxavierr" target="_blank">steamcommunity.com/id/luvxavierr</a> if this isn't working.</p>
<p className="text-sm italic">{errorState}</p>
</>
return <ProjectComponent
header={"Games I'm playing"}
projectHeader={"No data :("}
projectSubheader={loading ? "Loading data.." : "Something went wrong fetching data! " + errorState}
url={"/"}
/>
}
}