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;