-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
26 changed files
with
27,215 additions
and
26,218 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -62,4 +62,5 @@ const CustomButton: React.FC<CustomButtonProps> = ({ | |
</button> | ||
); | ||
}; | ||
|
||
export default CustomButton; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,58 @@ | ||
import React from 'react'; | ||
import { useRecoilState } from 'recoil'; | ||
import styled from 'styled-components'; | ||
import { adminPageState } from '../../atom'; | ||
import theme from '../../styles/theme'; | ||
import Text from '../atoms/text'; | ||
|
||
const ButtonStyle = styled.div` | ||
padding: 0 0.5rem 0.5rem 0.5rem; | ||
`; | ||
|
||
const Container = styled.div<{ page: string }>` | ||
font-family: 'inter'; | ||
display: flex; | ||
justify-content: space-around; | ||
padding-top: 0.5rem; | ||
.users { | ||
border-bottom: ${(props) => | ||
props.page === 'users' ? `4px solid ${theme.primaryColor}` : 0}; | ||
} | ||
.rooms { | ||
border-bottom: ${(props) => | ||
props.page === 'rooms' ? `4px solid ${theme.primaryColor}` : 0}; | ||
} | ||
`; | ||
|
||
const AdminHeader: React.FC = () => { | ||
const [adminPage, setAdminPage] = useRecoilState(adminPageState); | ||
|
||
return ( | ||
<Container page={adminPage}> | ||
<ButtonStyle className='users'> | ||
<Text | ||
fontSize={1.1} | ||
fontWeight={900} | ||
onClick={() => { | ||
setAdminPage('users'); | ||
}} | ||
> | ||
사용자 | ||
</Text> | ||
</ButtonStyle> | ||
<ButtonStyle className='rooms'> | ||
<Text | ||
fontSize={1.1} | ||
fontWeight={900} | ||
onClick={() => { | ||
setAdminPage('rooms'); | ||
}} | ||
> | ||
회의실 | ||
</Text> | ||
</ButtonStyle> | ||
</Container> | ||
); | ||
}; | ||
|
||
export default AdminHeader; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,24 +1,44 @@ | ||
import React, { ReactNode } from 'react'; | ||
import styled from 'styled-components'; | ||
|
||
const Container = styled.div<{ justifyContent: string }>` | ||
const Container = styled.div<{ | ||
justifyContent: string; | ||
horizontalPadding: number; | ||
verticalPadding: number; | ||
}>` | ||
display: flex; | ||
justify-content: ${(props) => props.justifyContent}; | ||
align-items: center; | ||
flex-direction: column; | ||
height: 90%; | ||
padding-left: ${(props) => `${props.horizontalPadding}rem`}; | ||
padding-right: ${(props) => `${props.horizontalPadding}rem`}; | ||
padding-top: ${(props) => `${props.verticalPadding}rem`}; | ||
padding-bottom: ${(props) => `${props.verticalPadding}rem`}; | ||
`; | ||
|
||
type FlexColumnProps = { | ||
children: ReactNode; | ||
justifyContent?: string; | ||
horizontalPadding?: number; | ||
verticalPadding?: number; | ||
}; | ||
|
||
const FlexColumn: React.FC<FlexColumnProps> = ({ | ||
children, | ||
justifyContent = 'space-between', | ||
horizontalPadding = 0, | ||
verticalPadding = 0, | ||
}: FlexColumnProps) => { | ||
return <Container justifyContent={justifyContent}>{children}</Container>; | ||
return ( | ||
<Container | ||
justifyContent={justifyContent} | ||
horizontalPadding={horizontalPadding} | ||
verticalPadding={verticalPadding} | ||
> | ||
{children} | ||
</Container> | ||
); | ||
}; | ||
|
||
export default FlexColumn; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.