-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
about card moved to separate component
- Loading branch information
1 parent
bf1e9fb
commit b5883f4
Showing
3 changed files
with
53 additions
and
37 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
<template> | ||
<v-card style="padding: 15px" variant="flat" position="fixed" location="bottom right" color="#00000000"> | ||
<v-container> | ||
<v-row> | ||
<v-btn @click="helpDialog = true" icon="mdi-help" density="compact" size="x-large" variant="flat" color="#1a1b26" | ||
style="margin-bottom: 10px"></v-btn> | ||
</v-row> | ||
<v-row> | ||
<v-btn @click="goToRepo" icon="mdi-github" density="compact" size="x-large" variant="flat" | ||
color="#1a1b26"></v-btn> | ||
</v-row> | ||
</v-container> | ||
<v-dialog v-model="helpDialog" scrim="#1a1b26"> | ||
<v-card variant="flat" color="#1a1b26"> | ||
<v-card-title> Помощь </v-card-title> | ||
<v-card-text> | ||
Это приложение поможет вам в игре <b>"Виселица"</b>. Введите | ||
загаданное слово в поле <b>"Ваше слово"</b>, заменяя неизвестные буквы | ||
на любой другой символ. А в поле <b>"Использованные буквы"</b> укажите | ||
буквы, которые вы уже назвали, но которых нет в слове. Вам будут | ||
предложены буквы, которые, возможно, есть в загаданном слове, а также | ||
слова, которые могут быть загаданы. <b>Приятной игры!</b> | ||
</v-card-text> | ||
</v-card> | ||
</v-dialog> | ||
</v-card> | ||
</template> | ||
|
||
<script lang="ts"> | ||
import { defineComponent } from "vue"; | ||
export default defineComponent({ | ||
name: "AboutCard", | ||
data: () => ({ | ||
helpDialog: false, | ||
}), | ||
methods: { | ||
goToRepo() { | ||
window.open("https://github.com/GregoryKogan/hangman-helper", "_blank"); | ||
}, | ||
}, | ||
}); | ||
</script> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters