Skip to content

Commit bad328c

Browse files
committed
fix: add missing line height in components
1 parent 7e6f666 commit bad328c

File tree

13 files changed

+25
-21
lines changed

13 files changed

+25
-21
lines changed

src/components/cards/Numbered.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ 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 md:text-2xl text-lg">
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-[26.4px]">
3333
{index}
3434
</div>
3535
</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-base 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: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ export default function PartneringCard() {
1515
<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">
1616
<div>
1717
<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>
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">

src/components/cards/challenge/Challenge.tsx

Lines changed: 3 additions & 3 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-[19.8px] mb-3">{data.name}</div>
4747
<Badges challenge={data} />
48-
<div className="text-base 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 && (
@@ -66,7 +66,7 @@ export default function ChallengeCard({ data, community, isCourseEnd }: Challeng
6666
<Image src={data?.certificateData?.icon} alt="achievement" fill priority />
6767
</div>
6868
<div>
69-
<h1 className="font-bold text-gray-400 text-xs uppercase pb-3">{t("communities.overview.challenge.unlock.certificate")}</h1>
69+
<h1 className="font-bold text-gray-400 text-xs uppercase pb-3 leading-3.5 tracking-3">{t("communities.overview.challenge.unlock.certificate")}</h1>
7070
<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>}

src/components/cards/challenge/_partials/Learning.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ export default function Learning({ title, description, link }: LearningProps): J
2727
<div className="flex flex-col justify-between w-full sm:pb-0">
2828
<div className="flex flex-col">
2929
<div className="text-base font-medium leading-6 text-gray-900">{title}</div>
30-
<div className="text-sm lg:text-base font-normal leading-6 text-gray-700 mt-3 max-w-xxs pb-6 mb-5">{description}</div>
30+
<div className="text-sm lg:text-base font-normal -tracking-1 leading-6 text-gray-700 mt-3 max-w-xxs pb-6 mb-5">{description}</div>
3131
</div>
3232
<div className="absolute bottom-0 pb-4">
3333
<Link href={link}>

src/components/cards/challenge/_partials/RelatedLearning.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,9 +25,9 @@ const RelatedLearning: React.FC<RelatedLearningProps> = ({ title, description, p
2525
<div className="flex flex-col relative w-full p-6 divide-y sm:divide-y-0 sm:divide-x divide-gray-200 rounded-3xl group text-gray-700 sm:p-7 border-solid border border-gray-200">
2626
<div className="flex flex-col justify-between w-full sm:pb-0">
2727
<div className="flex flex-col">
28-
<div className="text-base font-medium leading-normal text-gray-900">{title}</div>
28+
<div className="text-base font-medium leading-6 text-gray-900">{title}</div>
2929

30-
<div className="text-sm lg:text-base font-normal text-gray-700 mt-3 max-w-xxs pb-6">{description}</div>
30+
<div className="text-sm lg:text-base -tracking-1 font-normal text-gray-700 mt-3 max-w-xxs pb-6">{description}</div>
3131
</div>
3232

3333
<div className="">

src/components/cards/community/index.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -65,8 +65,8 @@ 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="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>
68+
<h1 className="text-theme-text text-xl lg:text-.5xl leading-7 md:-tracking-3">{community.name}</h1>
69+
<p className="pr-2 text-theme-accent lg:text-.5xl leading-7 md:-tracking-3">{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">
7272
<Image src={community.icon} className="relative mb-5 h-44 w-44" alt="community icon" width={56} height={56} />

src/components/sections/communities/_partials/Header.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ export default function Header({
1919
isTeamChallenge = false,
2020
isHackathon = false,
2121
}: HeaderProps): ReactElement {
22-
const headerClassName = classNames("text-4xl md:text-5xl text-gray-900", {
22+
const headerClassName = classNames("text-4xl leading-8 md:text-5xl lg:leading-11 text-gray-900 -tracking-2", {
2323
"hidden md:flex": hideTitleOnMobile,
2424
});
2525

@@ -28,7 +28,7 @@ export default function Header({
2828
<h1 className={headerClassName}>{title}</h1>
2929
<div className="flex items-start gap-1">
3030
{subtitle && (
31-
<h2 className={`text-4xl flex items-center font-normal md:text-5xl ${title ? "text-gray-400" : "text-gray-900"}`}>
31+
<h2 className={`text-4xl leading-8 flex items-center font-normal lg:text-5xl lg:leading-11 -tracking-2 ${title ? "text-gray-400" : "text-gray-900"}`}>
3232
{subtitle}
3333
{isTeamChallenge && (
3434
<div className="h-full flex -mt-2 items-start ml-2">

src/components/sections/communities/overview/MainHeader.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,9 +23,9 @@ export default function CommunitySection(): ReactElement {
2323
<div className="py-2 md:py-8 mx-auto">
2424
<div className="flex flex-col justify-between lg:flex-row">
2525
<div className="max-w-md mb-4 md:max-w-md lg:max-w-lg xl:max-w-xl 2xl:max-w-2xl lg:mr-6">
26-
<h1 className="text-5xl tracking-tight sm:text-6.5xl xl:text-7.75xl max-w-text-xs">{community?.name}</h1>
27-
<p className="mt-2 text-lg tracking-tight leading-tight lg:hidden">{community?.summary}</p>
28-
<p className="hidden mt-4 tracking-tight text-lg font-extralight lg:block">{community?.summary}</p>
26+
<h1 className="text-5xl leading-10 sm:text-6.5xl xl:text-7.75xl lg:leading-12 max-w-text-xs -tracking-4">{community?.name}</h1>
27+
<p className="mt-8 text-lg leading-5.5 lg:hidden">{community?.summary}</p>
28+
<p className="hidden mt-4 text-lg leading-6 font-extralight lg:block">{community?.summary}</p>
2929
</div>
3030
<div className="self-end w-36 md:h-82 lg:h-128 md:w-1/2 max-w-lg">
3131
{community?.icon && <Image src={`${community?.icon}`} alt={community?.name || ""} className="relative w-full h-full" width={300} height={300} />}

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-bold text-xs leading-3.5 tracking-[0.03rem]">{t("page.index.communities.title")}</p>
28+
<p className="uppercase font-bold text-xs leading-3.5 tracking-3">{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>

0 commit comments

Comments
 (0)