Skip to content

Commit

Permalink
fix(layout) : mainpage layout
Browse files Browse the repository at this point in the history
  • Loading branch information
최현우 committed Dec 22, 2023
1 parent ff023e7 commit daec59c
Show file tree
Hide file tree
Showing 5 changed files with 20 additions and 11 deletions.
4 changes: 2 additions & 2 deletions component/Funnel/LoginFunnel.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ const LoginFunnel = () => {
// };

return (
<VStack w={"100%"} h={"100%"} justifyContent={"center"}>
<VStack w={"100%"} h={"100vh"} justifyContent={"center"}>
<Box marginBottom={"150px"}>
<VerticalLogoIcon />
</Box>
Expand All @@ -26,7 +26,7 @@ const LoginFunnel = () => {
<ButtonGroup
width={"100%"}
pos={"absolute"}
bottom={"5vh"}
bottom={"4vh"}
padding={"0 22px"}
justifyContent={"center"}
>
Expand Down
6 changes: 2 additions & 4 deletions component/Funnel/MainFunnel.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -20,16 +20,14 @@ interface MainFunnelPropsType {
}

const MainFunnel = ({ setFunnel }: MainFunnelPropsType) => {
console.log(process.env.NEXT_PUBLIC_API_URL);

return (
<>
<VStack
w={"#100%"}
h={"100%"}
spacing={"16px"}
as="section"
marginTop={"71px"}
justifyContent={"center"}
>
<Heading
as={"h1"}
Expand Down Expand Up @@ -74,7 +72,7 @@ const MainFunnel = ({ setFunnel }: MainFunnelPropsType) => {
<ButtonGroup
width={"100%"}
pos={"absolute"}
bottom={"5vh"}
bottom={"4vh"}
padding={"0 22px"}
justifyContent={"center"}
>
Expand Down
4 changes: 0 additions & 4 deletions component/form/UserPhysicForm.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -50,10 +50,6 @@ const UserPhysicForm = ({ userInfo }: UserPhysicsFormPropsType) => {
targetWeight: parseInt(data.targetWeight),
};

// await postUserInfoMutation(newUserInfo);
// console.log(userId);
// localStorage.setItem("userId", userId.user_id);

localStorage.setItem("userInfo", JSON.stringify(newUserInfo));
router.push("/main");
};
Expand Down
10 changes: 10 additions & 0 deletions component/header/TheMainHeader.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
"use client";

import { Box } from "@chakra-ui/react";
import { ReactNode } from "react";

const TheMainHeader = () => {
return <Box as={"header"}>header</Box>;
};

export default TheMainHeader;
7 changes: 6 additions & 1 deletion src/app/layout.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
import type { Metadata } from "next";
import { ChakraLayout } from "@/app/ChakraLayout";
import QueryLayout from "./QueryLayout";
import TheHeader from "../../component/header/TheHeader";
import TheMainHeader from "../../component/header/TheMainHeader";

export const metadata: Metadata = {
metadataBase: new URL(
Expand Down Expand Up @@ -43,7 +45,10 @@ export default function RootLayout({
</head>
<body suppressHydrationWarning={true}>
<QueryLayout>
<ChakraLayout>{children}</ChakraLayout>
<ChakraLayout>
{/* <TheMainHeader /> */}
{children}
</ChakraLayout>
</QueryLayout>
</body>
</html>
Expand Down

0 comments on commit daec59c

Please sign in to comment.