Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion apps/what-today/src/components/FloatingTranslateButton.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -330,7 +330,7 @@ const FloatingTranslateButton: React.FC<FloatingTranslateButtonProps> = ({ class
<div ref={containerRef} className={twMerge('fixed right-10 bottom-10 z-45', className)}>
{/* 언어 선택 드롭다운 */}
{isOpen && (
<div className='absolute right-0 bottom-50 flex h-300 w-160 transform flex-col rounded-xl border border-gray-50 bg-white p-10 shadow-[0px_4px_24px_rgba(156,180,202,0.2)] transition-all duration-200 ease-out'>
<div className='absolute right-0 bottom-50 flex h-300 w-170 transform flex-col rounded-xl border border-gray-50 bg-white p-10 shadow-[0px_4px_24px_rgba(156,180,202,0.2)] transition-all duration-200 ease-out'>
<div className='caption-text mb-2 p-2 text-gray-400'>언어 선택</div>
<div className='mr-4 flex-1 space-y-4 overflow-y-auto px-3 py-2'>
{languages.map((language) => (
Expand Down
2 changes: 1 addition & 1 deletion apps/what-today/src/components/MypageSidebar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ export default function MypageSidebar({ onLogoutClick, onClick, isOpen }: Mypage
<nav
className={twMerge(
// 공통 스타일
'fixed z-50 max-w-200 min-w-200 rounded-2xl border border-gray-50 bg-white transition duration-300 md:static md:h-fit xl:w-280',
'fixed top-62 z-50 max-w-200 min-w-200 rounded-2xl border border-gray-50 bg-white transition duration-300 md:static md:h-fit xl:w-280',
// 모바일에서 Drawer 위치
isOpen ? 'translate-x-0' : 'h-100 -translate-x-full bg-gray-200',
'md:translate-x-0',
Expand Down
16 changes: 6 additions & 10 deletions apps/what-today/src/layouts/DefaultLayout.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import { Footer } from '@what-today/design-system';
import { Outlet, useLocation } from 'react-router-dom';
import { twJoin } from 'tailwind-merge';

import FloatingTranslateButton from '@/components/FloatingTranslateButton';
import Header from '@/components/Header';
Expand All @@ -10,27 +11,22 @@ export default function DefaultLayout() {
const { isDesktop } = useResponsive();
const isActivityDetailPage = location.pathname.startsWith('/activities/');

const footerMarginBottom = isActivityDetailPage && !isDesktop ? 'w-full mb-125' : 'w-full';
// const footerMarginBottom = isActivityDetailPage && !isDesktop ? 'w-full mb-120' : 'w-full';

// FloatingTranslateButton의 bottom 위치 조건부 설정
const floatingButtonClass = !isDesktop && isActivityDetailPage ? 'bottom-160' : undefined;

return (
<div className='flex w-full flex-col items-center gap-8 overflow-x-hidden'>
<div className='flex min-h-screen w-full min-w-375 flex-col items-center gap-8'>
<header className='w-full max-w-7xl px-[5vw]'>
<Header />
</header>
<main
className={`min-h-[90vh] w-full ${
isActivityDetailPage
? 'max-w-7xl px-16 sm:px-24 md:px-32 lg:px-48 xl:max-w-7xl' // 상세 페이지: 반응형 패딩
: 'max-w-6xl px-[5vw] xl:max-w-5xl' // 기본 페이지: 기존 스타일
}`}
>

<main className='w-full max-w-7xl flex-grow px-16 sm:px-24 md:px-32 lg:px-48'>
<Outlet />
</main>

<div className={footerMarginBottom}>
<div className={twJoin('w-full', isActivityDetailPage && !isDesktop && 'mb-120', 'mt-30')}>
<Footer />
</div>

Expand Down
4 changes: 2 additions & 2 deletions apps/what-today/src/layouts/Mypage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ export default function MyPageLayout() {
}, [location.pathname]);

return (
<div className='flex h-full w-full flex-col md:flex-row md:gap-30'>
<div className='flex h-full w-full flex-col justify-center md:flex-row md:gap-30'>
{/* 모바일: 오버레이 배경 */}
{isSidebarOpen && (
<div className='fixed inset-0 z-50 bg-black/30 md:hidden' onClick={() => setSidebarOpen(false)} />
Expand All @@ -40,7 +40,7 @@ export default function MyPageLayout() {
onLogoutClick={handleLogout}
/>
<Button
className={twMerge('fixed top-92 left-4 z-55 w-fit p-0 md:hidden', isSidebarOpen && 'hidden')}
className={twMerge('fixed top-92 left-3 z-55 w-fit p-0 md:hidden', isSidebarOpen && 'hidden')}
size='xs'
variant='none'
onClick={() => setSidebarOpen(true)}
Expand Down
18 changes: 10 additions & 8 deletions apps/what-today/src/pages/activities/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ export default function ActivityDetailPage() {
<Divider />
<ReviewSection activityId={activity.id} />
</div>
<div className='sticky top-16 flex h-fit flex-col gap-38'>
<div className='flex flex-col gap-38'>
<ActivitiesInformation
address={activity.address}
category={activity.category}
Expand All @@ -112,13 +112,15 @@ export default function ActivityDetailPage() {
reviewCount={activity.reviewCount}
title={activity.title}
/>
<ReservationForm
activityId={activity.id}
isAuthor={user?.id ? activity?.userId === user.id : false}
isLoggedIn={!!user}
price={activity.price}
schedules={activity.schedules}
/>
<div className='sticky top-16'>
<ReservationForm
activityId={activity.id}
isAuthor={user?.id ? activity?.userId === user.id : false}
isLoggedIn={!!user}
price={activity.price}
schedules={activity.schedules}
/>
</div>
</div>
</div>
) : (
Expand Down
23 changes: 22 additions & 1 deletion packages/design-system/src/components/Footer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,28 @@ export default function Footer() {
</a>
</div>

<p>© CODEIT FE 15</p>
<p className='space-x-2 text-center text-sm text-gray-500'>
<a
aria-label='JIHYUN GitHub'
href='https://github.com/kjhyun0830'
rel='noopener noreferrer'
target='_blank'
>
지현
</a>
<span>|</span>
<a aria-label='TAEIL GitHub' href='https://github.com/Taeil08' rel='noopener noreferrer' target='_blank'>
태일
</a>
<span>|</span>
<a aria-label='JIWOO GitHub' href='https://github.com/MyungJiwoo' rel='noopener noreferrer' target='_blank'>
지우
</a>
<span>|</span>
<a aria-label='JISEOP GitHub' href='https://github.com/HarrySeop' rel='noopener noreferrer' target='_blank'>
지섭
</a>
</p>
</div>
</div>
</footer>
Expand Down