From 8fc8cb5f4a71b1b8949b6e40cb301f202276f324 Mon Sep 17 00:00:00 2001 From: sarang Date: Wed, 20 Aug 2025 01:03:05 +0900 Subject: [PATCH] =?UTF-8?q?fix:=20=EC=98=A8=EB=B3=B4=EB=94=A9=20=ED=8E=98?= =?UTF-8?q?=EC=9D=B4=EC=A7=80=20UI=20=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/App.jsx | 2 -- src/pages/OnBoarding.jsx | 11 +++++++++-- src/stores/useAuthStore.js | 8 ++++++++ 3 files changed, 17 insertions(+), 4 deletions(-) create mode 100644 src/stores/useAuthStore.js diff --git a/src/App.jsx b/src/App.jsx index c0e9f18..4939953 100644 --- a/src/App.jsx +++ b/src/App.jsx @@ -22,7 +22,6 @@ function App() { // 바텀nav바를 숨길 경로들 const hideBottomNavPaths = [ "/splash", - "/", "/signup", "/login", "/chat/room/buy", @@ -35,7 +34,6 @@ function App() { // 탑nav바를 숨길 경로들 const hideTopNavPaths = [ "/splash", - "/", "/login", "/signup", "/chat/room/final", diff --git a/src/pages/OnBoarding.jsx b/src/pages/OnBoarding.jsx index 4133d9f..0bbf195 100644 --- a/src/pages/OnBoarding.jsx +++ b/src/pages/OnBoarding.jsx @@ -24,7 +24,11 @@ const OnboardingContainer = styled.div` `; const SwiperWrapper = styled.div` - flex: 4; + position: absolute; + top: 80px; + left: 50%; + transform: translateX(-50%); + width: 100%; display: flex; justify-content: center; align-items: center; @@ -39,7 +43,10 @@ const SlideImage = styled.img` `; const BottomWrapper = styled.div` - flex: 1; + position: absolute; + bottom: 150px; + left: 50%; + transform: translateX(-50%); display: flex; justify-content: center; align-items: center; diff --git a/src/stores/useAuthStore.js b/src/stores/useAuthStore.js new file mode 100644 index 0000000..993cd8e --- /dev/null +++ b/src/stores/useAuthStore.js @@ -0,0 +1,8 @@ +import { create } from "zustand"; + +const useAuthStore = create((set) => ({ + token: localStorage.getItem("access_token") || null, + setToken: (token) => set({ token }), +})); + +export default useAuthStore;