Files
Ichsan Kurniawan c1b41f0718 Update loader image to webp and update app metadata
Replaced the loader animation from GIF to WEBP for improved performance. Updated the HATs Team page description and corrected the release note date. Enhanced package.json with project metadata and incremented version to 1.1.0. Adjusted proxy matcher to exclude hats-team and release-notes routes.
2026-01-28 19:27:03 +07:00

21 lines
1.2 KiB
TypeScript

import { FC } from "react";
import Image from "next/image";
import { cn } from "@/lib/utils";
type Props = {
title?: string
className?: string
}
const PageLoading: FC<Props> = ({ title, className }) => {
return (
<div className={cn('absolute inset-0 w-full h-full bg-soft dark:bg-zinc-950 bg-opacity-40 backdrop-blur-sm rounded-2xl z-50 flex justify-center items-center flex-col', className)}>
{/* <img alt="anim" loading="lazy" src="/assets/LOGO_HIS_NI_ANIM_400px.gif" className="w-16 h-16 md:w-28 md:h-28 2xl:w-44 2xl:h-44" /> */}
<Image alt='anim' src="/assets/LOGO_HIS_NI_ANIM_400px.webp" width={0} height={0} className="w-16 h-16 md:w-28 md:h-28 2xl:w-44 2xl:h-44" unoptimized />
{/* <span className="relative inset-0 inline-flex h-8 w-8 animate-spin items-center justify-center rounded-full border-4 border-zinc-500 dark:border-zinc-400 after:absolute after:h-11 after:w-11 after:rounded-full after:border-4 after:border-y-his dark:after:border-y-his after:border-x-transparent"></span> */}
<span className="animate-pulse text-sm md:text-base 2xl:text-xl font-semibold text-muted-foreground">{title || 'Please wait..'}</span>
</div>
);
}
export default PageLoading