mirror of
https://github.com/ichsankurnia/hats-app.git
synced 2026-12-05 11:06:29 +00:00
bd42c2defa
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.
20 lines
664 B
TypeScript
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>
|
|
);
|
|
}
|