Files
Ichsan Kurniawan bd42c2defa Revamp task client and project detail pages
This commit adds dedicated loading states and a reusable Reveal animation, and refactors the task client/project detail flows to present a cleaner summary UI. It introduces richer client and project headers, delivery overview cards, improved work-order timeline/team sections, and more consistent visual styling across the task dashboard. The update also improves mobile readability and team assignment presentation, while keeping the same underlying data flow.
2026-10-06 15:58:43 +07:00

20 lines
664 B
TypeScript

"use client"
import type { ReactNode } from 'react';
import { motion, useReducedMotion } from 'motion/react';
/** Entry reveal. Honors prefers-reduced-motion by rendering static. */
export default function Reveal({ children, delay = 0, className }: { children: ReactNode; delay?: number; className?: string }) {
const reduce = useReducedMotion();
return (
<motion.div
className={className}
initial={reduce ? false : { opacity: 0, y: 12 }}
animate={{ opacity: 1, y: 0 }}
transition={{ duration: 0.45, delay, ease: [0.16, 1, 0.3, 1] }}
>
{children}
</motion.div>
);
}