diff --git a/src/components/SafeAreaContainer.tsx b/src/components/SafeAreaContainer.tsx index 3173357..c7bd905 100644 --- a/src/components/SafeAreaContainer.tsx +++ b/src/components/SafeAreaContainer.tsx @@ -7,6 +7,7 @@ interface SafeAreaContainerProps { className?: string; topOnly?: boolean; bottomOnly?: boolean; + extraBottomPadding?: boolean; // 추가 하단 여백 옵션 } /** @@ -17,7 +18,8 @@ const SafeAreaContainer: React.FC = ({ children, className = '', topOnly = false, - bottomOnly = false + bottomOnly = false, + extraBottomPadding = false // 기본값은 false }) => { const [isIOS, setIsIOS] = useState(false); @@ -37,8 +39,11 @@ const SafeAreaContainer: React.FC = ({ if (!topOnly) safeAreaClass += ' pb-4'; // 안드로이드 하단 여백 } + // 추가 하단 여백 적용 + const extraBottomClass = extraBottomPadding ? 'pb-[80px]' : ''; + return ( -
+
{children}
); diff --git a/src/pages/Index.tsx b/src/pages/Index.tsx index 06c1eb3..3445772 100644 --- a/src/pages/Index.tsx +++ b/src/pages/Index.tsx @@ -150,7 +150,7 @@ const Index = () => { }, []); return ( - +