Skip to content

Commit 897eac2

Browse files
committed
fix: adjust font scale for the homepage
1 parent 247cf8b commit 897eac2

File tree

11 files changed

+38
-25
lines changed

11 files changed

+38
-25
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/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">
33+
{index}
34+
</div>
3335
</div>
34-
<div>
36+
<div className="leading-6 tracking-[-0.02rem]">
3537
<span className="font-medium">{title}</span> <span>{text}</span>
3638
</div>
3739
</div>

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-[-0.01rem]">{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/community/index.tsx

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -65,11 +65,11 @@ export default function CommunityCard({ showRewards = true, community }: Communi
6565
<div className="flex-grow">
6666
<div className="flex flex-col justify-between space-y-5 sm:flex-row lg:flex-col 2xl:flex-row">
6767
<div className="text-.5xl md:text-2xl max-w-sm min-h-2xs md:min-h-3xs lg:min-h-2xs xl:min-h-2xs font-medium pb-5">
68-
<h1 className="tracking-tight max-w-text-xs text-theme-text">{community.name}</h1>
69-
<p className="pr-2 tracking-tight md:max-w-text-md text-theme-accent">{community.description || ""}</p>
68+
<h1 className="text-theme-text text-xl lg:text-.5xl leading-7">{community.name}</h1>
69+
<p className="pr-2 text-theme-accent lg:text-.5xl leading-7">{community.description || ""}</p>
7070
</div>
7171
<div className="self-end max-w-lg sm:h-full sm:-mb-0 md:mb-2 md:h-auto">
72-
<Image src={community.icon} className="relative mb-5 h-44 w-44" alt="" width={56} height={56} />
72+
<Image src={community.icon} className="relative mb-5 h-44 w-44" alt="community icon" width={56} height={56} />
7373
</div>
7474
</div>
7575
<div className="flex flex-col items-start justify-start max-w-xs -mt-4 md:flex-row lg:flex-col md:-mt-7 md:max-w-lg">
@@ -82,8 +82,8 @@ export default function CommunityCard({ showRewards = true, community }: Communi
8282
</div>
8383
<div className="flex justify-between flex-none mt-4">
8484
<div className="flex flex-col space-y-0">
85-
<div className="mt-4 font-medium text-theme-accent">{t("communities.card.earn")}</div>
86-
<div className="mt-4 font-light text-theme-accent">
85+
<div className="mt-4 font-medium text-theme-accent text-sm leading-4 lg:leading-5">{t("communities.card.earn")}</div>
86+
<div className="mt-4 font-light text-theme-accent text-sm leading-4 lg:leading-5">
8787
{t(community.challenges > 1 ? "communities.card.challenges" : "communities.card.challenge", { count: community.challenges })}
8888
</div>
8989
</div>

src/components/sections/homepage/Communities.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ export default function CommunitiesSection({ communities }: { communities: Commu
2525
<Section type="default" padding="pt-20 lg:pb-24 md:pb-24">
2626
<div id="communities" className="md:flex relative items-end">
2727
<div className="pr-5">
28-
<p className="uppercase font-semibold leading-none text-base">{t("page.index.communities.title")}</p>
28+
<p className="uppercase font-bold text-xs leading-3.5 tracking-[0.03rem]">{t("page.index.communities.title")}</p>
2929
</div>
3030
<div className="pl-7 relative hidden lg:block md:block">
3131
<div className="message-bubble">{t("page.index.communities.subtitle")}</div>

src/components/sections/homepage/Main.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,8 +40,8 @@ export default function MainSection(): ReactElement {
4040
return (
4141
<Section type="default" padding="p-0">
4242
<div className="w-full lg:py-24 pt-24 pb-8">
43-
<h1 className="lg:text-8xl md:text-6xl text-5xl leading-none tracking-tighter">{t("page.index.main.title")}</h1>
44-
<p className="lg:text-8xl md:text-6xl text-4.5xl py-2 lg:py-0 md:py-0 sm:py-0 text-gray-400 tracking-tighter leading-none">{t("page.index.main.subtitle")}</p>
43+
<h1 className="lg:text-7.75xl md:text-6xl text-4.5xl lg:leading-12 leading-10 -tracking-4">{t("page.index.main.title")}</h1>
44+
<p className="lg:text-7.75xl md:text-6xl text-4.5xl py-2 lg:py-0 md:py-0 sm:py-0 text-gray-400 -tracking-4 lg:leading-12 leading-10">{t("page.index.main.subtitle")}</p>
4545
</div>
4646
<div className="flex justify-between">
4747
<div className="w-full max-w-xs hidden lg:block">

src/components/sections/homepage/OpenSource.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ import { useTranslation } from "next-i18next";
1313
export default function OpenSource() {
1414
const { t } = useTranslation();
1515
return (
16-
<div className="text-4xl lg:text-5xl pt-24 flex flex-col text-wrap space-y-2">
16+
<div className="text-4xl lg:text-5xl leading-10 lg:leading-11 pt-24 flex flex-col text-wrap space-y-2">
1717
<p >
1818
{t("footer.open.source")}
1919
<br className="block md:hidden lg:block" />

src/components/sections/homepage/_partials/testimonials/CommunityStats.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,11 +36,11 @@ export default function CommunityStats() {
3636

3737
return (
3838
<div className="p-7 bg-primary rounded-3.5xl mx-auto text-white relative md:absolute md:top-28 lg:top-32 xl:w-1/3 md:w-4/6 z-10 sm:max-w-sm">
39-
<h3 className="m-0 text-4.5xl w-3/4">{t("testimonials.community.title")}</h3>
39+
<h3 className="m-0 text-[32px] lg:text-4.5xl leading-8 lg:leading-10.5 w-3/4">{t("testimonials.community.title")}</h3>
4040
<div className="relative divide-y divide-white divide-dotted">
4141
{stats.map((stat) => (
4242
<div key={stat.title} className="py-6">
43-
<span className="block text-.5xl mb-2">{stat.count}</span>
43+
<span className="block lg:text-.5xl text-xl mb-2">{stat.count}</span>
4444
<p className="text-base w-3/4 m-0">
4545
<span className="font-graphik font-medium">{t(stat.title)}</span> {t(stat.description)}
4646
</p>

0 commit comments

Comments
 (0)