Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vcci-news-frontend
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-frontend
Commits
1e3a3f6d
Commit
1e3a3f6d
authored
Oct 23, 2026
by
Phạm Quang Bảo
Browse files
Options
Browse Files
Download
Plain Diff
[tag]0.1-prod
parents
7f6ccbf5
6596db21
Pipeline
#53924
passed with stages
in 2 minutes and 8 seconds
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
7 deletions
+11
-7
index.tsx
src/app/(main)/[...slug]/templates/news-page/index.tsx
+5
-3
news-listing.tsx
src/app/(main)/news/news-listing.tsx
+6
-4
No files found.
src/app/(main)/[...slug]/templates/news-page/index.tsx
View file @
1e3a3f6d
...
@@ -159,12 +159,12 @@ export default function NewsPage({ category, allCategories }: NewsPageProps) {
...
@@ -159,12 +159,12 @@ export default function NewsPage({ category, allCategories }: NewsPageProps) {
className=
"group grid items-center gap-5 sm:grid-cols-[250px_minmax(0,1fr)]"
className=
"group grid items-center gap-5 sm:grid-cols-[250px_minmax(0,1fr)]"
>
>
<
div
className=
"relative overflow-hidden rounded-md bg-[#edf1f5] aspect-[25/15] sm:aspect-[5/3]"
>
<
div
className=
"relative overflow-hidden rounded-md bg-[#edf1f5] aspect-[25/15] sm:aspect-[5/3]"
>
<
Image
<
img
src=
{
getDynamicPostSeoImage
(
item
)
}
src=
{
getDynamicPostSeoImage
(
item
)
}
alt=
{
item
.
title
}
alt=
{
item
.
title
}
width=
{
520
}
onError=
{
(
e
)
=>
{
e
.
currentTarget
.
src
=
"/thumbnail.png"
;
}
}
height=
{
360
}
className=
"absolute inset-0 h-full w-full object-cover transition-transform duration-500 group-hover:scale-[1.03]"
className=
"absolute inset-0 h-full w-full object-cover transition-transform duration-500 group-hover:scale-[1.03]"
loading=
"lazy"
/>
/>
</
div
>
</
div
>
...
@@ -258,3 +258,5 @@ export default function NewsPage({ category, allCategories }: NewsPageProps) {
...
@@ -258,3 +258,5 @@ export default function NewsPage({ category, allCategories }: NewsPageProps) {
</
div
>
</
div
>
);
);
}
}
src/app/(main)/news/news-listing.tsx
View file @
1e3a3f6d
...
@@ -147,12 +147,12 @@ export default function NewsListing() {
...
@@ -147,12 +147,12 @@ export default function NewsListing() {
className=
"group grid items-center gap-5 sm:grid-cols-[250px_minmax(0,1fr)]"
className=
"group grid items-center gap-5 sm:grid-cols-[250px_minmax(0,1fr)]"
>
>
<
div
className=
"relative aspect-[25/15] overflow-hidden rounded-md bg-[#edf1f5] sm:aspect-[5/3]"
>
<
div
className=
"relative aspect-[25/15] overflow-hidden rounded-md bg-[#edf1f5] sm:aspect-[5/3]"
>
<
Image
<
img
src=
{
getDynamicPostSeoImage
(
item
)
}
src=
{
getDynamicPostSeoImage
(
item
)
}
alt=
{
item
.
title
}
alt=
{
item
.
title
}
width=
{
520
}
onError=
{
(
e
)
=>
{
e
.
currentTarget
.
src
=
"/thumbnail.png"
;
}
}
height=
{
360
}
className=
"absolute inset-0 h-full w-full object-cover transition-transform duration-500 group-hover:scale-[1.03]"
className=
"absolute inset-0 h-full w-full object-cover transition-transform duration-500 group-hover:scale-[1.03]"
loading=
"lazy"
/>
/>
</
div
>
</
div
>
...
@@ -266,4 +266,6 @@ export default function NewsListing() {
...
@@ -266,4 +266,6 @@ export default function NewsListing() {
</
div
>
</
div
>
</
div
>
</
div
>
);
);
}
}
\ No newline at end of file
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