AboutDialog hinzugefügt

This commit is contained in:
Daniel Spittank 2021-11-14 23:53:08 +01:00
parent 57c2f90036
commit 606301587f
5 changed files with 62 additions and 3 deletions

BIN
src/assets/sissy.jpg Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 101 KiB

BIN
src/assets/sissy.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 316 KiB

View file

@ -0,0 +1,49 @@
<template>
<v-dialog
v-model="dialog"
max-width="400"
>
<v-card>
<v-card-title class="text-h5">
Über SISSy
</v-card-title>
<v-card-text>
<AboutScreen/>
</v-card-text>
<v-card-actions>
<v-spacer></v-spacer>
<v-btn
color="indigo darken-1"
text
@click="dialog = false"
>
Ok
</v-btn>
</v-card-actions>
</v-card>
</v-dialog>
</template>
<script>
import AboutScreen from '@/components/AboutScreen'
export default {
name: 'AboutDialog',
components: {
AboutScreen
},
data: () => {
return {
dialog: false
}
},
methods: {
showAbout () {
this.dialog = true
}
}
}
</script>

View file

@ -1,6 +1,12 @@
<template> <template>
<div class="about"> <div class="about">
<h1>Über SISSy</h1> <h1>SISSy v0.5.1</h1>
<h2>Sedan Informations- und Stundenplansystem</h2>
<img src="@/assets/sissy.png" width="350" />
<span>2021 by Daniel Spittank</span><br/>
<span>Lizensiert unter der AGPL 3.0 oder später</span>
<br/>
<span>Logo by Anabel Fabis, CC-BY-NC-SA</span>
</div> </div>
</template> </template>

View file

@ -1,5 +1,6 @@
<template> <template>
<div class="ids"> <div class="ids">
<AboutDialog ref="ad" />
<v-app-bar <v-app-bar
app app
color="indigo" color="indigo"
@ -9,9 +10,10 @@
alt="Logo" alt="Logo"
class="shrink mr-2" class="shrink mr-2"
contain contain
src="@/assets/logo.svg" src="@/assets/sissy.png"
transition="scale-transition" transition="scale-transition"
width="40" width="40"
@click.stop="$refs.ad.showAbout()"
/> />
<v-spacer></v-spacer> <v-spacer></v-spacer>
@ -77,6 +79,7 @@
<script> <script>
import Newsreader from '@/components/Newsreader' import Newsreader from '@/components/Newsreader'
import Vertretungsplan from '@/components/Vertretungsplan' import Vertretungsplan from '@/components/Vertretungsplan'
import AboutDialog from '@/components/AboutDialog'
export default { export default {
name: 'InfodisplayLehrer', name: 'InfodisplayLehrer',
@ -91,7 +94,8 @@ export default {
components: { components: {
Newsreader, Newsreader,
Vertretungsplan Vertretungsplan,
AboutDialog
}, },
created() { created() {