Skip to content

Commit b77caed

Browse files
committed
[design] header/footer 반응형 수정
1 parent f3222aa commit b77caed

File tree

8 files changed

+24
-22
lines changed

8 files changed

+24
-22
lines changed
Lines changed: 1 addition & 1 deletion
Loading

src/shared/components/footer/Footer.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,10 @@ import Github from './Github';
22

33
function Footer() {
44
return (
5-
<footer className="w-full h-26 bg-primary flex items-center justify-between p-[12px] font-serif font-light">
5+
<footer className="w-full bg-primary flex items-center justify-between p-[12px] font-serif font-light">
66
<div className="flex flex-col gap-1">
7-
<p>Cocktail Discovery Service, SSOUL </p>
8-
<div className="flex flex-col sm:flex-row gap-0.5 sm:gap-2">
7+
<p className="text-sm md:text-base">Cocktail Discovery Service, SSOUL </p>
8+
<div className="flex flex-col sm:flex-row gap-0.5 sm:gap-2 text-sm md:text-base">
99
<span>&copy; 2025 SSOUL.</span>
1010
<span>All rights reserved.</span>
1111
</div>

src/shared/components/header/DropdownMenu.tsx

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -70,9 +70,9 @@ function DropdownMenu({ isClicked, setIsClicked }: Props) {
7070
<Image
7171
src="/logoDark.svg"
7272
alt="Ssoul 로고"
73-
width={60}
74-
height={19}
75-
className="md:w-[82px] sm:h-[26px]"
73+
width={82}
74+
height={26}
75+
className="w-[62px] md:w-[82px] h-auto"
7676
/>
7777
</div>
7878
<div className="my-5">
@@ -101,8 +101,8 @@ function DropdownMenu({ isClicked, setIsClicked }: Props) {
101101
))}
102102
</ul>
103103
</div>
104-
<div className="border border-t-[1px] border-t-gray flex py-[32px] gap-4">
105-
<User width={32} height={32} />
104+
<div className="border border-t-[1px] border-t-gray flex items-center py-[32px] gap-2">
105+
<User color="var(--color-primary)" />
106106
<button type="button" className="text-black font-light text-xl hover:text-black/70">
107107
로그인/회원가입
108108
</button>
@@ -114,7 +114,7 @@ function DropdownMenu({ isClicked, setIsClicked }: Props) {
114114
setIsClicked(false);
115115
}}
116116
>
117-
<Close stroke={'black'} className="w-8 h-8" />
117+
<Close color="var(--color-primary)" className="w-8 h-8" />
118118
</button>
119119
</div>
120120
</div>

src/shared/components/header/Header.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ function Header() {
1919
useEffect(() => {
2020
const handleScroll = () => {
2121
const currentScrollTop = window.scrollY;
22-
console.log(currentScrollTop, lastScrollTop);
22+
// console.log(currentScrollTop, lastScrollTop);
2323

2424
if (Math.abs(currentScrollTop - lastScrollTop) < -5) return;
2525

src/shared/components/header/HeaderBtn.tsx

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
import Bell from '@/shared/assets/icons/bell_24.svg';
22
import User from '@/shared/assets/icons/user_24.svg';
3-
import SignOut from '@/shared/assets/icons/signout_24.svg';
3+
// import SignOut from '@/shared/assets/icons/sign_out_24.svg';
4+
import SignIn from '@/shared/assets/icons/sign_in_24.svg';
45
import { useRouter } from 'next/navigation';
56
import tw from '@/shared/utills/tw';
67

@@ -27,28 +28,29 @@ function HeaderBtn({ pathname }: { pathname: string }) {
2728
},
2829
},
2930
{
30-
icon: SignOut,
31-
label: '로그아웃',
31+
icon: SignIn,
32+
label: '로그인',
3233
className: 'sm:block hidden',
3334
onClick: () => {
3435
// console.log('로그아웃 클릭');
36+
router.push('/login');
3537
},
3638
},
3739
];
3840

3941
return (
40-
<div className="flex gap-[12px]">
42+
<div className="flex gap-3">
4143
{headerBtn.map(({ icon: Icon, label, onClick, className }) => (
4244
<button
4345
key={label}
4446
className={tw(
45-
'cursor-pointer fill-white hover:fill-white/80 transition-colors duration-200',
47+
'cursor-pointer fill-white hover:fill-teritiary/70 transition-colors duration-200',
4648
className
4749
)}
4850
aria-label={label}
4951
onClick={() => onClick(router)}
5052
>
51-
<Icon />
53+
<Icon width={24} height={24} />
5254
</button>
5355
))}
5456
</div>

src/shared/components/header/HeaderLogo.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,9 @@ function HeaderLogo() {
88
<Image
99
src="/logo.svg"
1010
alt="Ssoul 로고"
11-
width={60}
12-
height={19}
13-
className="md:w-[82px] sm:h-[26px]"
11+
width={82}
12+
height={26}
13+
className="w-[62px] md:w-[82px] h-auto"
1414
/>
1515
</Link>
1616
</div>

src/shared/components/scrollTop/ScrollTopBtn.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ function ScrollTopBtn() {
5050
onClick={scrollToTop}
5151
className="flex-center w-10 h-10 shadow-[0_4px_12px_0_rgba(0,0,0,0.5)] bg-secondary rounded-full"
5252
>
53-
<Arrow aria-hidden />
53+
<Arrow color="var(--color-primary)" aria-hidden />
5454
</button>
5555
</div>
5656
);

src/shared/components/toast/CustomToast.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ function CustomToast({ type, message, onClose }: Props) {
2525
aria-label="toast 닫기"
2626
className="absolute top-1 right-2"
2727
>
28-
<Close aria-hidden />
28+
<Close color="white" aria-hidden />
2929
</button>
3030
</div>
3131
);

0 commit comments

Comments
 (0)