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
5948684f
Commit
5948684f
authored
Dec 07, 2025
by
Phạm Quang Bảo
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix/loading page and slider home
parent
0fcf0838
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
13 additions
and
1 deletion
+13
-1
page.tsx
src/app/(main)/(home)/page.tsx
+0
-1
page.tsx
src/app/(main)/[...slug]/page.tsx
+13
-0
No files found.
src/app/(main)/(home)/page.tsx
View file @
5948684f
...
...
@@ -17,7 +17,6 @@ const Page = () => {
return
(
<
div
>
<
Banner
/>
{
/* contents */
}
<
div
className=
"container mx-auto px-3 sm:px-6 lg:px-10 space-y-12"
>
<
FeaturedNews
/>
...
...
src/app/(main)/[...slug]/page.tsx
View file @
5948684f
...
...
@@ -42,6 +42,19 @@ export default function DynamicPage() {
},
[
slug
,
category
,
children
,
router
]);
//template
if
(
slug
[
0
]
===
"hoat-dong"
&&
slug
[
1
]
===
"su-kien"
)
{
if
(
slug
.
length
===
2
)
return
<
EventPage
/>;
if
(
slug
.
length
===
3
)
return
<
EventDetailPage
/>;
}
if
(
news
?.
responseData
?.
count
==
0
&&
isLoading
)
{
return
(
<
div
className=
"flex justify-center items-center w-full h-64"
>
<
Spinner
/>
</
div
>
);
}
if
(
news
&&
news
?.
responseData
.
rows
.
length
!==
0
)
{
return
<
ArticleDetailPage
data=
{
news
}
/>;
}
...
...
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