mirror of
https://github.com/ichsankurnia/hats-app.git
synced 2026-12-06 20:16:30 +00:00
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.
This commit is contained in:
@@ -0,0 +1,19 @@
|
||||
"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>
|
||||
);
|
||||
}
|
||||
Reference in New Issue
Block a user