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
f6661d58
Commit
f6661d58
authored
Aug 10, 2026
by
Lê Bảo Hồng Đức
☄
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix logo
parent
bc53cf05
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
20 additions
and
5 deletions
+20
-5
logo.png
public/logo.png
+0
-0
header.tsx
src/app/(main)/_lib/layout/header.tsx
+13
-3
admin-sidebar.tsx
src/components/shared/admin-sidebar.tsx
+7
-2
No files found.
public/logo.png
0 → 100644
View file @
f6661d58
11 KB
src/app/(main)/_lib/layout/header.tsx
View file @
f6661d58
...
@@ -6,7 +6,7 @@ import { Facebook, Linkedin, Menu, Twitter, X, Youtube } from "lucide-react";
...
@@ -6,7 +6,7 @@ import { Facebook, Linkedin, Menu, Twitter, X, Youtube } from "lucide-react";
import
{
useQuery
}
from
"@tanstack/react-query"
;
import
{
useQuery
}
from
"@tanstack/react-query"
;
import
Image
from
"next/image"
;
import
Image
from
"next/image"
;
import
Link
from
"next/link"
;
import
Link
from
"next/link"
;
import
logo
from
"@/assets/VCCI-HCM-logo-VN-2025
.png"
;
const
fallbackLogo
=
"/logo
.png"
;
import
{
useGetApiV10Logo
}
from
"@/api/endpoints/logo"
;
import
{
useGetApiV10Logo
}
from
"@/api/endpoints/logo"
;
import
{
getApiV10SiteInformation
}
from
"@/api/endpoints/site-information"
;
import
{
getApiV10SiteInformation
}
from
"@/api/endpoints/site-information"
;
import
{
resolveUploadUrl
}
from
"@/links"
;
import
{
resolveUploadUrl
}
from
"@/links"
;
...
@@ -333,9 +333,14 @@ function Header() {
...
@@ -333,9 +333,14 @@ function Header() {
width=
{
108
}
width=
{
108
}
height=
{
40
}
height=
{
40
}
className=
"h-auto max-h-10 w-[108px] object-contain"
className=
"h-auto max-h-10 w-[108px] object-contain"
src=
{
currentLogo
?.
logo_url
?
resolveUploadUrl
(
currentLogo
.
logo_url
)
:
l
ogo
}
src=
{
currentLogo
?.
logo_url
?
resolveUploadUrl
(
currentLogo
.
logo_url
)
:
fallbackL
ogo
}
alt=
{
currentLogo
?.
logo_name
||
"VCCI-HCM"
}
alt=
{
currentLogo
?.
logo_name
||
"VCCI-HCM"
}
priority
priority
unoptimized=
{
Boolean
(
currentLogo
?.
logo_url
)
}
onError=
{
(
e
)
=>
{
const
img
=
e
.
currentTarget
;
if
(
img
.
src
!==
fallbackLogo
)
img
.
src
=
fallbackLogo
;
}
}
/>
/>
</
Link
>
</
Link
>
...
@@ -387,9 +392,14 @@ function Header() {
...
@@ -387,9 +392,14 @@ function Header() {
width=
{
108
}
width=
{
108
}
height=
{
40
}
height=
{
40
}
className=
"h-auto max-h-10 w-[108px] object-contain"
className=
"h-auto max-h-10 w-[108px] object-contain"
src=
{
currentLogo
?.
logo_url
?
resolveUploadUrl
(
currentLogo
.
logo_url
)
:
l
ogo
}
src=
{
currentLogo
?.
logo_url
?
resolveUploadUrl
(
currentLogo
.
logo_url
)
:
fallbackL
ogo
}
alt=
{
currentLogo
?.
logo_name
||
"VCCI-HCM"
}
alt=
{
currentLogo
?.
logo_name
||
"VCCI-HCM"
}
priority
priority
unoptimized=
{
Boolean
(
currentLogo
?.
logo_url
)
}
onError=
{
(
e
)
=>
{
const
img
=
e
.
currentTarget
;
if
(
img
.
src
!==
fallbackLogo
)
img
.
src
=
fallbackLogo
;
}
}
/>
/>
</
Link
>
</
Link
>
<
button
<
button
...
...
src/components/shared/admin-sidebar.tsx
View file @
f6661d58
...
@@ -19,7 +19,7 @@ import {
...
@@ -19,7 +19,7 @@ import {
import
{
useQuery
}
from
"@tanstack/react-query"
;
import
{
useQuery
}
from
"@tanstack/react-query"
;
import
{
useGetApiV10Logo
}
from
"@/api/endpoints/logo"
;
import
{
useGetApiV10Logo
}
from
"@/api/endpoints/logo"
;
import
type
{
Logo
}
from
"@/api/models/logo"
;
import
type
{
Logo
}
from
"@/api/models/logo"
;
import
logo
from
"@/assets/VCCI-HCM-logo-VN-2025
.png"
;
const
fallbackLogo
=
"/logo
.png"
;
import
{
resolveUploadUrl
}
from
"@/links"
;
import
{
resolveUploadUrl
}
from
"@/links"
;
type
LogoListEnvelope
=
{
type
LogoListEnvelope
=
{
...
@@ -157,12 +157,17 @@ export function AdminSidebar() {
...
@@ -157,12 +157,17 @@ export function AdminSidebar() {
>
>
<
div
className=
"flex h-14 w-14 shrink-0 items-center justify-center rounded-2xl border border-[#063e8e]/10 bg-[#f8fbff] shadow-sm"
>
<
div
className=
"flex h-14 w-14 shrink-0 items-center justify-center rounded-2xl border border-[#063e8e]/10 bg-[#f8fbff] shadow-sm"
>
<
Image
<
Image
src=
{
logoData
?.
logo_url
?
resolveUploadUrl
(
logoData
.
logo_url
)
:
l
ogo
}
src=
{
logoData
?.
logo_url
?
resolveUploadUrl
(
logoData
.
logo_url
)
:
fallbackL
ogo
}
alt=
{
logoData
?.
logo_name
||
"VCCI HCM"
}
alt=
{
logoData
?.
logo_name
||
"VCCI HCM"
}
width=
{
40
}
width=
{
40
}
height=
{
40
}
height=
{
40
}
className=
"h-10 w-10 object-contain"
className=
"h-10 w-10 object-contain"
priority
priority
unoptimized=
{
Boolean
(
logoData
?.
logo_url
)
}
onError=
{
(
e
)
=>
{
const
img
=
e
.
currentTarget
;
if
(
img
.
src
!==
fallbackLogo
)
img
.
src
=
fallbackLogo
;
}
}
/>
/>
</
div
>
</
div
>
...
...
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