Skip to content

Commit

Permalink
Added CallToAction
Browse files Browse the repository at this point in the history
  • Loading branch information
baitcode committed Nov 26, 2024
1 parent 108c183 commit 917e083
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 3 deletions.
7 changes: 4 additions & 3 deletions app/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,9 @@ import { useRouter } from "next/navigation";
import Blur from "@components/shapes/blur";
import Typography from "@components/UI/typography/typography";
import { TEXT_TYPE } from "@constants/typography";
import MainHeader from "@components/pages/home/header";
import MainHeader from "@components/pages/home/hero";
import Card from "@components/pages/home/card";
import CallToAction from "@components/pages/home/callToAction";



Expand All @@ -30,7 +31,7 @@ export default function Page() {

<MainHeader />

<div className={`flex flex-row flex-wrap gap-5 items-center justify-center py-12`}>
<CallToAction>
<Card title="DeFi" imgSrc="/home/defi.webp" onClick={handleNavigateToDefi}>
<Typography type={TEXT_TYPE.BODY_MICRO} color="textGray">
Access the top DeFi opportunities on Starknet and grow your assets effortlessly.
Expand All @@ -41,7 +42,7 @@ export default function Page() {
Complete exciting quests, earn rewards, and deepen your knowledge of Starknet.
</Typography>
</Card>
</div>
</CallToAction>

</div>
</div>
Expand Down
19 changes: 19 additions & 0 deletions components/pages/home/callToAction.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
import React, { FunctionComponent } from "react";

type CallToActionProps = {
children: React.ReactNode;
};

const CallToAction: FunctionComponent<CallToActionProps> = ({
children
}) => {

return (
<div className={`flex flex-row flex-wrap gap-5 items-center justify-center py-12`}>
{ children }
</div>
);
};
export default CallToAction;


0 comments on commit 917e083

Please sign in to comment.