Skip to content

Commit

Permalink
謝罪文を追加
Browse files Browse the repository at this point in the history
  • Loading branch information
baru8 committed Jan 19, 2022
1 parent 1d51285 commit 86132e5
Show file tree
Hide file tree
Showing 3 changed files with 49 additions and 1 deletion.
3 changes: 3 additions & 0 deletions app/forms/AnalyzeResultForm.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
class AnalyzeResultForm

end
36 changes: 36 additions & 0 deletions app/frontend/components/SorryForError.vue
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
<template>
<v-dialog :value="dialog" max-width="630">
<v-card>
<v-card-title class="headline grey lighten-2 d-flex justify-center" >
大変申し訳ありません。
</v-card-title>
<v-card-text class="text-no-wrap text-sm-h5 text-body-2 text-center pa-8">
現在、診断にエラーが見つかった影響で、<br />
サービスが使えない状況になっております。<br />
復旧は1/25 10:00を予定しております。<br />
本当に申し訳ありません。<br />
</v-card-text>
<v-card-actions class="d-flex justify-space-around pb-8">
<v-btn style="color: white" class="deep-orange lighten-2" x-large :to="{ name: 'Phrases' }">
用語集ページへ
</v-btn>
<v-btn style="background-color: rgb(0, 60, 80)" x-large @click.stop="$emit('close-dialog')"> <img :src="imgSrc" class="text-center" width="100" /> </v-btn>
</v-card-actions>
</v-card>
</v-dialog>
</template>

<script>
export default {
props: {
dialog: {
type: Boolean,
},
},
computed:{
imgSrc() {
return require('../src/img/zeroken-logo_4.png');
},
}
};
</script>
11 changes: 10 additions & 1 deletion app/frontend/pages/ZerokenTop.vue
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,10 @@
:dialog="isVisibleFirstGreeting"
@close-dialog="isVisibleFirstGreeting = false"
/>
<SorryForError
:dialog="isVisibleSorryForError"
@close-dialog="isVisibleSorryForError = false"
/>

<v-row justify="center" align-content="center">
<v-col class="text-center align-self-center" cols="12">
Expand Down Expand Up @@ -141,18 +145,21 @@
import axios from '../plugins/axios';
import { mapActions, mapGetters } from 'vuex';
import FirstGreeting from '../components/FirstGreeting';
import SorryForError from '../components/SorryForError';
import ZerokenButton from '../components/global/ZerokenButton';
import ZerokenAbout from '../components/top/ZerokenAbout';
export default {
components: {
FirstGreeting,
ZerokenAbout,
ZerokenButton,
SorryForError
},
name: 'ZerokenTop',
data() {
return {
isVisibleFirstGreeting: false,
isVisibleSorryForError: false,
autoplay: true,
show: false,
emerge: false,
Expand Down Expand Up @@ -191,7 +198,9 @@ export default {
if (authUser) return (self.isVisibleFirstGreeting = true);
});
});
else next();
else next((self) => {
return (self.isVisibleSorryForError = true)
});
},
computed: {
...mapGetters('users', ['authUser']),
Expand Down

0 comments on commit 86132e5

Please sign in to comment.