1
1
<template >
2
- <div class =" container" >
2
+ <div class =" container public " >
3
3
<div class =" row justify-content-center" >
4
- <div class =" register-form" >
5
- <div class =" logo-wrapper" >
6
- <img class =" logo" src =" /static/images/logo.png" >
7
- <div class =" tagline" >Open source task management tool</div >
8
- </div >
4
+ <div class =" form" >
5
+ <Logo />
9
6
<form @submit.prevent =" submitForm" >
10
7
<div v-show =" errorMessage" class =" alert alert-danger failed" >{{ errorMessage }}</div >
11
8
<div class =" form-group" >
42
39
</form >
43
40
</div >
44
41
</div >
45
- <footer class =" footer" >
46
- <span class =" copyright" >© ; 2018 TaskAgile.com</span >
47
- <ul class =" footer-links list-inline float-right" >
48
- <li class =" list-inline-item" ><a href =" #" >About</a ></li >
49
- <li class =" list-inline-item" ><a href =" #" >Terms of Service</a ></li >
50
- <li class =" list-inline-item" ><a href =" #" >Privacy Policy</a ></li >
51
- <li class =" list-inline-item" ><a href =" https://github.com/taskagile/vuejs.spring-boot.mysql" target =" _blank" >GitHub</a ></li >
52
- </ul >
53
- </footer >
42
+ <PageFooter />
54
43
</div >
55
44
</template >
56
45
57
46
<script >
58
47
import { required , email , minLength , maxLength , alphaNum } from ' vuelidate/lib/validators'
59
48
import registrationService from ' @/services/registration'
49
+ import Logo from ' @/components/Logo.vue'
50
+ import PageFooter from ' @/components/PageFooter.vue'
60
51
61
52
export default {
62
53
name: ' RegisterPage' ,
@@ -70,6 +61,10 @@ export default {
70
61
errorMessage: ' '
71
62
}
72
63
},
64
+ components: {
65
+ Logo,
66
+ PageFooter
67
+ },
73
68
validations: {
74
69
form: {
75
70
username: {
@@ -108,57 +103,7 @@ export default {
108
103
</script >
109
104
110
105
<style lang="scss" scoped>
111
- .container {
112
- max-width : 900px ;
113
- }
114
-
115
- .register-form {
116
- margin-top : 50px ;
117
- max-width : 320px ;
118
- }
119
-
120
- .logo-wrapper {
121
- text-align : center ;
122
- margin-bottom : 40px ;
123
-
124
- .tagline {
125
- line-height : 180% ;
126
- color : #666 ;
127
- }
128
-
129
- .logo {
130
- max-width : 150px ;
131
- margin : 0 auto ;
132
- }
133
- }
134
-
135
- .register-form {
136
-
137
- .form-group label {
138
- font-weight : bold ;
139
- color : #555 ;
140
- }
141
-
142
- .accept-terms {
143
- margin : 20px 0 40px 0 ;
144
- }
106
+ .accept-terms {
107
+ margin : 20px 0 40px 0 ;
145
108
}
146
-
147
- .footer {
148
- width : 100% ;
149
- font-size : 13px ;
150
- color : #666 ;
151
- line-height : 40px ;
152
- border-top : 1px solid #ddd ;
153
- margin-top : 50px ;
154
-
155
- .list-inline-item {
156
- margin-right : 10px ;
157
- }
158
-
159
- a {
160
- color : #666 ;
161
- }
162
- }
163
-
164
109
</style >
0 commit comments