All checks were successful
Build frontend / build (push) Successful in 40s
- Added loading.js (dark/light variants) for all 14 routes - Added error.js (dark/light variants) for all 14 routes - Added global not-found.js and loading.js at root - Admin page shows 404 illustration for non-admin users instead of redirecting
15 lines
513 B
JavaScript
15 lines
513 B
JavaScript
'use client';
|
|
|
|
import { motion } from 'framer-motion';
|
|
|
|
export default function Loading() {
|
|
return (
|
|
<div className="min-h-screen bg-gray-50 flex items-center justify-center">
|
|
<motion.div initial={{ opacity: 0 }} animate={{ opacity: 1 }} className="text-center">
|
|
<div className="w-14 h-14 border-4 border-amber-500 border-t-transparent rounded-full animate-spin mx-auto mb-4" />
|
|
<p className="text-gray-500 text-lg">جاري التحميل...</p>
|
|
</motion.div>
|
|
</div>
|
|
);
|
|
}
|