Skip to content

Commit b1b0097

Browse files
committed
feat: 하단 Button 섹션 구현
1 parent c1b3601 commit b1b0097

3 files changed

Lines changed: 26 additions & 4 deletions

File tree

app/(with-sidebar)/(home)/page.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
import BottomSection from '@/components/home/BottomSection';
2-
import Card from '@/components/home/Card';
32
import GraphSection from '@/components/home/GraphSection';
43
import HeaderSection from '@/components/home/HeaderSection';
54
import ProfileSection from '@/components/home/ProfileSection';
5+
import ButtonSection from '@/components/home/ButtonSection';
66

77
const Page = () => {
88
return (
@@ -21,6 +21,7 @@ const Page = () => {
2121

2222
{/* 3. ButtonSection */}
2323
{/* 버튼 두개 만드쇼 */}
24+
<ButtonSection />
2425
</div>
2526
);
2627
};

components/home/ButtonSection.tsx

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
const ButtonSection = () => {
2+
return (
3+
<div className="flex w-full max-w-5xl gap-6">
4+
<button
5+
type="button"
6+
className="bg-primary flex-1 rounded-xl py-4 text-center text-base font-semibold text-white shadow-sm transition hover:bg-violet-500 active:bg-violet-700 disabled:cursor-not-allowed disabled:opacity-60"
7+
>
8+
새 TIL 작성
9+
</button>
10+
11+
<button
12+
type="button"
13+
className="flex-1 rounded-xl border border-slate-300 bg-none py-4 text-center text-base font-semibold text-slate-700 transition hover:bg-slate-200 active:bg-slate-300 disabled:cursor-not-allowed disabled:opacity-60"
14+
>
15+
계획 추가하기
16+
</button>
17+
</div>
18+
);
19+
};
20+
21+
export default ButtonSection;

components/home/ProfileSection.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,17 +17,17 @@ const ProfileSection = ({ className }: ProfileSectionProps) => {
1717
<h3 className="text-xl font-bold text-gray-900">이건무</h3>
1818
<p className="text-sm text-gray-500">@mnmnnmm324</p>
1919
<div className="mt-1 flex gap-2 text-xs font-medium">
20-
<span className="text-purple-600">38193일 연속</span>
20+
<span className="text-primary">38193일 </span>연속
2121
<span className="text-gray-400">|</span>
22-
<span className="text-gray-600">12개 TIL</span>
22+
<span className="text-primary">12개 </span>TIL
2323
</div>
2424
</div>
2525
</Card>
2626
</div>
2727

2828
<div className="md:col-span-1">
2929
<Card className="flex h-full flex-col items-center justify-center text-center">
30-
<div className="mb-1 text-4xl font-bold text-purple-600">3/5</div>
30+
<div className="text-primary mb-1 text-4xl font-bold">3/5</div>
3131
<div className="text-sm font-medium text-gray-500">
3232
오늘의 목표 달성률
3333
</div>

0 commit comments

Comments
 (0)