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
b7120657
Commit
b7120657
authored
Apr 12, 2023
by
Le Dinh Trung
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix css home-page
parent
f44b6471
Changes
5
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
280 additions
and
44 deletions
+280
-44
FooterBar.vue
components/FooterBar.vue
+156
-23
NavBar.vue
components/user/NavBar.vue
+5
-1
user.vue
layouts/user.vue
+98
-0
index.vue
pages/home-page/categories/index.vue
+1
-15
index.vue
pages/home-page/index.vue
+20
-5
No files found.
components/FooterBar.vue
View file @
b7120657
<!-- eslint-disable vue/no-parsing-error -->
<!-- eslint-disable vue/no-parsing-error -->
<
template
>
<
template
>
<v-footer
class=
"footer-bar mt-12 flex-wrap"
dark
padless
>
<v-footer
class=
"footer-bar mt-12 flex-wrap"
dark
padless
>
<v-container
class=
"footer-top"
>
<v-row
class=
"d-flex justify-space-between align-center"
>
<v-row
class=
"d-flex justify-space-between align-center"
>
<v-col
<v-col
cols=
"12"
cols=
"12"
...
@@ -19,10 +20,104 @@
...
@@ -19,10 +20,104 @@
cols=
"12"
cols=
"12"
md=
"2"
md=
"2"
>
>
<v-text-field
label=
"email address here ..."
></v-text-field
>
<v-text-field
label=
"email address here ..."
/
>
</v-col>
</v-col>
<v-btn
color=
"primary"
>
SUBSCRIBE
</v-btn>
<v-btn
color=
"primary"
>
SUBSCRIBE
</v-btn>
</v-row>
</v-row>
</v-container>
<v-container
class=
"divider-mid"
>
<v-divider
/>
</v-container>
<v-container
class=
"footer-mid"
>
<v-row
class=
"d-flex align-center"
>
<v-col
class=
"d-flex-column"
cols=
"3"
>
<h4
class=
"title"
>
Contact Info
</h4>
<div
class=
"footer-content d-flex-column"
>
<div>
PHONE: 012345678
</div>
<div>
EMAIL: mail@riode.com
</div>
<div>
PHONE: 123 StreetLand, City, England
</div>
<div>
WORKINGDAY / HOURS
</div>
<div>
Mon-Sun / 9:00 AM - 8:00 PM
</div>
</div>
</v-col>
<v-col
class=
"content-mid d-flex-column"
cols=
"3"
>
<h4
class=
"title"
>
My Account
</h4>
<div
class=
"footer-content d-flex-column"
>
<div>
About Us
</div>
<div>
Order History
</div>
<div>
Returns
</div>
<div>
Custom Service
</div>
<div>
Terms
&
Condition
</div>
</div>
</v-col>
<v-col
class=
"d-flex-column"
cols=
"3"
>
<h4
class=
"title"
>
Contact Info
</h4>
<div
class=
"footer-content d-flex-column"
>
<div>
Sign in
</div>
<div>
View Cart
</div>
<div>
My Wishlist
</div>
<div>
Track My Order
</div>
<div>
Help
</div>
</div>
</v-col>
<v-col
class=
"d-flex-column"
cols=
"3"
>
<h4
class=
"title"
>
Instagram
</h4>
<div
class=
"footer-content d-flex-column"
>
<v-img
src=
"https://d-themes.com/html/riode/images/demos/demo1/banners/banner1.jpg"
/>
</div>
</v-col>
</v-row>
</v-container>
<v-container
class=
"footer-bottom"
>
<v-divider
class=
"bottom-hr"
/>
<v-row
class=
"bottom-line d-flex-row justify-space-between"
>
<div>
<v-img
src=
"https://d-themes.com/html/riode/images/payment.png"
/>
</div>
<div>
<span>
Riode eCommerce © 2022. All Rights Reserved
</span>
</div>
<div>
<v-btn
color=
"black"
fab
x-small
dark
outlined
>
<v-icon>
mdi-facebook
</v-icon>
</v-btn>
<v-btn
color=
"black"
fab
x-small
dark
outlined
>
<v-icon>
mdi-twitter
</v-icon>
</v-btn>
<v-btn
color=
"black"
fab
x-small
dark
outlined
>
<v-icon>
mdi-instagram
</v-icon>
</v-btn>
</div>
</v-row>
</v-container>
</v-footer>
</v-footer>
</
template
>
</
template
>
...
@@ -39,6 +134,44 @@ export default {
...
@@ -39,6 +134,44 @@ export default {
<
style
>
<
style
>
.footer-bar
{
.footer-bar
{
min-height
:
350px
;
min-height
:
350px
;
padding
:
4rem
;
padding-top
:
0px
;
}
.container
{
max-width
:
1185px
;
}
.divider-mid
{
margin-top
:
0px
;
}
.footer-mid
{
margin-top
:
0px
;
}
.footer-content
{
gap
:
10px
;
display
:
flex
;
flex-direction
:
column
;
color
:
#999
;
font-size
:
15px
;
}
.title
{
margin-bottom
:
10px
;
}
.footer-bottom
{
margin-bottom
:
20px
;
}
.bottom-hr
{
margin-bottom
:
40px
;
}
.bottom-line
{
padding
:
15px
;
}
.content-mid
{
align-items
:
center
!important
;
}
@media
only
screen
and
(
max-width
:
500px
)
{
.content-mid
{
display
:
flex
;
flex-direction
:
column
;
align-items
:
flex-start
!important
;
}
}
}
</
style
>
</
style
>
components/user/NavBar.vue
View file @
b7120657
...
@@ -20,16 +20,19 @@
...
@@ -20,16 +20,19 @@
<span>
<span>
Pages
Pages
</span>
</span>
<v-icon>
mdi-chevron-down
</v-icon>
</div>
</div>
<div
class=
"navbar-item"
>
<div
class=
"navbar-item"
>
<span>
<span>
Blogs
Blogs
</span>
</span>
<v-icon>
mdi-chevron-down
</v-icon>
</div>
</div>
<div
class=
"navbar-item"
>
<div
class=
"navbar-item"
>
<span>
<span>
About
About
</span>
</span>
<v-icon>
mdi-chevron-down
</v-icon>
</div>
</div>
</div>
</div>
<div
class=
"d-flex align-center none-tag"
>
<div
class=
"d-flex align-center none-tag"
>
...
@@ -121,9 +124,10 @@ export default {
...
@@ -121,9 +124,10 @@ export default {
.navbar-left
{
.navbar-left
{
width
:
50%
;
width
:
50%
;
display
:
flex
;
display
:
flex
;
justify-content
:
space-between
;
/* justify-content: space-between; */
padding-left
:
0
;
padding-left
:
0
;
padding-right
:
0
;
padding-right
:
0
;
gap
:
15px
;
}
}
.dropdown
{
.dropdown
{
position
:
relative
;
position
:
relative
;
...
...
layouts/user.vue
View file @
b7120657
...
@@ -2,6 +2,21 @@
...
@@ -2,6 +2,21 @@
<v-app>
<v-app>
<UserHeader
ref=
"child"
/>
<UserHeader
ref=
"child"
/>
<Nuxt
/>
<Nuxt
/>
<div
class=
"badge-slide"
>
<v-btn
elevation=
"2"
color=
"black"
tile
class=
"badge"
>
<a
href=
"#our-categories"
><v-icon>
mdi-home
</v-icon></a>
</v-btn>
<v-btn
elevation=
"2"
color=
"black"
tile
class=
"badge-1"
>
<a
href=
"#"
><v-icon>
mdi-information
</v-icon></a>
</v-btn>
<v-btn
elevation=
"2"
color=
"black"
tile
class=
"badge-2"
>
<a
href=
"#"
><v-icon>
mdi-star
</v-icon></a>
</v-btn>
<v-btn
elevation=
"2"
color=
"primary"
tile
class=
"badge-3"
>
<a
href=
"#"
><v-icon>
mdi-cart
</v-icon></a>
</v-btn>
<a
href=
"#"
class=
"scroll-to-top-btn"
><v-icon>
mdi-arrow-up-bold
</v-icon></a>
</div>
<FooterBar
/>
<FooterBar
/>
</v-app>
</v-app>
</
template
>
</
template
>
...
@@ -16,6 +31,9 @@ export default {
...
@@ -16,6 +31,9 @@ export default {
FooterBar
FooterBar
},
},
components
:
{
FooterBar
},
components
:
{
FooterBar
},
mounted
()
{
this
.
scrollToTop
()
},
created
()
{
created
()
{
this
.
changeColor
()
this
.
changeColor
()
},
},
...
@@ -23,6 +41,26 @@ export default {
...
@@ -23,6 +41,26 @@ export default {
changeColor
()
{
changeColor
()
{
this
.
$vuetify
.
theme
.
dark
=
!
this
.
$vuetify
.
theme
.
dark
this
.
$vuetify
.
theme
.
dark
=
!
this
.
$vuetify
.
theme
.
dark
return
true
return
true
},
scrollToTop
()
{
window
.
addEventListener
(
'
scroll
'
,
function
()
{
const
scrollPos
=
window
.
scrollY
const
scrollToTopBtn
=
document
.
querySelector
(
'
.scroll-to-top-btn
'
)
if
(
scrollPos
>
500
)
{
scrollToTopBtn
.
classList
.
add
(
'
active
'
)
}
else
{
scrollToTopBtn
.
classList
.
remove
(
'
active
'
)
}
})
document
.
querySelector
(
'
.scroll-to-top-btn
'
).
addEventListener
(
'
click
'
,
function
(
e
)
{
e
.
preventDefault
()
window
.
scrollTo
({
top
:
0
,
behavior
:
'
smooth
'
})
})
}
}
}
}
}
}
...
@@ -32,4 +70,64 @@ export default {
...
@@ -32,4 +70,64 @@ export default {
body
{
body
{
font-family
:
monospace
;
font-family
:
monospace
;
}
}
.scroll-to-top-btn
{
display
:
none
;
position
:
fixed
;
bottom
:
20px
;
right
:
20px
;
width
:
50px
;
height
:
50px
;
box-shadow
:
0
0
20px
0
rgba
(
0
,
0
,
0
,
0.1
);
background-color
:
#ffffff
;
border-radius
:
50%
;
text-align
:
center
;
font-size
:
24px
;
line-height
:
50px
;
z-index
:
99
;
}
.scroll-to-top-btn
:hover
{
background-color
:
#1b92cd
;
}
.scroll-to-top-btn
i
{
transform
:
translateY
(
-2px
);
}
.scroll-to-top-btn.active
{
display
:
block
;
}
.badge
{
position
:
fixed
;
right
:
0
;
top
:
220px
;
width
:
40px
!important
;
min-width
:
40px
!important
;
}
.badge-1
{
position
:
fixed
;
right
:
0
;
top
:
260px
;
width
:
40px
!important
;
min-width
:
40px
!important
;
}
.badge-2
{
position
:
fixed
;
right
:
0
;
top
:
300px
;
width
:
40px
!important
;
min-width
:
40px
!important
;
}
.badge-3
{
position
:
fixed
;
right
:
0
;
top
:
340px
;
width
:
40px
!important
;
min-width
:
40px
!important
;
}
@media
only
screen
and
(
max-width
:
768px
)
{
.badge-slide
{
display
:
none
;
}
}
</
style
>
</
style
>
pages/home-page/categories/index.vue
View file @
b7120657
...
@@ -39,20 +39,6 @@
...
@@ -39,20 +39,6 @@
height=
"250px"
height=
"250px"
cover
cover
/>
/>
<!--
<v-card-actions
v-if=
"hover"
class=
"d-flex align-center justify-center"
style=
"position: absolute"
>
<v-btn
v-for=
"(icon, index) in icons"
:key=
"index"
:class=
"
{ 'show-btns': hover }"
icon
>
<v-icon
:class=
"
{ 'show-btns': hover }"
>
{{
icon
}}
</v-icon>
</v-btn>
</v-card-actions>
-->
</div>
</div>
<v-card-title
class=
"d-flex justify-center"
>
<v-card-title
class=
"d-flex justify-center"
>
{{
item
.
name
}}
{{
item
.
name
}}
...
@@ -60,7 +46,7 @@
...
@@ -60,7 +46,7 @@
<v-card-subtitle
class=
"d-flex justify-center"
>
<v-card-subtitle
class=
"d-flex justify-center"
>
{{
item
.
price
}}
{{
item
.
price
}}
</v-card-subtitle>
</v-card-subtitle>
<v-card-actions
class=
"d-flex justify-center"
>
<v-card-actions
class=
"d-flex justify-center
card-actions
"
>
<v-btn
<v-btn
:class=
"
{ 'show-btns': hover }"
:class=
"
{ 'show-btns': hover }"
icon
icon
...
...
pages/home-page/index.vue
View file @
b7120657
...
@@ -5,7 +5,7 @@
...
@@ -5,7 +5,7 @@
<!-- categories -->
<!-- categories -->
<v-container>
<v-container>
<div
class=
"d-flex justify-center align-center mt-12"
>
<div
class=
"d-flex justify-center align-center mt-12"
>
<h2
class=
"sub-title mb-5"
>
<h2
id=
"our-categories"
class=
"sub-title mb-5"
>
Our Categories
Our Categories
</h2>
</h2>
</div>
</div>
...
@@ -81,10 +81,11 @@
...
@@ -81,10 +81,11 @@
<v-card-subtitle
class=
"d-flex justify-center"
>
<v-card-subtitle
class=
"d-flex justify-center"
>
{{
item
.
price
}}
{{
item
.
price
}}
</v-card-subtitle>
</v-card-subtitle>
<v-card-actions
class=
"d-flex justify-center"
>
<v-card-actions
class=
"d-flex justify-center
card-actions
"
>
<v-btn
<v-btn
:class=
"
{ 'show-btns': hover }"
:class=
"
{ 'show-btns': hover }"
icon
icon
style="margin-left:8px"
>
>
<v-icon
<v-icon
:class=
"
{ 'show-btns': hover }"
:class=
"
{ 'show-btns': hover }"
...
@@ -160,7 +161,7 @@
...
@@ -160,7 +161,7 @@
<v-card-subtitle
class=
"d-flex justify-center"
>
<v-card-subtitle
class=
"d-flex justify-center"
>
{{
item
.
price
}}
{{
item
.
price
}}
</v-card-subtitle>
</v-card-subtitle>
<v-card-actions
class=
"d-flex justify-center"
>
<v-card-actions
class=
"d-flex justify-center
card-actions
"
>
<v-btn
<v-btn
:class=
"
{ 'show-btns': hover }"
:class=
"
{ 'show-btns': hover }"
icon
icon
...
@@ -423,4 +424,18 @@ export default {
...
@@ -423,4 +424,18 @@ export default {
.card-4
{
.card-4
{
overflow
:
hidden
;
overflow
:
hidden
;
}
}
.card-actions
{
display
:
none
!important
;
}
.v-card
:hover
.card-actions
{
display
:
flex
!important
;
flex-direction
:
column
;
gap
:
5px
;
top
:
0
;
right
:
0
;
position
:
absolute
;
}
.card-actions
>
.v-btn
{
background-color
:
#ffffff
;
}
</
style
>
</
style
>
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