Skip to content

Commit

Permalink
added start and end date to tiers
Browse files Browse the repository at this point in the history
  • Loading branch information
stcalica committed Jun 9, 2024
1 parent 9979609 commit 3dd75cb
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 7 deletions.
4 changes: 4 additions & 0 deletions components/PricingTiers/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,17 @@ type tierType = {
id: string;
price: number;
title: string;
startDate: string;
endDate: string;
};

const PricingTier = ({tier}: {tier: tierType}) => (
<figure className="flex flex-col items-center justify-center p-4 bg-tertiary-500 rounded-lg shadow-lg transition-all hover:shadow-xl
w-full xl:min-w-[400px] h-[250px] text-white">
<h1 className="text-8xl font-extrabold text-sans leading-none mb-2 text-white">${tier.price}</h1>
<figcaption className="text-xl font-semibold text-white">{tier.title}</figcaption>
<h3 className="text-xl font-semibold text-white">{tier.startDate} - {tier.endDate}</h3>

</figure>
);
export default PricingTier;
12 changes: 6 additions & 6 deletions constants/tiers.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,21 +3,21 @@ export const tiers = [
id: "0",
title: "Early Registration",
price: parseFloat("65"),
startDate: "",
endDate: ""
startDate: "Jun 1st",
endDate: "Aug 16th"
},
{
id: "1",
title: "Regular Registration",
price: parseFloat("85"),
startDate: "",
endDate: ""
startDate: "Aug 17th",
endDate: "Sept 7th"
},
{
id: "2",
title: "Late Registration",
price: parseFloat("105"),
startDate: "",
endDate: ""
startDate: "Sept 8th",
endDate: "Sept 13th"
},
];
2 changes: 1 addition & 1 deletion templates/FormsPage/Main/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -17,4 +17,4 @@ const Main = ({}: MainProps) => (
</div>
);

export default Main;
export default Main;

0 comments on commit 3dd75cb

Please sign in to comment.