startseite

This commit is contained in:
jhim
2026-02-06 11:25:09 +01:00
parent 7268e4c95a
commit 3f57889a9f
5 changed files with 50 additions and 7 deletions

BIN
GUI/public/background.jpg Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 128 KiB

BIN
GUI/public/background.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 7.9 MiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 4.2 KiB

After

Width:  |  Height:  |  Size: 4.2 KiB

View File

@@ -1,10 +1,44 @@
<script setup lang="ts">
let buttons = [
{
name: "Lokaler Multiplayer",
icon: "mdi-account-switch",
color: "red"
},
{
name: "Lokal gegen Bot",
icon: "mdi-robot-angry-outline",
color: "green"
},
{
name: "Online Multiplayer",
icon: "mdi-web",
color: "blue"
}
]
</script>
<template>
<h1>Home</h1>
<v-container class="fill-height d-flex justify-space-evenly align-center flex-column" fluid>
<h1>Wähle dein Spielmodi aus:</h1>
<v-row justify="center" align="center">
<v-col cols="12" class="text-center">
<div v-for="button of buttons" :key="button.name" class="pa-2">
<v-btn :color="button.color" size="x-large" min-width="325" class="justify-start">
<template v-slot:prepend>
<div class="d-flex justify-start" style="width: 30px;">
<v-icon :icon="button.icon"></v-icon>
</div>
</template>
<style scoped>
</style>
<span class="flex-grow-1 text-center">
{{ button.name }}
</span>
</v-btn>
</div>
</v-col>
</v-row>
</v-container>
</template>
<style scoped></style>

View File

@@ -2,9 +2,18 @@
<template>
<v-app>
<v-app-bar :elevation="6">
<v-app-bar-title>4 Gewinnt</v-app-bar-title>
<v-app-bar :elevation="6" image="./background.png">
<template v-slot:image>
<v-img gradient="to top right, rgba(5, 5, 5, 0.6), rgba(50, 50, 60, 0.6)"></v-img>
</template>
<v-app-bar-title class="font-weight-semibold text-white">
4-Gewinnt
</v-app-bar-title>
</v-app-bar>
<v-main>
<router-view></router-view>
</v-main>
</v-app>
</template>