Update PageLoader.tsx

This commit is contained in:
Egor
2026-01-27 01:21:33 +03:00
committed by GitHub
parent 89aba6d034
commit ce499ad5fd

View File

@@ -1,21 +1,14 @@
import { DotLottieReact } from '@lottiefiles/dotlottie-react'
interface PageLoaderProps {
variant?: 'dark' | 'light'
}
export default function PageLoader({ variant = 'dark' }: PageLoaderProps) {
const bgClass = variant === 'dark' ? 'bg-dark-950' : 'bg-gray-50'
const spinnerColor = variant === 'dark' ? 'border-accent-500' : 'border-blue-500'
return (
<div className={`min-h-screen flex items-center justify-center ${bgClass}`}>
<div className="w-48 max-w-full">
<DotLottieReact
src="https://lottie.host/14b9dc34-cdaf-408c-87ea-291c1b01e343/r2rZZVuahg.lottie"
loop
autoplay
/>
</div>
<div className={`w-10 h-10 border-[3px] ${spinnerColor} border-t-transparent rounded-full animate-spin`} />
</div>
)
}