-
Notifications
You must be signed in to change notification settings - Fork 1
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 #121 from Make-A-Wish-Sopt/release#115-letters/bac…
…kBtn Release#115 letters/back btn
- Loading branch information
Showing
87 changed files
with
769 additions
and
604 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
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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,46 @@ | ||
import { client } from '../common/axios'; | ||
import PATH from '../../constant/path'; | ||
import { EditWishesInfoDataType } from '@/types/mypage/editWishesInfoDataType'; | ||
|
||
export const getEditWishesInfo = async () => { | ||
const accessToken = localStorage.getItem('accessToken'); | ||
|
||
const data = await client.get(`${PATH.API}/${PATH.V1}/${PATH.WISHES}/${PATH.PROGRESS}`, { | ||
headers: { | ||
'Content-Type': 'application/json', | ||
Authorization: `Bearer ${accessToken}`, | ||
}, | ||
}); | ||
|
||
return data.data.data; | ||
}; | ||
|
||
export const editWishesInfo = async (editWishesInfoData: EditWishesInfoDataType) => { | ||
const accessToken = localStorage.getItem('accessToken'); | ||
|
||
const data = await client.put( | ||
`${PATH.API}/${PATH.V1}/${PATH.WISHES}/${PATH.PROGRESS}`, | ||
{ editWishesInfoData }, | ||
{ | ||
headers: { | ||
'Content-Type': 'application/json', | ||
Authorization: `Bearer ${accessToken}`, | ||
}, | ||
}, | ||
); | ||
|
||
return data.data.data; | ||
}; | ||
|
||
export const deleteUserInfo = async () => { | ||
const accessToken = localStorage.getItem('accessToken'); | ||
|
||
const data = await client.delete(`${PATH.API}/${PATH.V1}/${PATH.USER}`, { | ||
headers: { | ||
'Content-Type': 'application/json', | ||
Authorization: `Bearer ${accessToken}`, | ||
}, | ||
}); | ||
|
||
return data; | ||
}; |
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
File renamed without changes.
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,82 @@ | ||
import { LogoImg } from '@/public/assets/images'; | ||
import theme from '@/styles/theme'; | ||
import styled from 'styled-components'; | ||
import Image from 'next/image'; | ||
|
||
export default function Footer() { | ||
const handleTermsOfUse = () => { | ||
window.open('https://sunmulzu.notion.site/d20153cbfb7848f8a2599f263217dcc2'); | ||
}; | ||
|
||
const handlePrivacyPolicy = () => { | ||
window.open('https://sunmulzu.notion.site/dd520cd904db4b439c85e91af022bd02?pvs=4'); | ||
}; | ||
|
||
const handleMarketingAgreement = () => { | ||
window.open('https://sunmulzu.notion.site/3e4a34be04f54f159d7e44c0e92c6e05?pvs=4'); | ||
}; | ||
|
||
return ( | ||
<Styled.Container> | ||
<Image src={LogoImg} alt={'조물주보다 생일선물주 로고'} /> | ||
|
||
<Styled.ContentContainer> | ||
상호명: 조물주보다생일선물주 | ||
<br /> | ||
사업자등록번호: 246-05-02593 | ||
<br /> | ||
통신판매업신고: 2023-경기양주-1379 | ||
<br /> | ||
사업장주소지: 경기도 양주시 고덕로 159, 207-403 | ||
<br /> | ||
대표자명: 이승원 | ||
</Styled.ContentContainer> | ||
<Styled.HorizontalLine /> | ||
|
||
<Styled.ButtonContainer> | ||
<Styled.Button onClick={handleTermsOfUse}>이용약관</Styled.Button> | ||
<Styled.Button onClick={handlePrivacyPolicy}>개인정보처리방침</Styled.Button> | ||
<Styled.Button onClick={handleMarketingAgreement}>광고마케팅정보수신동의</Styled.Button> | ||
</Styled.ButtonContainer> | ||
</Styled.Container> | ||
); | ||
} | ||
|
||
const Styled = { | ||
Container: styled.footer` | ||
width: 37.5rem; | ||
background-color: ${theme.colors.main_blue}; | ||
padding: 2.9rem 2.2rem; | ||
margin: 8.12rem 0 0 0; | ||
`, | ||
|
||
HorizontalLine: styled.div` | ||
display: block; | ||
width: 100%; | ||
height: 0.1rem; | ||
margin: 1rem 0; | ||
background: #ffffff; | ||
opacity: 0.6; | ||
`, | ||
|
||
ContentContainer: styled.div` | ||
${theme.fonts.body12}; | ||
line-height: 2.2rem; | ||
color: ${theme.colors.white}; | ||
opacity: 0.6; | ||
margin: 1.5rem 0 0 0; | ||
`, | ||
|
||
ButtonContainer: styled.div` | ||
display: flex; | ||
gap: 0.5rem; | ||
`, | ||
|
||
Button: styled.button` | ||
${theme.fonts.body12}; | ||
line-height: 2.2rem; | ||
color: ${theme.colors.white}; | ||
opacity: 0.8; | ||
padding: 0; | ||
`, | ||
}; |
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,22 +1,36 @@ | ||
import theme from '@/styles/theme'; | ||
import styled from 'styled-components'; | ||
import Footer from './footer'; | ||
|
||
interface LayoutProps { | ||
footer?: boolean; | ||
children: React.ReactNode; | ||
} | ||
|
||
function Layout(props: LayoutProps) { | ||
const { children } = props; | ||
const { footer, children } = props; | ||
|
||
return <Root>{children}</Root>; | ||
return ( | ||
<Styled.Root> | ||
<Styled.Container>{children}</Styled.Container> | ||
{footer && <Footer />} | ||
</Styled.Root> | ||
); | ||
} | ||
|
||
export default Layout; | ||
|
||
const Root = styled.div` | ||
width: 100%; | ||
/* &.minHeight { | ||
min-height: 136.7rem; | ||
} */ | ||
display: flex; | ||
flex-direction: column; | ||
`; | ||
const Styled = { | ||
Root: styled.div` | ||
display: flex; | ||
flex-direction: column; | ||
align-items: center; | ||
width: 100%; | ||
`, | ||
|
||
Container: styled.div` | ||
width: 37.5rem; | ||
padding: 2.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 |
---|---|---|
@@ -0,0 +1,30 @@ | ||
import theme from '@/styles/theme'; | ||
import ClipLoader from 'react-spinners/ClipLoader'; | ||
import styled from 'styled-components'; | ||
|
||
export default function Loading() { | ||
|
||
return ( | ||
<Styled.Container> | ||
<ClipLoader color={theme.colors.main_blue} /> | ||
<Styled.Title>로딩중입니다</Styled.Title> | ||
</Styled.Container> | ||
); | ||
} | ||
|
||
const Styled = { | ||
Container: styled.div` | ||
display: flex; | ||
flex-direction: column; | ||
align-items: center; | ||
justify-content: center; | ||
height: 100vh; | ||
`, | ||
|
||
Title: styled.h1` | ||
${theme.fonts.headline24_100}; | ||
color: ${theme.colors.main_blue}; | ||
margin: 2.4rem 0 3rem; | ||
`, | ||
}; | ||
|
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.