Skip to content

Commit 1ec287d

Browse files
committed
add store selector instead of simple redirect
1 parent 510392a commit 1ec287d

7 files changed

Lines changed: 34 additions & 11 deletions

File tree

src/routes/(info)/lttstore/+layout.svelte

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
import {popup} from "$lib/replacements/popup.ts";
99
import type { MouseEventHandler } from "svelte/elements";
1010
import { setContext } from "svelte";
11+
import { dev } from "$app/environment";
1112
1213
let { data, children } = $props();
1314
@@ -71,10 +72,12 @@
7172
</select>
7273
</div>
7374
</div>
74-
<div class="card border-2 mt-1 p-2 border-amber-600! bg-amber-600/21! limit-large mx-auto">
75-
I am currently working on migrating the LTTStore watcher database to support tracking both the US store and the Global store.
76-
During this time, this site will probably be very broken, and possibly display incorrect data.
77-
</div>
75+
{#if !dev}
76+
<div class="card border-2 mt-1 p-2 border-amber-600! bg-amber-600/21! limit-large mx-auto">
77+
I am currently working on migrating the LTTStore watcher database to support tracking both the US store and the Global store.
78+
During this time, this site will probably be very broken, and possibly display incorrect data.
79+
</div>
80+
{/if}
7881
{@render children?.()}
7982
<br>
8083
<div class="p-4">

src/routes/(info)/lttstore/+page.server.ts

Lines changed: 0 additions & 7 deletions
This file was deleted.
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
<script lang="ts">
2+
import USFlag from "./flags/us.webp"
3+
import Global from "./flags/Global.svelte";
4+
</script>
5+
<div class="min-h-dvh flex justify-center items-center text-center px-4">
6+
<div>
7+
<h1>Please select a store</h1>
8+
<div class="flex justify-center items-center gap-2 flex-wrap">
9+
<a href="/lttstore/us">
10+
<img class="w-64" src={USFlag} alt="US" />
11+
US
12+
</a>
13+
<a href="/lttstore/global">
14+
<Global/>
15+
Global
16+
</a>
17+
</div>
18+
</div>
19+
</div>
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
export const prerender = true;
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
<script>
2+
import Globe from "svelte-bootstrap-icons/lib/Globe.svelte";
3+
4+
</script>
5+
<div class="w-64 aspect-19/10 bg-blue-500 flex justify-center items-center text-white">
6+
<Globe class="w-25 h-25"/>
7+
</div>
250 KB
Loading
16.8 KB
Loading

0 commit comments

Comments
 (0)