diff --git a/README.md b/README.md index 736887d..278511e 100644 --- a/README.md +++ b/README.md @@ -17,3 +17,27 @@ generate 를 진행해야 로컬에 연결 파일들이 생성이되고 pull pus const cache = useQueryClient() const data = cache.getQueryData(['user', 'info']) as UserState ``` + +# 팝업 컨트롤러 제어 + +### open + +``` +const popupController = usePopupController() + +onClick={() => popupController.setMemberInformationPopup(true)} +onClick={() => popupController.setZipCodePopup(true)} +``` + +### close + +``` +const popupController = usePopupController() + +onClick={() => popupController.setMemberInformationPopup(false)} +onClick={() => popupController.setZipCodePopup(false)} +``` + +# useEffect 정리 + +- client url pathname 변경시 -> @/components/ui/Header.tsx diff --git a/package-lock.json b/package-lock.json index 7d92c17..8d9b4a0 100644 --- a/package-lock.json +++ b/package-lock.json @@ -19,6 +19,7 @@ "react-dom": "^19.0.0", "react-to-pdf": "^2.0.0", "sass": "^1.87.0", + "swiper": "^11.2.6", "zustand": "^5.0.3" }, "devDependencies": { @@ -3947,6 +3948,25 @@ "node": ">=12.0.0" } }, + "node_modules/swiper": { + "version": "11.2.6", + "resolved": "https://registry.npmjs.org/swiper/-/swiper-11.2.6.tgz", + "integrity": "sha512-8aXpYKtjy3DjcbzZfz+/OX/GhcU5h+looA6PbAzHMZT6ESSycSp9nAjPCenczgJyslV+rUGse64LMGpWE3PX9Q==", + "funding": [ + { + "type": "patreon", + "url": "https://www.patreon.com/swiperjs" + }, + { + "type": "open_collective", + "url": "http://opencollective.com/swiper" + } + ], + "license": "MIT", + "engines": { + "node": ">= 4.7.0" + } + }, "node_modules/tailwindcss": { "version": "4.0.17", "resolved": "https://registry.npmjs.org/tailwindcss/-/tailwindcss-4.0.17.tgz", diff --git a/package.json b/package.json index 13cd1fe..61c7e67 100644 --- a/package.json +++ b/package.json @@ -20,6 +20,7 @@ "react-dom": "^19.0.0", "react-to-pdf": "^2.0.0", "sass": "^1.87.0", + "swiper": "^11.2.6", "zustand": "^5.0.3" }, "devDependencies": { diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 920681e..08d920f 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -41,6 +41,9 @@ importers: sass: specifier: ^1.87.0 version: 1.87.0 + swiper: + specifier: ^11.2.6 + version: 11.2.6 zustand: specifier: ^5.0.3 version: 5.0.3(@types/react@19.0.12)(react@19.1.0) @@ -1306,6 +1309,10 @@ packages: resolution: {integrity: sha512-qsjeeq5YjBZ5eMdFuUa4ZosMLxgr5RZ+F+Y1OrDhuOCEInRMA3x74XdBtggJcj9kOeInz0WE+LgCPDkZFlBYJw==} engines: {node: '>=12.0.0'} + swiper@11.2.6: + resolution: {integrity: sha512-8aXpYKtjy3DjcbzZfz+/OX/GhcU5h+looA6PbAzHMZT6ESSycSp9nAjPCenczgJyslV+rUGse64LMGpWE3PX9Q==} + engines: {node: '>= 4.7.0'} + tailwindcss@4.0.17: resolution: {integrity: sha512-OErSiGzRa6rLiOvaipsDZvLMSpsBZ4ysB4f0VKGXUrjw2jfkJRd6kjRKV2+ZmTCNvwtvgdDam5D7w6WXsdLJZw==} @@ -2534,6 +2541,8 @@ snapshots: svg-pathdata@6.0.3: optional: true + swiper@11.2.6: {} + tailwindcss@4.0.17: {} tapable@2.2.1: {} diff --git a/public/assets/fonts/NotoSansJP-Black.woff b/public/assets/fonts/NotoSansJP-Black.woff new file mode 100644 index 0000000..6d1eb87 Binary files /dev/null and b/public/assets/fonts/NotoSansJP-Black.woff differ diff --git a/public/assets/fonts/NotoSansJP-Black.woff2 b/public/assets/fonts/NotoSansJP-Black.woff2 new file mode 100644 index 0000000..57b73ce Binary files /dev/null and b/public/assets/fonts/NotoSansJP-Black.woff2 differ diff --git a/public/assets/fonts/NotoSansJP-Bold.woff b/public/assets/fonts/NotoSansJP-Bold.woff new file mode 100644 index 0000000..528d5dc Binary files /dev/null and b/public/assets/fonts/NotoSansJP-Bold.woff differ diff --git a/public/assets/fonts/NotoSansJP-Bold.woff2 b/public/assets/fonts/NotoSansJP-Bold.woff2 new file mode 100644 index 0000000..7385f01 Binary files /dev/null and b/public/assets/fonts/NotoSansJP-Bold.woff2 differ diff --git a/public/assets/fonts/NotoSansJP-ExtraBold.woff b/public/assets/fonts/NotoSansJP-ExtraBold.woff new file mode 100644 index 0000000..3d5b403 Binary files /dev/null and b/public/assets/fonts/NotoSansJP-ExtraBold.woff differ diff --git a/public/assets/fonts/NotoSansJP-ExtraBold.woff2 b/public/assets/fonts/NotoSansJP-ExtraBold.woff2 new file mode 100644 index 0000000..e23b593 Binary files /dev/null and b/public/assets/fonts/NotoSansJP-ExtraBold.woff2 differ diff --git a/public/assets/fonts/NotoSansJP-ExtraLight.woff b/public/assets/fonts/NotoSansJP-ExtraLight.woff new file mode 100644 index 0000000..8d60693 Binary files /dev/null and b/public/assets/fonts/NotoSansJP-ExtraLight.woff differ diff --git a/public/assets/fonts/NotoSansJP-ExtraLight.woff2 b/public/assets/fonts/NotoSansJP-ExtraLight.woff2 new file mode 100644 index 0000000..c43674f Binary files /dev/null and b/public/assets/fonts/NotoSansJP-ExtraLight.woff2 differ diff --git a/public/assets/fonts/NotoSansJP-Light.woff b/public/assets/fonts/NotoSansJP-Light.woff new file mode 100644 index 0000000..dbe70e4 Binary files /dev/null and b/public/assets/fonts/NotoSansJP-Light.woff differ diff --git a/public/assets/fonts/NotoSansJP-Light.woff2 b/public/assets/fonts/NotoSansJP-Light.woff2 new file mode 100644 index 0000000..d0ead44 Binary files /dev/null and b/public/assets/fonts/NotoSansJP-Light.woff2 differ diff --git a/public/assets/fonts/NotoSansJP-Medium.woff b/public/assets/fonts/NotoSansJP-Medium.woff new file mode 100644 index 0000000..fdfffa1 Binary files /dev/null and b/public/assets/fonts/NotoSansJP-Medium.woff differ diff --git a/public/assets/fonts/NotoSansJP-Medium.woff2 b/public/assets/fonts/NotoSansJP-Medium.woff2 new file mode 100644 index 0000000..5d3da28 Binary files /dev/null and b/public/assets/fonts/NotoSansJP-Medium.woff2 differ diff --git a/public/assets/fonts/NotoSansJP-Regular.woff b/public/assets/fonts/NotoSansJP-Regular.woff new file mode 100644 index 0000000..cad2210 Binary files /dev/null and b/public/assets/fonts/NotoSansJP-Regular.woff differ diff --git a/public/assets/fonts/NotoSansJP-Regular.woff2 b/public/assets/fonts/NotoSansJP-Regular.woff2 new file mode 100644 index 0000000..d31b328 Binary files /dev/null and b/public/assets/fonts/NotoSansJP-Regular.woff2 differ diff --git a/public/assets/fonts/NotoSansJP-SemiBold.woff b/public/assets/fonts/NotoSansJP-SemiBold.woff new file mode 100644 index 0000000..2922f15 Binary files /dev/null and b/public/assets/fonts/NotoSansJP-SemiBold.woff differ diff --git a/public/assets/fonts/NotoSansJP-SemiBold.woff2 b/public/assets/fonts/NotoSansJP-SemiBold.woff2 new file mode 100644 index 0000000..4ec2170 Binary files /dev/null and b/public/assets/fonts/NotoSansJP-SemiBold.woff2 differ diff --git a/public/assets/fonts/NotoSansJP-Thin.woff b/public/assets/fonts/NotoSansJP-Thin.woff new file mode 100644 index 0000000..517b984 Binary files /dev/null and b/public/assets/fonts/NotoSansJP-Thin.woff differ diff --git a/public/assets/fonts/NotoSansJP-Thin.woff2 b/public/assets/fonts/NotoSansJP-Thin.woff2 new file mode 100644 index 0000000..85a6b50 Binary files /dev/null and b/public/assets/fonts/NotoSansJP-Thin.woff2 differ diff --git a/public/assets/fonts/Pretendard-Black.woff b/public/assets/fonts/Pretendard-Black.woff new file mode 100644 index 0000000..20b0641 Binary files /dev/null and b/public/assets/fonts/Pretendard-Black.woff differ diff --git a/public/assets/fonts/Pretendard-Black.woff2 b/public/assets/fonts/Pretendard-Black.woff2 new file mode 100644 index 0000000..306697c Binary files /dev/null and b/public/assets/fonts/Pretendard-Black.woff2 differ diff --git a/public/assets/fonts/Pretendard-Bold.woff b/public/assets/fonts/Pretendard-Bold.woff new file mode 100644 index 0000000..bfc573c Binary files /dev/null and b/public/assets/fonts/Pretendard-Bold.woff differ diff --git a/public/assets/fonts/Pretendard-Bold.woff2 b/public/assets/fonts/Pretendard-Bold.woff2 new file mode 100644 index 0000000..d99618c Binary files /dev/null and b/public/assets/fonts/Pretendard-Bold.woff2 differ diff --git a/public/assets/fonts/Pretendard-ExtraBold.woff b/public/assets/fonts/Pretendard-ExtraBold.woff new file mode 100644 index 0000000..14a61ab Binary files /dev/null and b/public/assets/fonts/Pretendard-ExtraBold.woff differ diff --git a/public/assets/fonts/Pretendard-ExtraBold.woff2 b/public/assets/fonts/Pretendard-ExtraBold.woff2 new file mode 100644 index 0000000..d7a908e Binary files /dev/null and b/public/assets/fonts/Pretendard-ExtraBold.woff2 differ diff --git a/public/assets/fonts/Pretendard-ExtraLight.woff b/public/assets/fonts/Pretendard-ExtraLight.woff new file mode 100644 index 0000000..a7af8a2 Binary files /dev/null and b/public/assets/fonts/Pretendard-ExtraLight.woff differ diff --git a/public/assets/fonts/Pretendard-ExtraLight.woff2 b/public/assets/fonts/Pretendard-ExtraLight.woff2 new file mode 100644 index 0000000..0c41886 Binary files /dev/null and b/public/assets/fonts/Pretendard-ExtraLight.woff2 differ diff --git a/public/assets/fonts/Pretendard-Light.woff b/public/assets/fonts/Pretendard-Light.woff new file mode 100644 index 0000000..6e00ad2 Binary files /dev/null and b/public/assets/fonts/Pretendard-Light.woff differ diff --git a/public/assets/fonts/Pretendard-Light.woff2 b/public/assets/fonts/Pretendard-Light.woff2 new file mode 100644 index 0000000..805d10c Binary files /dev/null and b/public/assets/fonts/Pretendard-Light.woff2 differ diff --git a/public/assets/fonts/Pretendard-Medium.woff b/public/assets/fonts/Pretendard-Medium.woff new file mode 100644 index 0000000..71b13eb Binary files /dev/null and b/public/assets/fonts/Pretendard-Medium.woff differ diff --git a/public/assets/fonts/Pretendard-Medium.woff2 b/public/assets/fonts/Pretendard-Medium.woff2 new file mode 100644 index 0000000..a96e69b Binary files /dev/null and b/public/assets/fonts/Pretendard-Medium.woff2 differ diff --git a/public/assets/fonts/Pretendard-Regular.woff b/public/assets/fonts/Pretendard-Regular.woff new file mode 100644 index 0000000..741be57 Binary files /dev/null and b/public/assets/fonts/Pretendard-Regular.woff differ diff --git a/public/assets/fonts/Pretendard-Regular.woff2 b/public/assets/fonts/Pretendard-Regular.woff2 new file mode 100644 index 0000000..a5d5aea Binary files /dev/null and b/public/assets/fonts/Pretendard-Regular.woff2 differ diff --git a/public/assets/fonts/Pretendard-SemiBold.woff b/public/assets/fonts/Pretendard-SemiBold.woff new file mode 100644 index 0000000..7bf2860 Binary files /dev/null and b/public/assets/fonts/Pretendard-SemiBold.woff differ diff --git a/public/assets/fonts/Pretendard-SemiBold.woff2 b/public/assets/fonts/Pretendard-SemiBold.woff2 new file mode 100644 index 0000000..d5a7717 Binary files /dev/null and b/public/assets/fonts/Pretendard-SemiBold.woff2 differ diff --git a/public/assets/fonts/Pretendard-Thin.woff b/public/assets/fonts/Pretendard-Thin.woff new file mode 100644 index 0000000..665fe44 Binary files /dev/null and b/public/assets/fonts/Pretendard-Thin.woff differ diff --git a/public/assets/fonts/Pretendard-Thin.woff2 b/public/assets/fonts/Pretendard-Thin.woff2 new file mode 100644 index 0000000..8ce8ee2 Binary files /dev/null and b/public/assets/fonts/Pretendard-Thin.woff2 differ diff --git a/public/assets/images/common/btn_arr.svg b/public/assets/images/common/btn_arr.svg new file mode 100644 index 0000000..badbdcd --- /dev/null +++ b/public/assets/images/common/btn_arr.svg @@ -0,0 +1,3 @@ + + + diff --git a/public/assets/images/common/btn_clip.svg b/public/assets/images/common/btn_clip.svg new file mode 100644 index 0000000..873fa81 --- /dev/null +++ b/public/assets/images/common/btn_clip.svg @@ -0,0 +1,4 @@ + + + + diff --git a/public/assets/images/common/btn_clip_col.svg b/public/assets/images/common/btn_clip_col.svg new file mode 100644 index 0000000..c61378e --- /dev/null +++ b/public/assets/images/common/btn_clip_col.svg @@ -0,0 +1,4 @@ + + + + diff --git a/public/assets/images/common/btn_edit.svg b/public/assets/images/common/btn_edit.svg new file mode 100644 index 0000000..c2db46c --- /dev/null +++ b/public/assets/images/common/btn_edit.svg @@ -0,0 +1,4 @@ + + + + diff --git a/public/assets/images/common/date_icon.svg b/public/assets/images/common/date_icon.svg new file mode 100644 index 0000000..496e239 --- /dev/null +++ b/public/assets/images/common/date_icon.svg @@ -0,0 +1,14 @@ + + + + + + + + + + + + + + diff --git a/public/assets/images/common/id_delete_icon.svg b/public/assets/images/common/id_delete_icon.svg new file mode 100644 index 0000000..0a48671 --- /dev/null +++ b/public/assets/images/common/id_delete_icon.svg @@ -0,0 +1,10 @@ + + + + + + + + + + diff --git a/public/assets/images/common/id_input_icon.svg b/public/assets/images/common/id_input_icon.svg new file mode 100644 index 0000000..7dd0a4c --- /dev/null +++ b/public/assets/images/common/id_input_icon.svg @@ -0,0 +1,3 @@ + + + diff --git a/public/assets/images/common/pw_hide_icon.svg b/public/assets/images/common/pw_hide_icon.svg new file mode 100644 index 0000000..c7565e0 --- /dev/null +++ b/public/assets/images/common/pw_hide_icon.svg @@ -0,0 +1,16 @@ + + + + + + + + + + + + + + + + diff --git a/public/assets/images/common/pw_input_icon.svg b/public/assets/images/common/pw_input_icon.svg new file mode 100644 index 0000000..aeedb19 --- /dev/null +++ b/public/assets/images/common/pw_input_icon.svg @@ -0,0 +1,3 @@ + + + diff --git a/public/assets/images/common/pw_show_icon.svg b/public/assets/images/common/pw_show_icon.svg new file mode 100644 index 0000000..7c10ba0 --- /dev/null +++ b/public/assets/images/common/pw_show_icon.svg @@ -0,0 +1,3 @@ + + + diff --git a/public/assets/images/common/search_del_icon.svg b/public/assets/images/common/search_del_icon.svg new file mode 100644 index 0000000..b6e044e --- /dev/null +++ b/public/assets/images/common/search_del_icon.svg @@ -0,0 +1,3 @@ + + + diff --git a/public/assets/images/common/search_icon.svg b/public/assets/images/common/search_icon.svg new file mode 100644 index 0000000..e83498c --- /dev/null +++ b/public/assets/images/common/search_icon.svg @@ -0,0 +1,3 @@ + + + diff --git a/public/assets/images/common/select_arr.svg b/public/assets/images/common/select_arr.svg new file mode 100644 index 0000000..a93ba54 --- /dev/null +++ b/public/assets/images/common/select_arr.svg @@ -0,0 +1,3 @@ + + + diff --git a/public/assets/images/common/side_nav_btn.svg b/public/assets/images/common/side_nav_btn.svg new file mode 100644 index 0000000..ab8e609 --- /dev/null +++ b/public/assets/images/common/side_nav_btn.svg @@ -0,0 +1,5 @@ + + + + + diff --git a/public/assets/images/layout/modal_close.svg b/public/assets/images/layout/modal_close.svg new file mode 100644 index 0000000..e8a1829 --- /dev/null +++ b/public/assets/images/layout/modal_close.svg @@ -0,0 +1,3 @@ + + + diff --git a/public/assets/images/layout/modal_header_icon.svg b/public/assets/images/layout/modal_header_icon.svg new file mode 100644 index 0000000..604629e --- /dev/null +++ b/public/assets/images/layout/modal_header_icon.svg @@ -0,0 +1,4 @@ + + + + diff --git a/public/assets/images/layout/modal_header_icon02.svg b/public/assets/images/layout/modal_header_icon02.svg new file mode 100644 index 0000000..2bd5c0f --- /dev/null +++ b/public/assets/images/layout/modal_header_icon02.svg @@ -0,0 +1,6 @@ + + + + + + diff --git a/public/assets/images/layout/side_back_btn.svg b/public/assets/images/layout/side_back_btn.svg new file mode 100644 index 0000000..0697f08 --- /dev/null +++ b/public/assets/images/layout/side_back_btn.svg @@ -0,0 +1,3 @@ + + + diff --git a/public/assets/images/layout/side_nav_close.svg b/public/assets/images/layout/side_nav_close.svg new file mode 100644 index 0000000..918071b --- /dev/null +++ b/public/assets/images/layout/side_nav_close.svg @@ -0,0 +1,3 @@ + + + diff --git a/public/assets/images/layout/side_nav_item_arr.svg b/public/assets/images/layout/side_nav_item_arr.svg new file mode 100644 index 0000000..ccbf0e6 --- /dev/null +++ b/public/assets/images/layout/side_nav_item_arr.svg @@ -0,0 +1,3 @@ + + + diff --git a/public/assets/images/layout/side_nav_profile.svg b/public/assets/images/layout/side_nav_profile.svg new file mode 100644 index 0000000..582c488 --- /dev/null +++ b/public/assets/images/layout/side_nav_profile.svg @@ -0,0 +1,5 @@ + + + + + diff --git a/public/assets/images/layout/side_swiper_icon01.svg b/public/assets/images/layout/side_swiper_icon01.svg new file mode 100644 index 0000000..63fe798 --- /dev/null +++ b/public/assets/images/layout/side_swiper_icon01.svg @@ -0,0 +1,8 @@ + + + + + + + + diff --git a/public/assets/images/layout/side_swiper_icon02.svg b/public/assets/images/layout/side_swiper_icon02.svg new file mode 100644 index 0000000..0ea547c --- /dev/null +++ b/public/assets/images/layout/side_swiper_icon02.svg @@ -0,0 +1,6 @@ + + + + + + diff --git a/public/assets/images/main/block_arr.svg b/public/assets/images/main/block_arr.svg new file mode 100644 index 0000000..03c61be --- /dev/null +++ b/public/assets/images/main/block_arr.svg @@ -0,0 +1,3 @@ + + + diff --git a/public/assets/images/main/main_contens_arr.svg b/public/assets/images/main/main_contens_arr.svg new file mode 100644 index 0000000..1e16f03 --- /dev/null +++ b/public/assets/images/main/main_contens_arr.svg @@ -0,0 +1,3 @@ + + + diff --git a/public/assets/images/main/main_icon01.svg b/public/assets/images/main/main_icon01.svg new file mode 100644 index 0000000..12e8423 --- /dev/null +++ b/public/assets/images/main/main_icon01.svg @@ -0,0 +1,6 @@ + + + + + + diff --git a/public/assets/images/main/main_icon02.svg b/public/assets/images/main/main_icon02.svg new file mode 100644 index 0000000..9b67936 --- /dev/null +++ b/public/assets/images/main/main_icon02.svg @@ -0,0 +1,5 @@ + + + + + diff --git a/public/assets/images/main/main_icon03.svg b/public/assets/images/main/main_icon03.svg new file mode 100644 index 0000000..7462236 --- /dev/null +++ b/public/assets/images/main/main_icon03.svg @@ -0,0 +1,4 @@ + + + + diff --git a/public/assets/images/main/main_icon04.svg b/public/assets/images/main/main_icon04.svg new file mode 100644 index 0000000..00a7504 --- /dev/null +++ b/public/assets/images/main/main_icon04.svg @@ -0,0 +1,5 @@ + + + + + diff --git a/public/assets/images/sub/down_icon.svg b/public/assets/images/sub/down_icon.svg new file mode 100644 index 0000000..3dac9b0 --- /dev/null +++ b/public/assets/images/sub/down_icon.svg @@ -0,0 +1,3 @@ + + + diff --git a/public/assets/images/sub/top_btn_icon.svg b/public/assets/images/sub/top_btn_icon.svg new file mode 100644 index 0000000..aa7ca4f --- /dev/null +++ b/public/assets/images/sub/top_btn_icon.svg @@ -0,0 +1,4 @@ + + + + diff --git a/src/api/auth.ts b/src/api/auth.ts deleted file mode 100644 index ee3fd05..0000000 --- a/src/api/auth.ts +++ /dev/null @@ -1,21 +0,0 @@ -'use server' - -import { SessionData, sessionOptions } from '@/libs/session' -import { getIronSession } from 'iron-session' -import { cookies } from 'next/headers' -import { redirect } from 'next/navigation' - -export const logout = async () => { - const cookieStore = await cookies() - const session = await getIronSession(cookieStore, sessionOptions) - - session.destroy() - return redirect('/login') -} - -export const getSession = async () => { - const cookieStore = await cookies() - const session = await getIronSession(cookieStore, sessionOptions) - - return session -} diff --git a/src/api/user.ts b/src/api/user.ts deleted file mode 100644 index fe299ba..0000000 --- a/src/api/user.ts +++ /dev/null @@ -1,37 +0,0 @@ -import { axiosInstance } from '@/libs/axios' - -export interface UserData { - username: string - email: string - password: string -} - -export interface User { - id: number - username: string - email: string - created_at: string - updated_at: string -} - -export interface LoginData { - username: string - password: string -} - -export const userApi = { - create: async (data: UserData): Promise => { - const response = await axiosInstance.post('/api/user/create', data) - return response.data - }, - - getList: async (): Promise => { - const response = await axiosInstance.get('/api/user/list') - return response.data - }, - - getUser: async (data: LoginData): Promise => { - const response = await axiosInstance.post(`/api/user`, data) - return response.data - }, -} diff --git a/src/app/@floatBtn/default.tsx b/src/app/@floatBtn/default.tsx new file mode 100644 index 0000000..32ec252 --- /dev/null +++ b/src/app/@floatBtn/default.tsx @@ -0,0 +1,5 @@ +import FloatBtn from '@/components/ui/common/FloatBtn' + +export default function page() { + return +} diff --git a/src/app/@footer/default.tsx b/src/app/@footer/default.tsx new file mode 100644 index 0000000..7496ca7 --- /dev/null +++ b/src/app/@footer/default.tsx @@ -0,0 +1,5 @@ +import Footer from '@/components/ui/common/Footer' + +export default function page() { + return