Skip to content

Commit

Permalink
✨Feat: 타임라인 페이지 반응형 적용 #30
Browse files Browse the repository at this point in the history
  • Loading branch information
puretension committed Apr 26, 2024
1 parent 9683a2f commit 14ed4f8
Showing 1 changed file with 16 additions and 15 deletions.
31 changes: 16 additions & 15 deletions src/app/timeline/page.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
// src/app/timeline/page.tsx
'use client';
import React, { useState } from 'react';
import TimelineHeader from "@/components/timeline/header/TimelineHeader";
Expand All @@ -14,21 +13,23 @@ export default function TimelinePage() {
};

return (
<main className="w-full px-10">
<TimelineHeader />
<section className="w-4/5 flex flex-col mx-auto my-10">
<section className="w-full flex justify-start items-center gap-3">
{['1st', '2nd', '3rd'].map(generation => (
<GenerationButton
key={generation}
label={generation}
isActive={activeGeneration === generation}
onClick={() => handleButtonClick(generation)}
/>
))}
<main className="flex justify-center">
<div className="max-w-[1200px] desktop:px-10 tablet:px-10 px-4">
<TimelineHeader />
<section className="mx-auto my-10">
<section className="flex justify-start items-center gap-3">
{['1st', '2st', '3st'].map(generation => (
<GenerationButton
key={generation}
label={generation}
isActive={activeGeneration === generation}
onClick={() => handleButtonClick(generation)}
/>
))}
</section>
</section>
</section>
<TimelineMonthlyPart timelineData={TIMELINE_CARDS_INFO[activeGeneration]} />
<TimelineMonthlyPart timelineData={TIMELINE_CARDS_INFO[activeGeneration]} />
</div>
</main>
);
};

0 comments on commit 14ed4f8

Please sign in to comment.