Replies: 3 comments 7 replies
const MainContainer = styled.main`
position: relative;
max-width: 480px;
min-height: calc(var(--vh, 1vh) * 100);
margin: 0 auto;
background-color: ${theme.colors.white};
`;
const MainSection = styled.section<{ headerHeight: number; bottomNavHeight: number }>`
position: absolute;
top: ${(props) => props.headerHeight}px;
left: 0;
right: 0;
bottom: ${(props) => props.bottomNavHeight}px;
overflow: auto;
`; <MainContainer>
{header}
<MainSection headerHeight={headerHeight} bottomNavHeight={hideBottomNavigation ? 0 : BOTTOM_NAV_HEIGHT}>
{children}
</MainSection>
{floatButton && <FloatButtonContainer>{floatButton}</FloatButtonContainer>}
{!hideBottomNavigation && <BottomNavigation />}
</MainContainer> |
5 replies
<div
id="layout"
className="relative mx-auto min-h-[100vh] w-[375px] overflow-hidden bg-gray-900 text-gray-100"
>
{isFormHeader ? <FormHeader /> : !isSearch && <Header />}
{children}
{/* 푸터 */}
</div> |
2 replies
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment

Uh oh!
There was an error while loading. Please reload this page.
.
All reactions