Skip to content

Commit

Permalink
style: Navbar와 Footer 패딩 및 레이아웃 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
dahyeo-n committed Dec 24, 2024
1 parent f2c5313 commit a0d55c0
Show file tree
Hide file tree
Showing 2 changed files with 34 additions and 29 deletions.
2 changes: 1 addition & 1 deletion src/components/Footer/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import logo from '../../../public/images/momentiaLogoSymbol.png';

const Footer = () => {
return (
<footer className='bg-black text-white px-14 py-24'>
<footer className='bg-black text-white px-[32px] lg:px-[140px] py-24'>
<Link href='/'>
<Image src={logo} alt='모멘티아 로고' width={45} priority />
</Link>
Expand Down
61 changes: 33 additions & 28 deletions src/components/Navbar/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -16,37 +16,42 @@ const Navbar = () => {

return (
<>
<nav className='fixed top-0 w-full flex items-center bg-black text-white px-14 py-5 h-[60px] z-50'>
<div className='absolute left-14'>
<Link href='/'>
<Image src={logo} alt='모멘티아 로고' width={45} priority />
</Link>
</div>
<nav className='fixed top-0 w-full bg-black text-white z-50'>
<div className='max-w-[1640px] mx-auto flex justify-between items-center px-[32px] lg:px-[140px] py-[29px] h-[90px] lg:h-[60px]'>
<div className='flex-shrink-0'>
<Link href='/'>
<Image src={logo} alt='모멘티아 로고' width={45} priority />
</Link>
</div>

<div className='hidden lg:flex justify-center w-full'>
<ul className='button-m flex gap-20 text-gray-100'>
<li className='hover:text-gray-300 cursor-pointer'>작품</li>
<li className='hover:text-gray-300 cursor-pointer'>전시회</li>
<li className='hover:text-gray-300 cursor-pointer'>커뮤니티</li>
</ul>
</div>
<div className='hidden lg:flex justify-center w-full'>
<ul className='button-m flex gap-20 text-gray-100'>
<li className='hover:text-gray-300 cursor-pointer'>작품</li>
<li className='hover:text-gray-300 cursor-pointer'>전시회</li>
<li className='hover:text-gray-300 cursor-pointer'>커뮤니티</li>
</ul>
</div>

<div className='absolute right-14 flex items-center gap-7'>
{/* TODO: 로그인 상태에 따라 Notification 버튼, 로그인/회원가입 버튼 다르게 보이도록 처리 */}
<Icon name='Notification' size='l' className='text-white' />
<div className='hidden lg:flex items-center gap-7'>
<div className='rounded-full bg-white w-8 h-8'></div>
<button className='button-m bg-main px-6 py-2 rounded-full text-white'>
작품 업로드
</button>
{/* <button className='button-m text-white' >로그인/회원가입</button> */}
<div className='flex items-center gap-7 flex-shrink-0'>
{/* TODO: 로그인 상태에 따라 Notification 버튼, 로그인/회원가입 버튼 다르게 보이도록 처리 */}
<Icon name='Notification' size='l' className='text-white' />
<div className='hidden lg:flex items-center gap-7'>
<div className='rounded-full bg-white w-8 h-8 flex-shrink-0'></div>
<button
className='button-m bg-main px-6 py-2 rounded-full text-white flex-shrink-0'
style={{ whiteSpace: 'nowrap' }}
>
작품 업로드
</button>
{/* <button className='button-m text-white' >로그인/회원가입</button> */}
</div>
<Icon
name='Menu'
size='l'
onClick={toggleMenu}
className='lg:hidden text-white focus:outline-none'
/>
</div>
<Icon
name='Menu'
size='l'
onClick={toggleMenu}
className='lg:hidden text-white focus:outline-none'
/>
</div>
</nav>

Expand Down

0 comments on commit a0d55c0

Please sign in to comment.