Skip to content

Commit c107b2e

Browse files
authored
Merge pull request #89 from kleros/feat(frontend)/add-extra-curator-cards
feat: add support for extra cards on curator tab
2 parents 585e9a3 + 81a550b commit c107b2e

File tree

2 files changed

+12
-4
lines changed

2 files changed

+12
-4
lines changed

frontend/src/components/CtaCard.tsx

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,11 @@ const CtaCard: React.FC<ICtaCard> = ({
4545
<h2 className="mb-6 text-lg font-medium text-primary-text lg:text-xl">
4646
{title}
4747
</h2>
48-
<p className="mb-6 text-base text-secondary-text lg:text-lg">
48+
<p
49+
className={
50+
"mb-6 whitespace-pre-wrap text-base text-secondary-text lg:text-lg"
51+
}
52+
>
4953
{description}
5054
</p>
5155
{typeof arrowLink !== "undefined" ? (

frontend/src/components/Earn/TabSection/CuratorTabContent/index.tsx

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,9 +18,13 @@ const CuratorTabContent: React.FC<EarnPageBecomeACuratorTab> = ({
1818
{title}
1919
</div>
2020
<div className="text-secondary-text lg:text-lg">{description}</div>
21-
<div className="grid grid-cols-1 gap-6 lg:grid-cols-3">
22-
{ctaCard.map((card) => (
23-
<CtaCard key={card.title} {...card} />
21+
<div className="grid grid-cols-1 gap-6 lg:grid-cols-6">
22+
{ctaCard.map((card, i) => (
23+
<CtaCard
24+
className={i + 1 < ctaCard.length / 2 ? "col-span-3" : "col-span-2"}
25+
key={card.title}
26+
{...card}
27+
/>
2428
))}
2529
</div>
2630
<ExternalLink

0 commit comments

Comments
 (0)