diff --git a/frontend/src/components/Footer/Footer.jsx b/frontend/src/components/Footer/Footer.jsx index 65f0b6a..96c4043 100644 --- a/frontend/src/components/Footer/Footer.jsx +++ b/frontend/src/components/Footer/Footer.jsx @@ -4,19 +4,19 @@ import styles from './Footer.module.css'; export default function Footer() { return ( ); } diff --git a/frontend/src/components/Header/Header.jsx b/frontend/src/components/Header/Header.jsx new file mode 100644 index 0000000..b59e5d2 --- /dev/null +++ b/frontend/src/components/Header/Header.jsx @@ -0,0 +1,38 @@ +import { Link } from 'react-router-dom'; +import styles from './Header.module.css'; + +export default function Header() { + return ( +
+ +
+ ); +} diff --git a/frontend/src/components/Header/Header.module.css b/frontend/src/components/Header/Header.module.css new file mode 100644 index 0000000..77f41fb --- /dev/null +++ b/frontend/src/components/Header/Header.module.css @@ -0,0 +1,35 @@ +.header { + display: flex; + align-items: center; + position: fixed; + top: 0; + left: 0; + width: 100%; + height: 80px; + background-color: var(--background); + border-bottom: 1px solid var(--border-color); +} + +.nav { + display: flex; + justify-content: space-between; + align-items: center; + gap: 20px; + width: 100%; + max-width: 1320px; + padding: 0 40px; + margin: 0 auto; + font-size: 16px; + line-height: 1.4; + font-weight: 700; + color: var(--text-color); +} + +.group { + display: flex; + align-items: center; + gap: 24px; + list-style: none; + padding: 0; + margin: 0; +} diff --git a/frontend/src/components/Header/index.js b/frontend/src/components/Header/index.js new file mode 100644 index 0000000..5653319 --- /dev/null +++ b/frontend/src/components/Header/index.js @@ -0,0 +1 @@ +export { default as Header } from './Header'; diff --git a/frontend/src/components/Layout/MaxWidthLayout.jsx b/frontend/src/components/Layout/MaxWidthLayout.jsx new file mode 100644 index 0000000..9b4dc8c --- /dev/null +++ b/frontend/src/components/Layout/MaxWidthLayout.jsx @@ -0,0 +1,5 @@ +import styles from './MaxWidthLayout.module.css'; + +export default function MaxWidthLayout({ children }) { + return
{children}
; +} diff --git a/frontend/src/components/Layout/MaxWidthLayout.module.css b/frontend/src/components/Layout/MaxWidthLayout.module.css new file mode 100644 index 0000000..2e1a689 --- /dev/null +++ b/frontend/src/components/Layout/MaxWidthLayout.module.css @@ -0,0 +1,5 @@ +.area { + max-width: 1320px; + padding: 0 40px; + margin: 0 auto; +} diff --git a/frontend/src/components/Layout/PageLayout.jsx b/frontend/src/components/Layout/PageLayout.jsx new file mode 100644 index 0000000..2a5cee5 --- /dev/null +++ b/frontend/src/components/Layout/PageLayout.jsx @@ -0,0 +1,15 @@ +import { Footer } from '../Footer'; +import { Header } from '../Header'; +import styles from './PageLayout.module.css'; + +export default function PageLayout({ children }) { + return ( + <> +
+
+
{children}
+
+ + ); +} diff --git a/frontend/src/components/Layout/PageLayout.module.css b/frontend/src/components/Layout/PageLayout.module.css new file mode 100644 index 0000000..3788503 --- /dev/null +++ b/frontend/src/components/Layout/PageLayout.module.css @@ -0,0 +1,10 @@ +.body { + display: flex; + flex-direction: column; + justify-content: space-between; + min-height: 100vh; +} + +.contents { + margin-top: 100px; +} diff --git a/frontend/src/components/Layout/index.js b/frontend/src/components/Layout/index.js new file mode 100644 index 0000000..5f04ed6 --- /dev/null +++ b/frontend/src/components/Layout/index.js @@ -0,0 +1,2 @@ +export { default as PageLayout } from './PageLayout'; +export { default as MaxWidthLayout } from './MaxWidthLayout'; diff --git a/frontend/src/index.css b/frontend/src/index.css index 15ed389..5f659f9 100644 --- a/frontend/src/index.css +++ b/frontend/src/index.css @@ -132,6 +132,7 @@ body { font-family: Pretendard, + Pretendard Variable, -apple-system, BlinkMacSystemFont, Apple SD Gothic Neo,