Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Sign in
Toggle navigation
K
kiaisoft_tuananh_nuxt
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
1
Issues
1
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
TTS Tran Viet Anh
kiaisoft_tuananh_nuxt
Commits
dda1f1e8
Commit
dda1f1e8
authored
Feb 04, 2023
by
TTS Kieu Tuan Anh
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix theme login
parent
4025884b
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
62 additions
and
53 deletions
+62
-53
empty.vue
layouts/empty.vue
+7
-3
login.vue
pages/login.vue
+52
-48
register.vue
pages/register.vue
+3
-2
No files found.
layouts/empty.vue
View file @
dda1f1e8
<
template
>
<
template
>
<v-app>
<Nuxt
/>
<Nuxt
/>
</v-app>
</
template
>
</
template
>
<
script
>
<
script
>
export
default
{}
export
default
{
computed
:
{
theme
()
{
return
(
this
.
$vuetify
.
theme
.
dark
)
?
'
dark
'
:
'
light
'
}
}
}
</
script
>
</
script
>
pages/login.vue
View file @
dda1f1e8
<
template
>
<
template
>
<div
class=
"body"
>
<v-app
:style=
"
{background: $vuetify.theme.themes.light.background}">
<form
class=
"login-form"
>
<div
class=
"body"
>
<NuxtLogo
/>
<form
class=
"login-form"
>
<v-text-field
<NuxtLogo
/>
v-model=
"email"
<v-text-field
:error-messages=
"emailErrors"
v-model=
"email"
label=
"E-mail"
:error-messages=
"emailErrors"
required
label=
"E-mail"
@
input=
"$v.email.$touch()"
required
@
blur=
"$v.email.$touch()"
@
input=
"$v.email.$touch()"
/>
@
blur=
"$v.email.$touch()"
<v-text-field
/>
v-model=
"password"
<v-text-field
:error-messages=
"passwordErrors"
v-model=
"password"
:append-icon=
"showPassword ? 'mdi-eye' : 'mdi-eye-off'"
:error-messages=
"passwordErrors"
:type=
"showPassword ? 'text' : 'password'"
:append-icon=
"showPassword ? 'mdi-eye' : 'mdi-eye-off'"
label=
"Password"
:type=
"showPassword ? 'text' : 'password'"
hint=
"At least 6 characters"
label=
"Password"
required
hint=
"At least 6 characters"
@
input=
"$v.password.$touch()"
required
@
blur=
"$v.password.$touch()"
@
input=
"$v.password.$touch()"
@
click:append=
"showPassword = !showPassword"
@
blur=
"$v.password.$touch()"
/>
@
click:append=
"showPassword = !showPassword"
<v-checkbox
/>
v-model=
"checkbox"
<v-checkbox
:error-messages=
"checkboxErrors"
v-model=
"checkbox"
label=
"Remember me"
color=
"green"
required
label=
"Remember me"
@
change=
"$v.checkbox.$touch()"
required
@
blur=
"$v.checkbox.$touch()"
@
change=
"$v.checkbox.$touch()"
/>
@
blur=
"$v.checkbox.$touch()"
<v-btn
class=
"mr-4"
@
click=
"login"
>
/>
Login
<v-btn
class=
"mr-4"
@
click=
"login"
>
</v-btn>
Login
<v-btn
@
click=
"clear"
>
</v-btn>
clear
<v-btn
@
click=
"clear"
>
</v-btn>
clear
<p
class=
"pt-3"
>
</v-btn>
Don't have an account?
<p
class=
"pt-3"
>
<router-link
to=
"/register"
>
Don't have an account?
Sign up
<router-link
to=
"/register"
>
</router-link>
Sign up
</p>
</router-link>
</form>
</p>
</div>
</form>
</div>
</v-app>
</
template
>
</
template
>
<
script
>
<
script
>
export
default
{
export
default
{
...
@@ -56,6 +58,7 @@ import { validationMixin } from 'vuelidate'
...
@@ -56,6 +58,7 @@ import { validationMixin } from 'vuelidate'
import
{
required
,
minLength
,
email
}
from
'
vuelidate/lib/validators
'
import
{
required
,
minLength
,
email
}
from
'
vuelidate/lib/validators
'
export
default
{
export
default
{
dark
:
false
,
mixins
:
[
validationMixin
],
mixins
:
[
validationMixin
],
layout
:
'
empty
'
,
layout
:
'
empty
'
,
validations
:
{
validations
:
{
...
@@ -143,21 +146,22 @@ export default {
...
@@ -143,21 +146,22 @@ export default {
}
}
}
}
</
script
>
</
script
>
<
style
>
<
style
scoped
>
.body
{
.body
{
display
:
flex
;
display
:
flex
;
justify-content
:
center
;
justify-content
:
center
;
text-align
:
center
;
text-align
:
center
;
align-items
:
center
;
align-items
:
center
;
background-color
:
#
2c2c2c
;
background-color
:
#
8fc2ff
;
height
:
100vh
;
height
:
100vh
;
}
}
.login-form
{
.login-form
{
width
:
27%
;
width
:
27%
;
border
:
#8fc2ff
1px
solid
;
border
:
#8fc2ff
1px
solid
;
background-color
:
#1
21212
;
background-color
:
#1
11f70
;
border-radius
:
1rem
;
border-radius
:
1rem
;
padding
:
2rem
1rem
;
padding
:
2rem
1rem
;
border-radius
:
1rem
;
border-radius
:
1rem
;
}
}
</
style
>
</
style
>
pages/register.vue
View file @
dda1f1e8
...
@@ -64,6 +64,7 @@ import { validationMixin } from 'vuelidate'
...
@@ -64,6 +64,7 @@ import { validationMixin } from 'vuelidate'
import
{
required
,
minLength
,
maxLength
,
email
,
sameAs
}
from
'
vuelidate/lib/validators
'
import
{
required
,
minLength
,
maxLength
,
email
,
sameAs
}
from
'
vuelidate/lib/validators
'
export
default
{
export
default
{
dark
:
false
,
mixins
:
[
validationMixin
],
mixins
:
[
validationMixin
],
layout
:
'
empty
'
,
layout
:
'
empty
'
,
validations
:
{
validations
:
{
...
@@ -164,13 +165,13 @@ export default {
...
@@ -164,13 +165,13 @@ export default {
justify-content
:
center
;
justify-content
:
center
;
text-align
:
center
;
text-align
:
center
;
align-items
:
center
;
align-items
:
center
;
background-color
:
#
2c2c2c
;
background-color
:
#
8fc2ff
;
height
:
100vh
;
height
:
100vh
;
}
}
.login-form
{
.login-form
{
width
:
27%
;
width
:
27%
;
border
:
#8fc2ff
1px
solid
;
border
:
#8fc2ff
1px
solid
;
background-color
:
#1
21212
;
background-color
:
#1
11f70
;
border-radius
:
1rem
;
border-radius
:
1rem
;
padding
:
2rem
1rem
;
padding
:
2rem
1rem
;
border-radius
:
1rem
;
border-radius
:
1rem
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment