mirror of
https://github.com/anatolykopyl/vk-bingo.git
synced 2026-03-26 12:54:25 +00:00
43 lines
718 B
Vue
43 lines
718 B
Vue
<template>
|
|
<div class="end">
|
|
<button
|
|
class="endButton"
|
|
@click="endGame"
|
|
>
|
|
Закончить игру
|
|
</button>
|
|
</div>
|
|
</template>
|
|
|
|
<script setup>
|
|
import axios from 'axios'
|
|
import { useRouter } from 'vue-router';
|
|
const router = useRouter()
|
|
|
|
function endGame() {
|
|
axios.post(import.meta.env.VITE_APP_BACKEND + '/end')
|
|
router.push('/')
|
|
}
|
|
</script>
|
|
|
|
<style scoped lang="scss">
|
|
.end {
|
|
// position: fixed;
|
|
// bottom: 8px;
|
|
// left: 50%;
|
|
// transform: translateX(-50%);
|
|
}
|
|
|
|
.endButton {
|
|
background: none;
|
|
border: none;
|
|
font: inherit;
|
|
color: var(--clr-text);
|
|
padding: 8px 12px;
|
|
border-bottom: 1px dotted var(--clr-text);
|
|
|
|
&:hover {
|
|
cursor: pointer;
|
|
}
|
|
}
|
|
</style> |