Main.jsx에 있는 header와 footer를 복사해서 Layout 컴포넌트에 잘 붙여넣는다 import React from "react";
import { Outlet } from "react-router-dom";
export default function Layout() {
return (
<div
style={{
minHeight: "100vh",
position: "relative",
paddingBottom: "90px",
boxSizing: "border-box",
}}
>
{}
<header
style={{
display: "flex",
justifyContent: "space-between",
padding: "24px",
backgroundColor: "#000000",
color: "white",
}}
>
<div>로고</div>
<div
style={{
display: "flex",
gap: "12px",
}}
>
<div>로그인</div>
<div>회원가입</div>
</div>
</header>
{}
<footer
style={{
marginTop: "24px",
display: "flex",
justifyContent: "space-between",
padding: "24px",
backgroundColor: "#EEEEEE",
color: "black",
position: "absolute",
bottom: 0,
width: "100%",
boxSizing: "border-box",
}}
>
<div>문의하기</div>
<div>SNS 채널들</div>
</footer>
</div>
);
}