mirror of
https://github.com/BradNut/boredgame
synced 2025-09-08 17:40:22 +00:00
Only render analytics in non-dev. Also revert game css for now.
This commit is contained in:
parent
d2762b3e38
commit
226c9454c7
2 changed files with 8 additions and 6 deletions
|
|
@ -83,10 +83,8 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
.game-container {
|
.game-container {
|
||||||
display: grid;
|
display: flex;
|
||||||
grid-template-rows: repeat(3, minmax(50px, 200px));
|
flex-wrap: wrap;
|
||||||
place-items: center;
|
|
||||||
max-width: 100px;
|
|
||||||
|
|
||||||
@media (max-width: 650px) {
|
@media (max-width: 650px) {
|
||||||
max-width: none;
|
max-width: none;
|
||||||
|
|
|
||||||
|
|
@ -4,7 +4,7 @@
|
||||||
import { fade } from 'svelte/transition';
|
import { fade } from 'svelte/transition';
|
||||||
import debounce from 'just-debounce-it';
|
import debounce from 'just-debounce-it';
|
||||||
import { Toy } from '@leveluptuts/svelte-toy';
|
import { Toy } from '@leveluptuts/svelte-toy';
|
||||||
import Analytics from '$lib/components/analytics.svelte';
|
import Analytics from '$lib/components/analytics.svelte';
|
||||||
import Header from '$lib/components/header/Header.svelte';
|
import Header from '$lib/components/header/Header.svelte';
|
||||||
import Loading from '$lib/components/loading.svelte';
|
import Loading from '$lib/components/loading.svelte';
|
||||||
import Transition from '$lib/components/transition/index.svelte';
|
import Transition from '$lib/components/transition/index.svelte';
|
||||||
|
|
@ -45,10 +45,14 @@
|
||||||
const dev = process.env.NODE_ENV !== 'production';
|
const dev = process.env.NODE_ENV !== 'production';
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<Analytics />
|
{#if !dev}
|
||||||
|
<Analytics />
|
||||||
|
{/if}
|
||||||
|
|
||||||
{#if dev}
|
{#if dev}
|
||||||
<Toy register={{ boredState, collectionStore, gameStore, toast }} />
|
<Toy register={{ boredState, collectionStore, gameStore, toast }} />
|
||||||
{/if}
|
{/if}
|
||||||
|
|
||||||
<Transition transition={{ type: 'fade', duration: 250 }}>
|
<Transition transition={{ type: 'fade', duration: 250 }}>
|
||||||
<div class="wrapper">
|
<div class="wrapper">
|
||||||
<Header />
|
<Header />
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue