Skip to content

Commit

Permalink
feat/BibimMandu-IssueTacker#146: 마일스톤 상세 페이지(작업중)
Browse files Browse the repository at this point in the history
  • Loading branch information
qkdflrgs committed Aug 10, 2023
1 parent ba78fa5 commit fa297da
Showing 1 changed file with 90 additions and 0 deletions.
90 changes: 90 additions & 0 deletions FE/src/pages/MilestonesPage.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,90 @@
import { styled } from "styled-components";
import Button from "../components/common/Button/Button";
import { useNavigate } from "react-router-dom";

export default function MilestonesPage() {
const navigate = useNavigate();
const goLabelsPage = () => {
navigate("/labels");
};

const goMilestonesPage = () => {
navigate("/milestones");
};

return (
<Main>
<Tap>
<TapButtonWrapper>
<Button
icon={"label"}
label={`레이블`}
type={"ghost"}
size={"medium"}
width={"50%"}
onClick={goLabelsPage}
/>
<Button
icon={"milestone"}
label={`마일스톤`}
type={"ghost"}
size={"medium"}
width={"50%"}
onClick={goMilestonesPage}
/>
</TapButtonWrapper>
<Button icon={"plus"} label={"마일스톤 추가"} onClick={() => {}} />
</Tap>
</Main>
);
}

const Main = styled.div`
padding: 32px 0px;
display: flex;
flex-direction: column;
width: 1280px;
`;

const Tap = styled.div`
display: flex;
justify-content: space-between;
width: 100%;
`;

const TapButtonWrapper = styled.div`
position: relative;
display: flex;
width: 320px;
height: 40px;
border: ${({ theme }) =>
`${theme.border.default} ${theme.colorSystem.neutral.border.default}`};
border-radius: ${({ theme }) => theme.radius.medium};
&::after {
content: "";
position: absolute;
top: 0px;
bottom: 0;
left: 159px;
width: 1px;
background-color: ${({ theme }) =>
theme.colorSystem.neutral.border.default};
}
> button {
&:hover {
background-color: ${({ theme }) =>
theme.colorSystem.neutral.surface.bold};
}
}
> button:first-child {
border-top-right-radius: 0px;
border-bottom-right-radius: 0px;
}
> button:last-child {
border-top-left-radius: 0px;
border-bottom-left-radius: 0px;
font: ${({ theme }) => theme.font.selectedBold16};
color: ${({ theme }) => theme.colorSystem.neutral.text.strong};
background-color: ${({ theme }) => theme.colorSystem.neutral.surface.bold};
}
`;

0 comments on commit fa297da

Please sign in to comment.