forked from donggukthonN/donggukthon_2023_11_F
-
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
5 changed files
with
115 additions
and
67 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,33 +1,49 @@ | ||
import { | ||
SealBox, | ||
AllSeal, | ||
SealDiv | ||
} from './styled'; | ||
import imagePlus from '../../assets/icon/image_plus_btn.svg'; | ||
import { useNavigate } from 'react-router'; | ||
import { SealBox, AllSeal, SealDiv } from "./styled"; | ||
import imagePlus from "../../assets/icon/image_plus_btn.svg"; | ||
import { useNavigate } from "react-router"; | ||
import { useRecoilState } from "recoil"; | ||
import { selectState } from "../../stores/select-state"; | ||
|
||
const SealForU = () => { | ||
const navigate = useNavigate(); | ||
return( | ||
const [selectedItem, setSelectedItem] = useRecoilState(selectState); | ||
|
||
return ( | ||
<div> | ||
<SealDiv> | ||
<AllSeal> | ||
{Array(4).fill().map((item, index) => ( | ||
<SealBox key={index} style={{marginTop: 50}} onClick={()=>navigate(`/mypage/sealadd`)}> | ||
<img src={imagePlus} style={{width: 25, height: 25}} alt="plus"/> | ||
</SealBox> | ||
))} | ||
{Array(4) | ||
.fill() | ||
.map((item, index) => ( | ||
<SealBox | ||
key={index} | ||
style={{ marginTop: 50 }} | ||
onClick={() => navigate(`/mypage/sealadd`)} | ||
> | ||
<img | ||
src={imagePlus} | ||
style={{ width: 25, height: 25 }} | ||
alt="plus" | ||
/> | ||
</SealBox> | ||
))} | ||
</AllSeal> | ||
<AllSeal> | ||
{Array(4).fill().map((item, index) => ( | ||
<SealBox key={index}> | ||
<img src={imagePlus} style={{width: 25, height: 25}} alt="plus"/> | ||
</SealBox> | ||
))} | ||
{Array(4) | ||
.fill() | ||
.map((item, index) => ( | ||
<SealBox key={index}> | ||
<img | ||
src={imagePlus} | ||
style={{ width: 25, height: 25 }} | ||
alt="plus" | ||
/> | ||
</SealBox> | ||
))} | ||
</AllSeal> | ||
</SealDiv> | ||
</div> | ||
); | ||
}; | ||
|
||
export default SealForU; | ||
export default SealForU; |
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 |
---|---|---|
@@ -1,33 +1,33 @@ | ||
import { | ||
Root, | ||
SealContainer, | ||
ButtonLayer, | ||
Button | ||
} from './styled'; | ||
import sealGroup from '../../assets/icon/seal_group.svg'; | ||
import SealForU from '../../components/SealMaking/SealForU'; | ||
import { useNavigate } from 'react-router'; | ||
import { Root, SealContainer, ButtonLayer, Button } from "./styled"; | ||
import sealGroup from "../../assets/icon/seal_group.svg"; | ||
import SealForU from "../../components/SealMaking/SealForU"; | ||
import { useNavigate } from "react-router"; | ||
|
||
const SealMaking = () => { | ||
const navigate = useNavigate(); | ||
const handleQuit = () => { | ||
alert('지금 나가시면 변경사항이 저장되지 않습니다.\n 나가시겠습니까?'); | ||
alert("지금 나가시면 변경사항이 저장되지 않습니다.\n 나가시겠습니까?"); | ||
navigate(-1); | ||
}; | ||
return( | ||
|
||
return ( | ||
<Root> | ||
<img src={sealGroup} style={{marginTop: 14}}/> | ||
<div style={{fontSize: 30, color: '#992D2D'}}>씰 제작소 </div> | ||
<div style={{fontFamily: 'YClover-regular', marginTop: 16}}>나만의 크리스마스씰을 만들어봐요 !</div> | ||
<img src={sealGroup} style={{ marginTop: 14 }} alt={"씰 그룹"} /> | ||
<div style={{ fontSize: 30, color: "#992D2D" }}>씰 제작소 </div> | ||
<div style={{ fontFamily: "YClover-regular", marginTop: 16 }}> | ||
나만의 크리스마스씰을 만들어봐요 ! | ||
</div> | ||
<SealContainer> | ||
<SealForU /> | ||
<ButtonLayer> | ||
<Button style={{backgroundColor:'#992D2D'}} onClick={handleQuit}>그만두기</Button> | ||
<Button style={{backgroundColor: '#2D9985'}}>완성하기</Button> | ||
<Button style={{ backgroundColor: "#992D2D" }} onClick={handleQuit}> | ||
그만두기 | ||
</Button> | ||
<Button style={{ backgroundColor: "#2D9985" }}>완성하기</Button> | ||
</ButtonLayer> | ||
</SealContainer> | ||
</Root> | ||
); | ||
}; | ||
|
||
export default SealMaking; | ||
export default SealMaking; |
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