From 30bde2fe6604343176cd70e7191bda23d0f941d5 Mon Sep 17 00:00:00 2001 From: lebaudantoine Date: Wed, 22 Jan 2025 22:07:26 +0100 Subject: [PATCH] =?UTF-8?q?=E2=99=BB=EF=B8=8F(frontend)=20use=20pandas=20u?= =?UTF-8?q?tilities?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Forgot how panda css is amazing. They provide all kinds of utilities, and few for accessibility. Amazing! --- src/frontend/src/features/home/routes/Home.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/frontend/src/features/home/routes/Home.tsx b/src/frontend/src/features/home/routes/Home.tsx index e6ebc812..a4903d59 100644 --- a/src/frontend/src/features/home/routes/Home.tsx +++ b/src/frontend/src/features/home/routes/Home.tsx @@ -32,10 +32,10 @@ const Columns = ({ children }: { children?: ReactNode }) => { justifyContent: 'normal', padding: '0 1rem', width: 'calc(100% - 2rem)', - '@media(prefers-reduced-motion: reduce)': { + _motionReduce: { opacity: 1, }, - '@media(prefers-reduced-motion: no-preference)': { + _motionSafe: { opacity: 0, animation: '.5s ease-in fade 0s forwards', },