Skip to content

Commit

Permalink
create DButton
Browse files Browse the repository at this point in the history
  • Loading branch information
da-in committed Nov 28, 2023
1 parent ac75a6f commit c71e59b
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/DBadge.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
const DBadge = ({text}:{text:string}) => {
return (
<div className='py-1.5 px-5 border border-black rounded-3xl w-fit'>
<div className='py-1.5 px-5 border border-black rounded-full w-fit'>
<span className='text-[11px]'>{text}</span>
</div>
)
Expand Down
9 changes: 9 additions & 0 deletions src/components/DButton.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
const DButton = ({text}:{text:string}) => {
return(
<button className='bg-[#FF620A] text-white py-3 w-[336px] rounded-full'>
{text}
</button>
)
}

export default DButton;
3 changes: 3 additions & 0 deletions src/pages/LandingPage.tsx
Original file line number Diff line number Diff line change
@@ -1,12 +1,15 @@
import logo from '../assets/logo.svg';
import DBadge from "../components/DBadge.tsx";
import DButton from "../components/DButton.tsx";
const LandingPage = () => {
return (
<>
<div className='flex items-center flex-col gap-y-5'>
<DBadge text='롤링페이퍼 공개까지 D-7' />
<img src={logo} />
<span className='whitespace-pre text-center'>{'직접 그린 하나뿐인 그림과\n마음이 담긴 편지를 받아보세요'}</span>
<DButton text='그림 롤링페이퍼 받아보기' />
<span className='text-[11px]'>지금까지 12,456개의 그림이 그려졌어요</span>
</div>
</>
);
Expand Down

0 comments on commit c71e59b

Please sign in to comment.