Skip to content

Commit

Permalink
added Start Buttons to home
Browse files Browse the repository at this point in the history
  • Loading branch information
synan798 committed Dec 4, 2024
1 parent 373980b commit c2ebc0c
Show file tree
Hide file tree
Showing 2 changed files with 46 additions and 2 deletions.
4 changes: 2 additions & 2 deletions layouts/HeaderFooterView.vue
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@
</div>

<!-- Content -->
<div class="flex-1">
<slot name="content"/>
<div class="flex-1 border rounded-3xl">
<slot name="content"/>
</div>

<!-- Footer -->
Expand Down
44 changes: 44 additions & 0 deletions pages/home.vue
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
<script setup lang="ts">
import HeaderFooterView from "~/layouts/HeaderFooterView.vue";
useSeoMeta({
title: "BeatBuzzer",
description: "A fun music quiz game",
viewport: "width=device-width, initial-scale=1.0",
})
</script>

<template>
<div class="bg-gradient-to-b from-indigo-500 via-purple-500 to-pink-500">
<HeaderFooterView>
<template #header>
<div>
1A
</div>
<div>
2B
</div>
<div>
3C
</div>
</template>
<template #content>
<div class="flex justify-center items-end h-full space-x-1">
<button class="bg-[#22a9fb] hover:bg-blue-700 text-white font-bold py-20 rounded-3xl text-lg w-full">
Start Game
</button>
<button class="bg-[#22a9fb] hover:bg-blue-700 text-white font-bold py-20 rounded-3xl text-lg w-full">
Start Round
</button>
</div>
</template>
<template #footer>
<div class="text-4xl">A</div>
<div class="text-4xl">B</div>
<div class="text-4xl">C</div>
</template>
</HeaderFooterView>
</div>
</template>

0 comments on commit c2ebc0c

Please sign in to comment.