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: [
{
url: "https://srtools.kain.id.vn/ff-srtool.png",
width: 630,
height: 630,
width: 312,
height: 312,
alt: "Firefly SrTools Logo",
},
],

View File

@@ -90,9 +90,11 @@ export default function CharacterInfoCard({ character, selectedCharacters, onCha
{character.lightcone.item_id && (
<div className="">
<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`}
alt={mapLightconeInfo[character.lightcone.item_id.toString()]?.Name}
width={348}
height={408}
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 { 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) {
>
<div className="relative w-full h-full">
<img
<Image
loading="lazy"
src={`https://api.hakush.in/hsr/UI/lightconemediumicon/${data.id}.webp`}
width={348}
height={408}
className="w-full h-full rounded-md object-cover"
alt="ALT"
/>

View File

@@ -26,9 +26,11 @@ export default function ProfileCard({ profile, selectedProfile, onProfileToggle
{profile.lightcone && (
<div className="">
<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`}
alt={mapLightconeInfo[profile.lightcone.item_id.toString()]?.Name}
width={348}
height={408}
className="w-full h-full object-contain rounded-lg"
/>

View File

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