forked from codesquad-members-2021/issue-tracker
-
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 pull request #114 from hiro032/fe/111
[FE] 마일스톤 페이지 UI
- Loading branch information
Showing
29 changed files
with
552 additions
and
138 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.
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,56 @@ | ||
import React from 'react' | ||
import styled from 'styled-components'; | ||
import HeadContent from '@components/milestoneList/HeadContent'; | ||
import MilestoneCreate from '@components/milestoneList/MilestoneCreate'; | ||
import MilestoneSwitching from '@components/milestoneList/MilestoneSwitching'; | ||
import IconButton from '@components/common/IconButton'; | ||
import { ListWrapper } from '@components/common/baseStyle/baseStyle'; | ||
import useToggle from '@/utils/hook/useToggle'; | ||
|
||
const MilestoneListPage = () => { | ||
const [isShowCreate, setShowCreate] = useToggle(false); | ||
return ( | ||
<> | ||
<HeadContent {...{ isShowCreate, setShowCreate }} /> | ||
{isShowCreate && <MilestoneCreate />} | ||
<ListWrapper wrapWidth="100%"> | ||
<ListHeader> | ||
<IconButton icon='milestone'> | ||
<ToggleItem> | ||
<RadioButton type="radio" name="milestoneToggle" defaultChecked={true} /> | ||
<span>열린 이슈</span> | ||
</ToggleItem> | ||
</IconButton> | ||
<IconButton icon='closeBox'> | ||
<ToggleItem> | ||
<RadioButton type="radio" name="milestoneToggle" /> | ||
<span>닫힌 이슈</span> | ||
</ToggleItem> | ||
</IconButton> | ||
</ListHeader> | ||
<MilestoneSwitching /> | ||
</ListWrapper> | ||
</> | ||
) | ||
} | ||
|
||
const ListHeader = styled.div` | ||
`; | ||
|
||
const RadioButton = styled.input` | ||
display:none; | ||
&:checked + span { | ||
color: #000; | ||
} | ||
`; | ||
|
||
const ToggleItem = styled.label` | ||
color: #6e7191; | ||
font-weight:700; | ||
&:hover{ | ||
cursor:pointer; | ||
} | ||
`; | ||
|
||
export default MilestoneListPage; |
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 |
---|---|---|
@@ -0,0 +1,19 @@ | ||
import React from 'react' | ||
import LinearProgress from '@material-ui/core/LinearProgress'; | ||
import styled from 'styled-components'; | ||
|
||
const ProgressBar = ({ ...props }) => { | ||
return ( | ||
<PrimaryProgressBar {...props} /> | ||
) | ||
} | ||
|
||
const PrimaryProgressBar = styled(LinearProgress)` | ||
height: 8px; | ||
border-radius: 10px; | ||
background:#EFF0F6; | ||
> div{ | ||
background:#017AFF; | ||
} | ||
`; | ||
export default ProgressBar; |
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,6 @@ | ||
export type MilestoneSwitchType = { | ||
} | ||
|
||
export type MilestoneItemType = MilestoneSwitchType & { | ||
setToggleMilestone: any; | ||
} |
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.