-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'develop' into feat/#52/targetlistarea-view
- Loading branch information
Showing
15 changed files
with
173 additions
and
20 deletions.
There are no files selected for viewing
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
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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,51 @@ | ||
import styled from '@emotion/styled'; | ||
import { FunctionComponent, SVGProps } from 'react'; | ||
|
||
import { bigSize, smallSize } from './arrangeBtnStyle'; | ||
|
||
import Icons from '@/assets/svg/index'; | ||
import { ArrangeBtnType } from '@/types/arrangeBtnType'; | ||
|
||
const iconMap: Record<string, FunctionComponent<SVGProps<SVGSVGElement>>> = { | ||
right: Icons.ArrangeBtn.IcnArrangeRight, | ||
left: Icons.ArrangeBtn.IcnArrangeLeft, | ||
set: Icons.ArrangeBtn.IcnArrangeSet, | ||
calendar: Icons.ArrangeBtn.IcnArrangeCalendar, | ||
}; | ||
function ArrangeBtn({ type, mode, color, size }: ArrangeBtnType) { | ||
const IconComponent = iconMap[type]; | ||
const StyledIcon = styled(IconComponent)<{ size: string; color: string; mode: string }>` | ||
${({ size }) => (size === 'small' ? smallSize : bigSize)}; | ||
path { | ||
stroke: ${({ theme }) => theme.button[color][mode].ICON}; | ||
} | ||
rect { | ||
fill: ${({ theme }) => theme.button[color][mode].BG}; | ||
} | ||
&:hover { | ||
path { | ||
stroke: ${({ theme }) => theme.button[color].HOVER.ICON}; | ||
} | ||
rect { | ||
fill: ${({ theme }) => theme.button[color].HOVER.BG}; | ||
} | ||
} | ||
&:active { | ||
path { | ||
stroke: ${({ theme }) => theme.button[color].PRESSED.ICON}; | ||
} | ||
rect { | ||
fill: ${({ theme }) => theme.button[color].PRESSED.BG}; | ||
} | ||
} | ||
`; | ||
|
||
return <StyledIcon size={size} color={color} mode={mode} />; | ||
} | ||
|
||
export default ArrangeBtn; |
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,10 @@ | ||
import { css } from '@emotion/react'; | ||
|
||
export const smallSize = css` | ||
width: 2.6rem; | ||
height: 2.6rem; | ||
`; | ||
export const bigSize = css` | ||
width: 3.2rem; | ||
height: 3.2rem; | ||
`; |
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,11 +1,5 @@ | ||
import NavBar from '@/components/common/NavBar'; | ||
|
||
function Calendar() { | ||
return ( | ||
<div> | ||
<NavBar /> | ||
</div> | ||
); | ||
return <div>calendar</div>; | ||
} | ||
|
||
export default Calendar; |
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,11 +1,61 @@ | ||
import NavBar from '@/components/common/NavBar'; | ||
import styled from '@emotion/styled'; | ||
|
||
import ArrangeBtn from '@/components/common/arrangeBtn/ArrangeBtn'; | ||
|
||
function DashBoard() { | ||
return ( | ||
<div> | ||
<NavBar /> | ||
</div> | ||
<> | ||
{/* right */} | ||
<Wrapper> | ||
<ArrangeBtn type="right" color="BLUE" mode="DEFAULT" size="small" /> | ||
<ArrangeBtn type="right" color="BLUE" mode="DISABLED" size="small" /> | ||
|
||
<ArrangeBtn type="right" color="WHITE" mode="DEFAULT" size="small" /> | ||
<ArrangeBtn type="right" color="WHITE" mode="DISABLED" size="small" /> | ||
|
||
<ArrangeBtn type="right" color="BLACK" mode="DEFAULT" size="small" /> | ||
<ArrangeBtn type="right" color="BLACK" mode="DISABLED" size="small" /> | ||
</Wrapper> | ||
|
||
{/* left */} | ||
<Wrapper> | ||
<ArrangeBtn type="left" color="BLUE" mode="DEFAULT" size="small" /> | ||
<ArrangeBtn type="left" color="BLUE" mode="DISABLED" size="small" /> | ||
|
||
<ArrangeBtn type="left" color="WHITE" mode="DEFAULT" size="small" /> | ||
<ArrangeBtn type="left" color="WHITE" mode="DISABLED" size="small" /> | ||
|
||
<ArrangeBtn type="left" color="BLACK" mode="DEFAULT" size="small" /> | ||
<ArrangeBtn type="left" color="BLACK" mode="DISABLED" size="small" /> | ||
</Wrapper> | ||
|
||
{/* set */} | ||
<Wrapper> | ||
<ArrangeBtn type="set" color="BLUE" mode="DEFAULT" size="small" /> | ||
<ArrangeBtn type="set" color="BLUE" mode="DISABLED" size="small" /> | ||
|
||
<ArrangeBtn type="set" color="WHITE" mode="DEFAULT" size="small" /> | ||
<ArrangeBtn type="set" color="WHITE" mode="DISABLED" size="small" /> | ||
|
||
<ArrangeBtn type="set" color="BLACK" mode="DEFAULT" size="small" /> | ||
<ArrangeBtn type="set" color="BLACK" mode="DISABLED" size="small" /> | ||
</Wrapper> | ||
|
||
{/* calendar */} | ||
<Wrapper> | ||
<ArrangeBtn type="calendar" color="BLUE" mode="DEFAULT" size="small" /> | ||
<ArrangeBtn type="calendar" color="BLUE" mode="DISABLED" size="small" /> | ||
|
||
<ArrangeBtn type="calendar" color="WHITE" mode="DEFAULT" size="small" /> | ||
<ArrangeBtn type="calendar" color="WHITE" mode="DISABLED" size="small" /> | ||
|
||
<ArrangeBtn type="calendar" color="BLACK" mode="DEFAULT" size="small" /> | ||
<ArrangeBtn type="calendar" color="BLACK" mode="DISABLED" size="small" /> | ||
</Wrapper> | ||
</> | ||
); | ||
} | ||
|
||
const Wrapper = styled.div` | ||
display: flex; | ||
`; | ||
export default DashBoard; |
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,14 +1,18 @@ | ||
import styled from '@emotion/styled'; | ||
import { Outlet } from 'react-router-dom'; | ||
|
||
import NavBar from '@/components/common/NavBar'; | ||
|
||
function MainLayout() { | ||
return ( | ||
<> | ||
<MainLayOutContainer> | ||
<NavBar /> | ||
<Outlet /> | ||
</> | ||
</MainLayOutContainer> | ||
); | ||
} | ||
const MainLayOutContainer = styled.div` | ||
padding-left: 7.2rem; | ||
`; | ||
|
||
export default MainLayout; |
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,6 @@ | ||
export interface ArrangeBtnType { | ||
type: 'right' | 'left' | 'set' | 'calendar'; | ||
mode: 'DISABLED' | 'DEFAULT'; | ||
color: 'BLUE' | 'WHITE' | 'BLACK'; | ||
size: 'big' | 'small'; | ||
} |
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,9 @@ | ||
{ | ||
"routes": [ | ||
{ | ||
"src": "/[^.]+", | ||
"dest": "/", | ||
"status": 200 | ||
} | ||
] | ||
} |