-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
- Loading branch information
There are no files selected for viewing
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
import { PropsWithChildren } from 'react'; | ||
import { useTheme } from '@emotion/react'; | ||
import FixedCreateButtonWrapper from '@_layouts/components/FixedCreationButtonWrapper/FixedCreateButtonWrapper'; | ||
import DefaultPageMain from './DefaultPageMain/DefaultPageMain'; | ||
import * as S from './DefaultpageLayout.style'; | ||
import DoubleTriHeader from '@_layouts/components/DoubleTriHeader/DoubleTriHeader'; | ||
import TriSectionHeader from '@_layouts/components/TriSectionHeader/TriSectionHeader'; | ||
|
||
function DefaultPageLayout(props: PropsWithChildren) { | ||
const { children } = props; | ||
|
||
const theme = useTheme(); | ||
|
||
return <div css={S.containerStyle({ theme })}>{children}</div>; | ||
} | ||
|
||
DefaultPageLayout.DoubleTriHeader = DoubleTriHeader; | ||
DefaultPageLayout.TriHeader = TriSectionHeader; | ||
DefaultPageLayout.Main = DefaultPageMain; | ||
DefaultPageLayout.ListPageFixedButtonWrapper = FixedCreateButtonWrapper; | ||
|
||
export default DefaultPageLayout; |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,7 @@ | ||
import { NAVIGATION_BAR_HEIGHT } from '@_constants/styles'; | ||
import { css, Theme } from '@emotion/react'; | ||
|
||
export const listLayout = ({ theme }: { theme: Theme }) => css` | ||
export const containerStyle = ({ theme }: { theme: Theme }) => css` | ||
min-height: calc(100vh - ${NAVIGATION_BAR_HEIGHT}); | ||
margin-bottom: ${NAVIGATION_BAR_HEIGHT}; | ||
background-color: ${theme.colorPalette.grey[100]}; | ||
`; |
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,11 @@ | ||
import { PropsWithChildren } from 'react'; | ||
import * as S from './HomeHeader.style'; | ||
import * as S from './DoubleTriHeader.style'; | ||
import StickyTriSectionHeader from '@_layouts/components/StickyTriSectionHeader/StickyTriSectionHeader'; | ||
|
||
export default function HomeHeader(props: PropsWithChildren) { | ||
export default function DoubleTriHeader(props: PropsWithChildren) { | ||
const { children } = props; | ||
|
||
return <header css={S.headerStyle}>{children}</header>; | ||
} | ||
|
||
HomeHeader.Top = StickyTriSectionHeader; | ||
DoubleTriHeader.Top = StickyTriSectionHeader; |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
import { PropsWithChildren } from 'react'; | ||
import * as S from './ListContent.style'; | ||
|
||
export default function ListContent(props: PropsWithChildren) { | ||
const { children } = props; | ||
|
||
return <div css={S.ListSection}>{children}</div>; | ||
} |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,10 @@ | ||
import { NAVIGATION_BAR_HEIGHT } from '@_constants/styles'; | ||
import POLICES from '@_constants/poclies'; | ||
|
||
import { css } from '@emotion/react'; | ||
|
||
export const navigationBarWrapper = css` | ||
position: fixed; | ||
z-index: ${POLICES.footerZIndex}; | ||
position: sticky; | ||
bottom: 0; | ||
width: 100%; | ||
height: ${NAVIGATION_BAR_HEIGHT}; | ||
`; |