Skip to content

Commit fedcdab

Browse files
Merge pull request #1264 from dacadeorg/fix/typography-scale
fix: adjust font scale across all page
2 parents 06a413e + 3e2b839 commit fedcdab

34 files changed

+97
-81
lines changed

public/locales/bg/common.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@
3131
"page.index.communities.title": "Communities of Practice",
3232
"page.index.communities.subtitle": "In our communities, you will work with your peers to learn and build amazing projects using blockchain technology.",
3333
"page.index.communities.partnering.title": "Your community here",
34-
"page.index.communities.partnering.subtitle": "We know that developer community growth is a top priority for software projects in this highly competitive space; that's why we created dacade.",
34+
"page.index.communities.partnering.subtitle": "We know that developer community growth is a top priority for software projects in this highly competitive space, that's why we created dacade.",
3535
"page.index.communities.partnering.button-text": "Become a partner",
3636
"page.protocols.title.1": "Developer Adoption",
3737
"page.protocols.title.2": " through Peer-to-Peer education",

public/locales/en/common.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@
3131
"page.index.communities.title": "Communities of Practice",
3232
"page.index.communities.subtitle": "In our communities, you will work with your peers to learn and build amazing projects using blockchain technology.",
3333
"page.index.communities.partnering.title": "Your community here",
34-
"page.index.communities.partnering.subtitle": "We know that developer community growth is a top priority for software projects in this highly competitive space; that's why we created dacade.",
34+
"page.index.communities.partnering.subtitle": "We know that developer community growth is a top priority for software projects in this highly competitive space, that's why we created dacade.",
3535
"page.index.communities.partnering.button-text": "Become a partner",
3636
"page.protocols.title.1": "Developer Adoption",
3737
"page.protocols.title.2": " through Peer-to-Peer education",

public/locales/hr/common.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@
3131
"page.index.communities.title": "Communities of Practice",
3232
"page.index.communities.subtitle": "In our communities, you will work with your peers to learn and build amazing projects using blockchain technology.",
3333
"page.index.communities.partnering.title": "Your community here",
34-
"page.index.communities.partnering.subtitle": "We know that developer community growth is a top priority for software projects in this highly competitive space; that's why we created dacade.",
34+
"page.index.communities.partnering.subtitle": "We know that developer community growth is a top priority for software projects in this highly competitive space, that's why we created dacade.",
3535
"page.index.communities.partnering.button-text": "Become a partner",
3636
"page.protocols.title.1": "Developer Adoption",
3737
"page.protocols.title.2": " through Peer-to-Peer education",

src/components/cards/Bounty.tsx

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -85,12 +85,10 @@ export default function BountyCard({ bounty }: BountyProps): ReactElement {
8585
customStyle={{
8686
bottom: "-4px",
8787
right: "-4px",
88-
fontSize: 14,
8988
backgroundColor: bounty.colors.accent,
9089
}}
91-
size="medium"
9290
value={bounty?.unreviewedSubmissionsCount}
93-
className="bottom-0 -right-1 absolute p-4"
91+
className="bottom-0 -right-1 absolute"
9492
/>
9593
)}
9694
</Component>
@@ -145,12 +143,10 @@ export default function BountyCard({ bounty }: BountyProps): ReactElement {
145143
customStyle={{
146144
bottom: "-4px",
147145
right: "-4px",
148-
fontSize: 14,
149146
backgroundColor: bounty.colors.accent,
150147
}}
151-
size="medium"
152148
value={bounty?.unreviewedSubmissionsCount}
153-
className="bottom-0 -right-1 absolute p-4"
149+
className="bottom-0 -right-1 absolute"
154150
/>
155151
)}
156152
</Component>

