Skip to content

Commit 324a8c8

Browse files
Merge pull request #159 from codeforjapan/feature/147-make-user-register-flow
SignUp メール登録まで
2 parents f8063c2 + fccb951 commit 324a8c8

File tree

7 files changed

+291
-173
lines changed

7 files changed

+291
-173
lines changed

src/middleware/authenticated.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import { vxm } from '@/store'
33

44
const authenticated: Middleware = async ({ redirect }) => {
55
if (!vxm.user.isAuthenticated) {
6-
redirect('/account/login')
6+
redirect('/user/login')
77
}
88
}
99

src/pages/account/signup.vue

Lines changed: 0 additions & 130 deletions
This file was deleted.

src/pages/classes/terms.vue

Lines changed: 96 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,96 @@
1+
<template>
2+
<div class="MainPage">
3+
<div class="Logo-outer">
4+
<prj-logo class="Logo" />
5+
</div>
6+
<div class="PolicyText-outer">
7+
<p>
8+
一般社団法人コード・フォー・ジャパン(以下、「弊団体」といいます)は、個人情報に関する法令を遵守し、個人情報の適切な取り扱いを実現致します。
9+
</p>
10+
<p>
11+
なお、弊団体が、参加者等(弊団体が運営するイベントやWebページ等への参加者や訪問者をいいます。以下同じ。)から取得した個人情報は、本プライバシーポリシーに従って管理され、参加者等は、弊団体が提供する各種イベントやWebページ(以下、総称して「弊社イベント等」という)を利用する際には、本プライバシーポリシーに定める内容を理解し、これに同意した上で利用するものとします。
12+
</p>
13+
</div>
14+
<label class="Checkbox-label">
15+
利用規約に同意します
16+
<input
17+
v-model="toggle"
18+
type="checkbox"
19+
value="check"
20+
class="Checkbox-original"
21+
/>
22+
<v-icon v-if="isCheck" color="#0071C2">mdi-check-box-outline</v-icon>
23+
<v-icon v-else color="#0071C2">mdi-checkbox-blank-outline</v-icon>
24+
</label>
25+
<action-button
26+
:is-disabled="!isCheck"
27+
class="Button"
28+
theme="primary"
29+
text="利用を開始する"
30+
@click="doClassLogin"
31+
/>
32+
<action-button
33+
class="Button"
34+
theme="border"
35+
text="同意しない"
36+
@click="$router.push('/')"
37+
/>
38+
</div>
39+
</template>
40+
41+
<script lang="ts">
42+
import Vue from 'vue'
43+
import PrjLogo from '~/assets/svgs/prj_logo.svg'
44+
import ActionButton from '~/components/ActionButton.vue'
45+
46+
export default Vue.extend({
47+
components: { PrjLogo, ActionButton },
48+
layout: 'simple',
49+
data() {
50+
return {
51+
toggle: []
52+
}
53+
},
54+
computed: {
55+
isCheck(): boolean {
56+
return this.toggle.some(value => {
57+
return value === 'check'
58+
})
59+
}
60+
},
61+
methods: {
62+
doClassLogin(): void {}
63+
}
64+
})
65+
</script>
66+
67+
<style lang="scss" scoped>
68+
.MainPage {
69+
background-color: $color-white;
70+
border-radius: 14px;
71+
padding: 16px;
72+
}
73+
.Logo-outer {
74+
display: flex;
75+
justify-content: center;
76+
}
77+
.Logo {
78+
width: 115px;
79+
}
80+
.PolicyText-outer {
81+
background-color: $color-back-gray;
82+
border-radius: 14px;
83+
padding: 16px;
84+
}
85+
.Checkbox-label {
86+
display: flex;
87+
justify-content: center;
88+
margin: 24px 0;
89+
}
90+
.Checkbox-original {
91+
display: none;
92+
}
93+
.Button {
94+
margin-bottom: 16px;
95+
}
96+
</style>

src/pages/index.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,14 +37,14 @@
3737
<action-button
3838
text="ユーザー登録する"
3939
class="registerButton"
40-
@click="$router.push('/terms')"
40+
@click="$router.push('/user/terms')"
4141
/>
4242

4343
<action-button
4444
text="ログインする"
4545
class="loginButton"
4646
theme="secondary"
47-
@click="$router.push('/account/login')"
47+
@click="$router.push('/user/login')"
4848
/>
4949
<v-footer color="#004170" padless>
5050
<v-row justify="center" no-gutters>

src/pages/account/login.vue renamed to src/pages/user/login.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ import BottomSheetLayer from '@/components/BottomSheetLayer.vue'
6363
import ActionButton from '@/components/ActionButton.vue'
6464
import InputField from '@/components/InputField.vue'
6565
import firebase from '@/plugins/firebase'
66-
import { vxm } from '~/store'
66+
import { vxm } from '@/store'
6767
6868
export default Vue.extend({
6969
components: { BottomSheetLayer, ActionButton, InputField },

0 commit comments

Comments
 (0)