UPDATE: More optimaze
All checks were successful
Gitea Auto Deploy / Deploy-Container (push) Successful in 1m46s
All checks were successful
Gitea Auto Deploy / Deploy-Container (push) Successful in 1m46s
This commit is contained in:
@@ -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",
|
||||||
},
|
},
|
||||||
],
|
],
|
||||||
|
|||||||
@@ -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"
|
||||||
/>
|
/>
|
||||||
|
|
||||||
|
|||||||
@@ -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"
|
||||||
/>
|
/>
|
||||||
|
|||||||
@@ -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"
|
||||||
/>
|
/>
|
||||||
|
|
||||||
|
|||||||
@@ -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"
|
||||||
}}
|
}}
|
||||||
|
|||||||
Reference in New Issue
Block a user