mirror of
https://github.com/ichsankurnia/hats-app.git
synced 2026-12-06 08:46:28 +00:00
28 lines
1.8 KiB
TypeScript
28 lines
1.8 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.gif" 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 className="rounded-full border border-border p-2">
|
|
<svg xmlns="http://www.w3.org/2000/svg" className="icon icon-tabler icon-tabler-terminal animate-pulse" width="36" height="36" viewBox="0 0 24 24" strokeWidth="2" stroke="currentColor" fill="none" strokeLinecap="round" strokeLinejoin="round">
|
|
<path stroke="none" d="M0 0h24v24H0z" fill="none"></path>
|
|
<path d="M5 7l5 5l-5 5"></path>
|
|
<path d="M12 19l7 0"></path>
|
|
</svg>
|
|
</div> */}
|
|
</div>
|
|
);
|
|
}
|
|
|
|
export default PageLoading |