Skip to content

Commit

Permalink
Merge pull request #416 from Chaem03/feature/#349
Browse files Browse the repository at this point in the history
🎨 Design: 맞춤형루틴박스 수정
  • Loading branch information
Chaem03 authored Aug 6, 2024
2 parents e4fe8db + 4605986 commit e4d8c3a
Show file tree
Hide file tree
Showing 4 changed files with 26 additions and 14 deletions.
2 changes: 1 addition & 1 deletion src/components/RoutineChange/styled.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ export const CategoryView = styled.div`
display: flex;
flex-wrap: wrap;
gap: 1rem;
width: 280px;
width: 270px;
justify-content: flex-start;
`;
export const CutomTitle = styled.p`
Expand Down
2 changes: 2 additions & 0 deletions src/pages/Share/Share.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,8 @@ const SharePage = ({ onBack }) => {
setIsButtonVisible(false);
setTimeout(async () => {
const canvas = await html2canvas(captureRef.current, { useCORS: true });
const ctx = canvas.getContext("2d");
ctx.filter = "blur(10px)";
await captureScreenshot(canvas);
setIsButtonVisible(true);
}, 100);
Expand Down
24 changes: 13 additions & 11 deletions src/pages/User/SignUpCustom.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -35,17 +35,19 @@ export const SignUpCustom = () => {
<S.CutomTitle>{TITLE[0]}</S.CutomTitle>
<S.CustomP color="white">{TITLE[1]}</S.CustomP>
</S.TitleView>
<S.CategoryView>
{ROUTINE_CATEGORY.map((category, index) => (
<Box
onClick={() => handleClick(index)}
$select={categoryStatus[index]}
key={index}
>
{category}
</Box>
))}
</S.CategoryView>
<S.CategoryWrapper>
<S.CategoryView>
{ROUTINE_CATEGORY.map((category, index) => (
<Box
onClick={() => handleClick(index)}
$select={categoryStatus[index]}
key={index}
>
{category}
</Box>
))}
</S.CategoryView>
</S.CategoryWrapper>
<S.SelectView>
<Button
width="50%"
Expand Down
12 changes: 10 additions & 2 deletions src/pages/User/style.js
Original file line number Diff line number Diff line change
Expand Up @@ -124,10 +124,18 @@ export const ImageFame = styled.img`
z-index: 2;
`;

export const CategoryWrapper = styled.div`
display: flex;
justify-content: center;
align-items: center;
`;

export const CategoryView = styled.div`
display: grid;
grid-template-columns: repeat(2, 1fr);
display: flex;
flex-wrap: wrap;
gap: 1rem;
width: 270px;
justify-content: flex-start;
`;

export const TitleView = styled.div`
Expand Down

0 comments on commit e4d8c3a

Please sign in to comment.