From f1a2cddbeae9c87e0fe30090c4132a9e0da22edb Mon Sep 17 00:00:00 2001 From: AzenKain Date: Sat, 27 Sep 2025 09:58:19 +0700 Subject: [PATCH] UPDATE: More optimaze --- src/app/layout.tsx | 4 ++-- src/components/card/characterInfoCard.tsx | 4 +++- src/components/card/lightconeCard.tsx | 5 ++++- src/components/card/profileCard.tsx | 4 +++- src/components/skillsInfo/index.tsx | 4 ++-- 5 files changed, 14 insertions(+), 7 deletions(-) diff --git a/src/app/layout.tsx b/src/app/layout.tsx index b9c841c..d284332 100644 --- a/src/app/layout.tsx +++ b/src/app/layout.tsx @@ -40,8 +40,8 @@ export const metadata: Metadata = { images: [ { url: "https://srtools.kain.id.vn/ff-srtool.png", - width: 630, - height: 630, + width: 312, + height: 312, alt: "Firefly SrTools Logo", }, ], diff --git a/src/components/card/characterInfoCard.tsx b/src/components/card/characterInfoCard.tsx index ab747e3..cf6fcd6 100644 --- a/src/components/card/characterInfoCard.tsx +++ b/src/components/card/characterInfoCard.tsx @@ -90,9 +90,11 @@ export default function CharacterInfoCard({ character, selectedCharacters, onCha {character.lightcone.item_id && (
- {mapLightconeInfo[character.lightcone.item_id.toString()]?.Name} diff --git a/src/components/card/lightconeCard.tsx b/src/components/card/lightconeCard.tsx index 6614081..6d168b2 100644 --- a/src/components/card/lightconeCard.tsx +++ b/src/components/card/lightconeCard.tsx @@ -4,6 +4,7 @@ import { getLocaleName } from '@/helper'; import useLocaleStore from '@/stores/localeStore'; import { LightConeBasic } from '@/types'; import ParseText from '../parseText'; +import Image from 'next/image'; interface LightconeCardProps { data: LightConeBasic @@ -27,9 +28,11 @@ export default function LightconeCard({ data }: LightconeCardProps) { >
- ALT diff --git a/src/components/card/profileCard.tsx b/src/components/card/profileCard.tsx index 0a3b56a..4914011 100644 --- a/src/components/card/profileCard.tsx +++ b/src/components/card/profileCard.tsx @@ -26,9 +26,11 @@ export default function ProfileCard({ profile, selectedProfile, onProfileToggle {profile.lightcone && (
- {mapLightconeInfo[profile.lightcone.item_id.toString()]?.Name} diff --git a/src/components/skillsInfo/index.tsx b/src/components/skillsInfo/index.tsx index 8457e4b..1c55259 100644 --- a/src/components/skillsInfo/index.tsx +++ b/src/components/skillsInfo/index.tsx @@ -157,9 +157,9 @@ export default function SkillsInfo() {