UPDATE: More optimaze
All checks were successful
Gitea Auto Deploy / Deploy-Container (push) Successful in 1m46s

This commit is contained in:
2025-09-27 09:58:19 +07:00
parent 85a8adef47
commit f1a2cddbea
5 changed files with 14 additions and 7 deletions

View File

@@ -40,8 +40,8 @@ export const metadata: Metadata = {
images: [ images: [
{ {
url: "https://srtools.kain.id.vn/ff-srtool.png", url: "https://srtools.kain.id.vn/ff-srtool.png",
width: 630, width: 312,
height: 630, height: 312,
alt: "Firefly SrTools Logo", alt: "Firefly SrTools Logo",
}, },
], ],

View File

@@ -90,9 +90,11 @@ export default function CharacterInfoCard({ character, selectedCharacters, onCha
{character.lightcone.item_id && ( {character.lightcone.item_id && (
<div className=""> <div className="">
<div className="rounded-lg h-42 flex items-center justify-center"> <div className="rounded-lg h-42 flex items-center justify-center">
<img <Image
src={`https://api.hakush.in/hsr/UI/lightconemediumicon/${character.lightcone.item_id}.webp`} src={`https://api.hakush.in/hsr/UI/lightconemediumicon/${character.lightcone.item_id}.webp`}
alt={mapLightconeInfo[character.lightcone.item_id.toString()]?.Name} alt={mapLightconeInfo[character.lightcone.item_id.toString()]?.Name}
width={348}
height={408}
className="w-full h-full object-contain rounded-lg" className="w-full h-full object-contain rounded-lg"
/> />

View File

@@ -4,6 +4,7 @@ import { getLocaleName } from '@/helper';
import useLocaleStore from '@/stores/localeStore'; import useLocaleStore from '@/stores/localeStore';
import { LightConeBasic } from '@/types'; import { LightConeBasic } from '@/types';
import ParseText from '../parseText'; import ParseText from '../parseText';
import Image from 'next/image';
interface LightconeCardProps { interface LightconeCardProps {
data: LightConeBasic data: LightConeBasic
@@ -27,9 +28,11 @@ export default function LightconeCard({ data }: LightconeCardProps) {
> >
<div className="relative w-full h-full"> <div className="relative w-full h-full">
<img <Image
loading="lazy" loading="lazy"
src={`https://api.hakush.in/hsr/UI/lightconemediumicon/${data.id}.webp`} src={`https://api.hakush.in/hsr/UI/lightconemediumicon/${data.id}.webp`}
width={348}
height={408}
className="w-full h-full rounded-md object-cover" className="w-full h-full rounded-md object-cover"
alt="ALT" alt="ALT"
/> />

View File

@@ -26,9 +26,11 @@ export default function ProfileCard({ profile, selectedProfile, onProfileToggle
{profile.lightcone && ( {profile.lightcone && (
<div className=""> <div className="">
<div className="rounded-lg h-42 flex items-center justify-center"> <div className="rounded-lg h-42 flex items-center justify-center">
<img <Image
src={`https://api.hakush.in/hsr/UI/lightconemediumicon/${profile.lightcone.item_id}.webp`} src={`https://api.hakush.in/hsr/UI/lightconemediumicon/${profile.lightcone.item_id}.webp`}
alt={mapLightconeInfo[profile.lightcone.item_id.toString()]?.Name} alt={mapLightconeInfo[profile.lightcone.item_id.toString()]?.Name}
width={348}
height={408}
className="w-full h-full object-contain rounded-lg" className="w-full h-full object-contain rounded-lg"
/> />

View File

@@ -157,9 +157,9 @@ export default function SkillsInfo() {
<Image <Image
src={`/skilltree/${avatarSelected?.baseType?.toUpperCase()}.webp`} src={`/skilltree/${avatarSelected?.baseType?.toUpperCase()}.webp`}
alt="" alt=""
width={612} width={312}
priority={true} priority={true}
height={612} height={312}
style={{ style={{
filter: (theme === "winter" || theme === "cupcake") ? "invert(1)" : "none" filter: (theme === "winter" || theme === "cupcake") ? "invert(1)" : "none"
}} }}