src/components/cards/Numbered.tsx

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,9 +29,11 @@ export default function Numbered({ index = 1, title = "", text = "" }: NumberedP
2929
return (
3030
<div className="flex items-center md:flex-col md:items-start gap-2.5">
3131
<div className="block">
32-
<div className="w-9 h-9 md:w-14 md:h-14 border border-solid border-gray-400 text-gray-400 font-medium rounded-full flex items-center justify-center">{index}</div>
32+
<div className="w-9 h-9 md:w-14 md:h-14 border border-solid border-gray-400 text-gray-400 font-medium rounded-full flex items-center justify-center md:text-2xl text-lg leading-6">
33+
{index}
34+
</div>
3335
</div>
34-
<div>
36+
<div className="leading-6 -tracking-2">
3537
<span className="font-medium">{title}</span> <span>{text}</span>
3638
</div>
3739
</div>

src/components/cards/Objective.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ export default function ObjectiveCard({ iconcolor = "", crossmark = false, objec
3838
<div className="py-0 pt-px mt-px mr-2" style={{ color: iconcolor || colors?.primary }}>
3939
{crossmark ? <Crossmark /> : <Checkmark />}
4040
</div>
41-
<div className="text-sm font-normal leading-5 contains-ordered-list" dangerouslySetInnerHTML={{ __html: objective as string }} />
41+
<div className="text-base font-normal leading-6 contains-ordered-list -tracking-1" dangerouslySetInnerHTML={{ __html: objective as string }} />
4242
</div>
4343
);
4444
}

src/components/cards/Partnering.tsx

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -12,18 +12,18 @@ export default function PartneringCard() {
1212
const { t } = useTranslation();
1313
return (
1414
<div className="relative lg:mt-0 xl:pt-0 rounded-3.5xl overflow-hidden mt-5 md:mt-0 border border-solid border-gray-light md:border-none">
15-
<div className="relative z-10 p-6 lg:pb-3 w-full text-primary h-full min-h-xs flex flex-col justify-between divide-y-2 divide-y divide-dotted divide-theme-accent">
16-
<div className="max-w-sm">
17-
<p className="text-2xl font-medium mb-2.5 leading-none">{t("page.index.communities.partnering.title")}</p>
18-
<p className="text-base mt-0 mb-20 lg:mb-0 leading-normal">{t("page.index.communities.partnering.subtitle")}</p>
15+
<div className="relative z-10 p-6 lg:pb-3 w-full text-primary h-full min-h-xs flex flex-col justify-between divide-y-2 divide-dotted divide-theme-accent">
16+
<div>
17+
<p className="text-.5xl leading-7 font-medium mb-2.5">{t("page.index.communities.partnering.title")}</p>
18+
<p className="text-base mt-0 mb-20 lg:mb-0 leading-6 -tracking-1">{t("page.index.communities.partnering.subtitle")}</p>
1919
</div>
2020
<div className="mt-4 flex-none md:flex justify-between">
2121
<div className="md:flex md:flex-col space-y-0">
22-
<div className="mt-4 font-light text-theme-accent md:w-48">{t("partnering.card.text")}</div>
22+
<div className="mt-4 font-light text-theme-accent md:w-48 text-sm leading-4 lg:leading-5">{t("partnering.card.text")}</div>
2323
</div>
2424
<div className="mt-4 align-middle">
2525
<a href="mailto:[email protected]">
26-
<Button className="hover:bg-primary group-hover:text-white leading-relaxed lg:px-7 px-5 font-medium" variant="outline-primary" type="button" padding={false}>
26+
<Button className="hover:bg-primary group-hover:text-white lg:px-7 px-5 font-medium" variant="outline-primary" type="button" padding={false}>
2727
{t("page.index.communities.partnering.button-text")}
2828
</Button>
2929
</a>

src/components/cards/Submission.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ export default function SubmissionCard({ submission, link = "", children }: Subm
9797
)}
9898
{submission.metadata && submission.metadata.evaluation ? (
9999
<div className="inline-flex flex-1 items-center space-x-1">
100-
<Badge customStyle={badgeButtonStyles} size="medium" className="relative" value={submission.metadata.evaluation.points} />
100+
<Badge customStyle={badgeButtonStyles} className="relative" value={submission.metadata.evaluation.points} />
101101
<span className="text-sm leading">{t("submissions.evaluation.points")}</span>
102102
</div>
103103
) : (

src/components/cards/User.tsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,6 @@ export default function UserCard({ boxLayout, link, bordered, expanded, user, ba
9292
<Badge
9393
value={badge}
9494
className="absolute"
95-
size="medium"
9695
customStyle={{
9796
bottom: "-1px",
9897
right: "-3px",

src/components/cards/challenge/Challenge.tsx

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -43,9 +43,9 @@ export default function ChallengeCard({ data, community, isCourseEnd }: Challeng
4343
<span className="font-medium pl-1">{expiresAt}</span>
4444
</div>
4545
)}
46-
<div className="text-lg text-gray-900 font-medium leading-normal mb-3">{data.name}</div>
46+
<div className="text-lg text-gray-900 font-medium leading-4.95 mb-3">{data.name}</div>
4747
<Badges challenge={data} />
48-
<div className="text-sm text-gray-700">{data.description}</div>
48+
<div className="text-base text-gray-700 -tracking-1">{data.description}</div>
4949
</div>
5050
<div className="divide-y-2 divide-gray-200 divide-dotted flex flex-col mt-8">
5151
{learningMaterialsCount && (
@@ -65,9 +65,9 @@ export default function ChallengeCard({ data, community, isCourseEnd }: Challeng
6565
<div className="mx-auto relative rounded-full mb-5 w-[147px] h-[184px]">
6666
<Image src={data?.certificateData?.icon} alt="achievement" fill priority />
6767
</div>
68-
<div className="">
69-
<h1 className="font-bold text-gray-400 text-xs uppercase pb-3">{t("communities.overview.challenge.unlock.certificate")}</h1>
70-
<RewardCertificate rewards={data?.rewards} />
68+
<div>
69+
<h1 className="font-bold text-gray-400 text-xs uppercase pb-3 leading-3.3 tracking-3">{t("communities.overview.challenge.unlock.certificate")}</h1>
70+
<RewardCertificate rewards={data?.rewards} isChallengeCard/>
7171
</div>
7272
{data?.isHackathon && <p className="py-1.5 border-t border-gray-200 text-sm">{t("communities.overview.challenge.participate", { token: reward?.token })}</p>}
7373
</div>

0 commit comments

Comments
 (0)