From f13db0e91e412a5b2f686f6c6bd407ffbd83c107 Mon Sep 17 00:00:00 2001 From: 1ilsang <1ilsang@naver.com> Date: Mon, 23 Dec 2024 18:35:42 +0900 Subject: [PATCH] feat(scss): Remove dynamic image class --- src/features/about/work/card/Container.tsx | 6 +- .../about/work/card/content/Container.tsx | 6 +- .../about/work/card/content/ProjectDetail.tsx | 4 +- .../shared/components/DynamicImage.tsx | 17 +++- src/styles/common.scss | 86 ------------------- tailwind.config.cjs | 23 +++++ 6 files changed, 45 insertions(+), 97 deletions(-) diff --git a/src/features/about/work/card/Container.tsx b/src/features/about/work/card/Container.tsx index 7a80c879..982713a9 100644 --- a/src/features/about/work/card/Container.tsx +++ b/src/features/about/work/card/Container.tsx @@ -34,7 +34,11 @@ const WorkCardContainer: FunctionComponent = ( }, [toggleOpenAll]); const openClassName = - open === undefined ? 'max-h-[8000px]' : open ? 'show' : 'hide'; + open === undefined + ? 'max-h-[8000px]' + : open + ? 'animate-show' + : 'animate-hide'; return (
diff --git a/src/features/about/work/card/content/Container.tsx b/src/features/about/work/card/content/Container.tsx index 8152d6d3..057e16c5 100644 --- a/src/features/about/work/card/content/Container.tsx +++ b/src/features/about/work/card/content/Container.tsx @@ -31,9 +31,9 @@ const CompanyContentProject: FunctionComponent = ( 'before:content-["▼"] text-highlight print:text-black print:before:text-black'; const openClassName = (() => { - if (print) return 'show'; + if (print) return 'animate-show'; if (open === undefined) return 'invisible opacity-0 max-h-0'; - return open ? 'show' : 'hide'; + return open ? 'animate-show' : 'animate-hide'; })(); const foldState = (() => { if (print) return unfold; @@ -41,7 +41,7 @@ const CompanyContentProject: FunctionComponent = ( })(); const externalLink = (() => { if (print) return undefined; - return open !== undefined && url && openClassName !== 'hide'; + return open !== undefined && url && openClassName !== 'animate-hide'; })(); return ( diff --git a/src/features/about/work/card/content/ProjectDetail.tsx b/src/features/about/work/card/content/ProjectDetail.tsx index 8b6ef5f7..4bb9919d 100644 --- a/src/features/about/work/card/content/ProjectDetail.tsx +++ b/src/features/about/work/card/content/ProjectDetail.tsx @@ -22,9 +22,7 @@ const ProjectDetail: FunctionComponent = memo( }; return ( -
+
{!print && img && ( = ({ return (
-