Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 14 additions & 4 deletions src/components/layout/frame/frame.tsx
Original file line number Diff line number Diff line change
@@ -1,18 +1,28 @@
import { Container } from '@/components/layout/container';
import Button from '@/components/ui/button/button';
import Link from 'next/link';

interface FrameProps {
title: string;
content: string;
buttonText: string;
href: string;
}

const Frame = ({ title, content }: FrameProps) => {
const Frame = ({ title, content, buttonText, href }: FrameProps) => {
return (
<>
<section className='flex flex-col gap-4 px-3 py-10 tablet:px-8 tablet:py-[60px] desktop:px-[237px] desktop:py-[60px]'>
<Container as='section' className='flex flex-col gap-4 py-10 tablet:py-[60px]'>
<h1 className='text-heading-s font-bold tablet:text-heading-l'>{title}</h1>
<div className='flex flex-col items-center justify-center gap-4 rounded-xl border border-solid border-gray-200 px-6 py-[60px]'>
<h2 className='text-body-s font-normal tablet:text-body-l'>{content}</h2>
{/* 버튼 컴포넌트 넣을 자리 */}
<div className='tablet:w-[346px]'>
<Button size='md' as={Link} href={href} full>
{buttonText}
</Button>
</div>
</div>
</section>
</Container>
</>
);
};
Expand Down