Skip to content

Commit

Permalink
✨ : #490 - 메인페이지 구성
Browse files Browse the repository at this point in the history
  • Loading branch information
qkdl60 committed Mar 16, 2024
1 parent fa352c2 commit 6775975
Show file tree
Hide file tree
Showing 2 changed files with 78 additions and 0 deletions.
21 changes: 21 additions & 0 deletions src/app/main/index.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
.outside-box {
border: 2px solid var(--origin-secondary);
box-shadow: var(--origin-shadow);
padding: 1rem 1.5rem;
border-radius: 2rem;
}

.main {
&__item {
&__header {
display: flex;
align-items: center;
justify-content: space-between;
}
&--link {
text-decoration: none;

color: var(--origin-text-300);
}
}
}
57 changes: 57 additions & 0 deletions src/app/main/layout.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,57 @@
import Link from 'next/link';
import { ReactElement } from 'react';
import MainHeader from './_components/MainHeader/MainHeader';
import './index.scss';

interface LayoutProps {
createButtons: ReactElement;
feedback: ReactElement;
plan: ReactElement;
footprint: ReactElement;
}

export default function Layout({
createButtons,
feedback,
plan,
footprint,
}: LayoutProps) {
return (
<div style={{ height: '100%', overflowY: 'scroll' }}>
<MainHeader />
<div
style={{
padding: '1.5rem 0',

display: 'flex',
flexDirection: 'column',
gap: '1.5rem',
}}>
{createButtons}
<div className="outside-box">
<h1 className="font-size-lg ">피드백</h1>
{feedback}
</div>
<div className="outside-box">
<div className="main__item__header">
<h1 className="font-size-lg ">내 계획</h1>
<Link className="main__item--link font-size-xs" href={'/'}>
전체보기
</Link>
</div>
{plan}
</div>

<div className="outside-box">
<div className="main__item__header">
<h1 className="font-size-lg ">발자취</h1>
<Link className="main__item--link font-size-xs" href={'/'}>
전체보기
</Link>
</div>
{footprint}
</div>
</div>
</div>
);
}

0 comments on commit 6775975

Please sign in to comment.