-
- Signed in as {auth.handle}
-
-
+ {#if auth.isLoggedIn}
+
-
-
- {#if loadingGames}
-
Loading games...
- {:else if games.length > 0}
-
-
Your Games
-
- {#each games as game}
- {@const parsed = parseAtUri(game.uri)}
- {#if parsed}
-
- {parsed.rkey}
-
- {/if}
- {/each}
-
+ {:else}
+
+
{/if}
- {:else}
-
-
-
+
+
+ {#if auth.isLoggedIn}
+ {#if loadingUserGames}
+
Loading your games...
+ {:else}
+ {#if activeUserGames.length > 0}
+
+ Your Active Games
+
+ {#each activeUserGames as game}
+
+ {/each}
+
+
+ {/if}
+
+ {#if completedUserGames.length > 0}
+
+ Completed
+
+ {#each completedUserGames.slice(0, 5) as game}
+
+ {/each}
+
+
+ {/if}
+
+ {#if userGames.length === 0}
+
+ No games yet. Start one!
+
+ {/if}
+ {/if}
{/if}
+
+
+
+
Live on the Atmosphere
+ {#if liveConnected}
+
+ {/if}
+
+ {#if liveGames.length > 0}
+
+ {#each liveGames.slice(0, 20) as game}
+
+ {/each}
+
+ {:else}
+
+ {liveConnected ? 'No active games right now. Be the first!' : 'Connecting to live feed...'}
+
+ {/if}
+