Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
VCCI-News
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
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
Văn Hoàng
VCCI-News
Commits
2a204210
Commit
2a204210
authored
Oct 31, 2025
by
Phạm Quang Bảo
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update/add hover button category
parent
984d0f95
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
page.tsx
src/app/(main)/(home)/page.tsx
+3
-3
No files found.
src/app/(main)/(home)/page.tsx
View file @
2a204210
...
...
@@ -81,6 +81,7 @@ const Home = () => {
{
/* Banner */
}
<
Swiper
modules=
{
[
Autoplay
]
}
// navigation
autoplay=
{
{
delay
:
4000
,
disableOnInteraction
:
false
}
}
loop
slidesPerView=
{
1
}
...
...
@@ -123,7 +124,6 @@ const Home = () => {
<
Swiper
modules=
{
[
Autoplay
]
}
// navigation
// pagination={{ clickable: true }}
autoplay=
{
{
delay
:
4000
,
disableOnInteraction
:
false
}
}
loop
spaceBetween=
{
30
}
...
...
@@ -187,7 +187,7 @@ const Home = () => {
{
/* category tabs */
}
<
div
className=
'flex mb-5 flex-wrap justify-between'
>
<
button
className=
{
`w-22 cursor-pointer px-4 py-1 rounded-md border ${'all' === tab ? 'border-blue-700 bg-blue-50' : 'border-gray-300 bg-white'}`
}
className=
{
`w-22 cursor-pointer
hover:bg-border-blue-700 hover:bg-blue-50
px-4 py-1 rounded-md border ${'all' === tab ? 'border-blue-700 bg-blue-50' : 'border-gray-300 bg-white'}`
}
onClick=
{
()
=>
setTab
(
'all'
)
}
>
Tất cả
...
...
@@ -195,7 +195,7 @@ const Home = () => {
{
categoryData
?.
responseData
.
rows
.
slice
(
0
,
3
).
map
((
category
)
=>
(
<
button
key=
{
category
.
id
}
className=
{
`w-22 cursor-pointer px-4 py-1 rounded-md border ${category.name === tab ? 'border-blue-700 bg-blue-50' : 'border-gray-300 bg-white'}`
}
className=
{
`w-22 cursor-pointer
hover:bg-border-blue-700 hover:bg-blue-50
px-4 py-1 rounded-md border ${category.name === tab ? 'border-blue-700 bg-blue-50' : 'border-gray-300 bg-white'}`
}
onClick=
{
()
=>
setTab
(
category
.
name
)
}
>
{
category
.
name
}
...
...
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