File tree Expand file tree Collapse file tree 4 files changed +4
-67
lines changed
Expand file tree Collapse file tree 4 files changed +4
-67
lines changed Original file line number Diff line number Diff line change @@ -14,7 +14,7 @@ export default function DarkModeButton({ animate }: Props) {
1414 return (
1515 < motion . button
1616 onClick = { toggleDarkMode }
17- className = 'pointer-events-auto absolute flex h-[30px ] w-[30px ] items-center justify-center rounded-full hover:scale-110 '
17+ className = 'pointer-events-auto flex h-[50px ] w-[50px ] items-center justify-center rounded-full hover:scale-150 '
1818 animate = { animate } >
1919 < Img
2020 src = { FaviconImg }
Original file line number Diff line number Diff line change 1- import FaviconImg from '@asset/image/Favicon.svg' ;
21import H1 from '@component/atom/H1' ;
3- import Img from '@component/atom/Img ' ;
2+ import DarkModeButton from '@component/molecule/DarkModeButton ' ;
43import { useNavigate } from 'react-router-dom' ;
54
65export default function NavbarTitle ( ) {
@@ -12,8 +11,8 @@ export default function NavbarTitle() {
1211
1312 return (
1413 < div className = 'my-2 w-full' >
15- < div className = 'flex min-w-0 cursor-pointer items-center gap-2 ' onClick = { navigateMain } >
16- < Img src = { FaviconImg } cssOption = 'w-[36px]' alt = '와치덕스 로고 이미지' />
14+ < div className = 'flex min-w-0 cursor-pointer items-center' onClick = { navigateMain } >
15+ < DarkModeButton />
1716 < H1 cssOption = 'font-bold text-[1.6vw] truncate dark:text-white' content = 'WatchDucks' />
1817 </ div >
1918 </ div >
Original file line number Diff line number Diff line change 11import CustomErrorBoundary from '@boundary/CustomErrorBoundary' ;
2- import DarkModeButton from '@component/molecule/DarkModeButton' ;
32import NavbarCustomSelect from '@component/molecule/NavbarCustomSelect' ;
43import NavbarDefaultSelect from '@component/molecule/NavbarDefaultSelect' ;
54import { PATH } from '@constant/Path' ;
6- import { useDuckAnimation } from '@hook/useDarkModeAnimation' ;
75import { useRef } from 'react' ;
86import { useLocation } from 'react-router-dom' ;
97
108export default function NavbarSelectWrapper ( ) {
119 const { pathname } = useLocation ( ) ;
1210 const isProjectPath = pathname . includes ( PATH . PROJECT ) ;
1311 const containerRef = useRef < HTMLDivElement > ( null ) ;
14- const duckAnimation = useDuckAnimation ( { containerRef } ) ;
15-
1612 return (
1713 < div className = 'relative mt-[8px] w-full' >
1814 < div ref = { containerRef } >
@@ -24,9 +20,6 @@ export default function NavbarSelectWrapper() {
2420 </ CustomErrorBoundary >
2521 ) }
2622 </ div >
27- < div className = 'pointer-events-none absolute left-0 top-0 h-full w-full' >
28- < DarkModeButton animate = { duckAnimation } />
29- </ div >
3023 </ div >
3124 ) ;
3225}
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments