Browse Source

* Removed unused svelte component

master
vvandenb 2 years ago
parent
commit
59da0c7ee9
  1. 3
      front/volume/src/App.svelte
  2. 31
      front/volume/src/components/Play.svelte

3
front/volume/src/App.svelte

@ -8,10 +8,8 @@
import type { Friend } from "./components/Friends.svelte"; import type { Friend } from "./components/Friends.svelte";
import Spectate from "./components/Spectate.svelte"; import Spectate from "./components/Spectate.svelte";
import type { SpectateType } from "./components/Spectate.svelte"; import type { SpectateType } from "./components/Spectate.svelte";
import Play from "./components/Play.svelte";
import Pong from "./components/Pong/Pong.svelte"; import Pong from "./components/Pong/Pong.svelte";
import Chat2 from "./components/Chat2.svelte"; import Chat2 from "./components/Chat2.svelte";
import type { chatMessagesType } from "./components/Chat2.svelte";
import Channels from "./components/Channels.svelte"; import Channels from "./components/Channels.svelte";
import type { ChannelsType } from "./components/Channels.svelte"; import type { ChannelsType } from "./components/Channels.svelte";
@ -175,7 +173,6 @@
/> />
</div> </div>
{/if} {/if}
<Play />
<Pong /> <Pong />
{/if} {/if}
</div> </div>

31
front/volume/src/components/Play.svelte

@ -1,31 +0,0 @@
<script lang="ts">
let creatingMatch: boolean = false;
</script>
<main>
<h1>Choose a gamemode</h1>
<button>Matchmaking</button>
<button on:click={() => creatingMatch}>Play with a friend</button>
{#if creatingMatch}
<CreateMatch />
{/if}
</main>
<style>
main {
display: flex;
flex-direction: column;
align-items: center;
}
h1 {
margin-bottom: 2rem;
}
button {
font-size: 1.5rem;
padding: 1rem 2rem;
margin-bottom: 1rem;
}
</style>
Loading…
Cancel
Save