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
984d0f95
Commit
984d0f95
authored
Oct 31, 2025
by
Phạm Quang Bảo
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update/fix desgin and component news content
parent
3d99fb77
Changes
2
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
77 additions
and
57 deletions
+77
-57
NewsContent.tsx
...app/(main)/(home)/components/news-content/NewsContent.tsx
+9
-9
page.tsx
src/app/(main)/(home)/page.tsx
+68
-48
No files found.
src/app/(main)/(home)/components/news-content/NewsContent.tsx
View file @
984d0f95
...
...
@@ -4,24 +4,24 @@ import dayjs from 'dayjs';
import
AppEditorContent
from
'@/components/shared/editor-content'
;
function
NewsContent
({
news
}:
{
news
:
NewsAdminItem
})
{
return
(
<
a
href=
{
`
/tin-tuc/
${news.id}`
}
className=
'flex flex-col sm:flex-row gap-
4 mb-3 bg-white rounded-lg shadow-sm
p-3'
href=
{
`${news.id}`
}
className=
'flex flex-col sm:flex-row gap-
3 mb-3 bg-gray-100 rounded-md
p-3'
>
<
img
// src={`${BASE_URL.imageEndpoint}${news.thumbnail}`}
src=
{
news
.
thumbnail
}
src=
{
`${BASE_URL.imageEndpoint}${news.thumbnail}`
}
alt=
{
news
.
title
}
className=
'w-full sm:w-[120px] h-
[80px]
object-cover rounded-sm'
className=
'w-full sm:w-[120px] h-
20
object-cover rounded-sm'
/>
<
div
className=
'flex-1'
>
<
p
className=
'text-[#0056b3] font-
semibold text-base hover:underline
line-clamp-2'
>
<
p
className=
'text-[#0056b3] font-
bold text-sm
line-clamp-2'
>
{
news
.
title
}
</
p
>
<
div
className=
'text-gray-500 text-sm my-1'
>
{
dayjs
(
news
.
release_at
).
format
(
'DD/MM/YYYY'
)
}
</
div
>
{
/* <AppEditorContent className='line-clamp-4' value={news.description} /> */
}
<
p
className=
'text-gray-500 text-sm my-1'
>
{
dayjs
(
news
.
release_at
).
format
(
'DD/MM/YYYY'
)
}
</
p
>
{
/* <AppEditorContent className='line-clamp-2' value={news.description} /> */
}
</
div
>
</
a
>
);
...
...
src/app/(main)/(home)/page.tsx
View file @
984d0f95
This diff is collapsed.
Click to expand it.
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