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
e021bbda
Commit
e021bbda
authored
Apr 12, 2023
by
Le Dinh Trung
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add feature home-page
parent
a6573e9a
Changes
5
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
427 additions
and
8 deletions
+427
-8
PageCarousels.vue
components/PageCarousels.vue
+1
-5
Header.vue
components/user/Header.vue
+19
-1
index.vue
pages/banners/index.vue
+1
-1
index.vue
pages/home-page/index.vue
+404
-1
login.vue
pages/login.vue
+2
-0
No files found.
components/PageCarousels.vue
View file @
e021bbda
...
...
@@ -14,11 +14,7 @@
class=
"fill-height"
align=
"center"
justify=
"center"
>
<div
class=
"text-h2"
>
{{
index
+
1
}}
</div>
</v-row>
/>
</v-carousel-item>
</v-carousel>
</
template
>
...
...
components/user/Header.vue
View file @
e021bbda
<
template
>
<div>
<div
class=
"header-all"
>
<!-- header top -->
<div
class=
"header-top"
>
<v-container
class=
"pa-0"
>
...
...
@@ -290,6 +290,7 @@ export default {
}
this
.
updateWishlist
()
this
.
updateCart
()
window
.
addEventListener
(
'
scroll
'
,
this
.
handleScroll
)
},
methods
:
{
closeDialog
()
{
...
...
@@ -415,12 +416,29 @@ export default {
duration
:
2000
})
}
},
handleScroll
()
{
const
nav
=
document
.
querySelector
(
'
.header-middle
'
)
const
navv
=
document
.
querySelector
(
'
.header-all
'
)
if
(
window
.
scrollY
>
navv
.
offsetTop
)
{
nav
.
classList
.
add
(
'
sticky
'
)
}
else
{
nav
.
classList
.
remove
(
'
sticky
'
)
}
}
}
}
</
script
>
<
style
scoped
>
.header-middle.sticky
{
position
:
fixed
;
width
:
100%
;
background-color
:
#ffffff
;
z-index
:
100
;
top
:
0
;
box-shadow
:
0
2px
5px
rgba
(
0
,
0
,
0
,
0.1
);
}
.header-top
{
border-bottom
:
1px
solid
rgba
(
0
,
0
,
0
,
0.12
);
font-size
:
12px
;
...
...
pages/banners/index.vue
View file @
e021bbda
...
...
@@ -196,7 +196,7 @@
{{
index
+
1
}}
</
template
>
<
template
#
[`
item
.
image
`
]=
"{ item }"
>
<v-img
:src=
"item.image"
width=
"200"
/>
<v-img
:src=
"item.image"
max-
width=
"200"
/>
</
template
>
<
template
#
[`
item
.
status
`
]=
"{ item }"
>
<v-switch
...
...
pages/home-page/index.vue
View file @
e021bbda
This diff is collapsed.
Click to expand it.
pages/login.vue
View file @
e021bbda
...
...
@@ -10,6 +10,7 @@
required
@
input=
"$v.email.$touch()"
@
blur=
"$v.email.$touch()"
@
keydown.enter=
"login"
/>
<v-text-field
v-model=
"password"
...
...
@@ -22,6 +23,7 @@
@
input=
"$v.password.$touch()"
@
blur=
"$v.password.$touch()"
@
click:append=
"showPassword = !showPassword"
@
keydown.enter=
"login"
/>
<v-checkbox
v-model=
"checkbox"
...
...
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