Skip to content

Commit fd1c06b

Browse files
committed
fix: adjust the spacings
1 parent e07f178 commit fd1c06b

File tree

4 files changed

+12
-12
lines changed

4 files changed

+12
-12
lines changed

src/components/cards/challenge/Badges.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ export default function Badges({ challenge, className }: BadgeProps) {
2828
if (!challenge?.level && !challenge?.isTeamChallenge) return <></>;
2929

3030
return (
31-
<div className={`uppercase flex flex-wrap gap-2 mb-4 ${className}`}>
31+
<div className={`uppercase flex flex-wrap gap-2 mb-3 md:mb-4 ${className}`}>
3232
{challenge?.level && <Tag>{t(challengeLevel)}</Tag>}
3333
{challenge?.isTeamChallenge && <Tag type="light">{challenge?.isHackathon ? "Hackathon" : "Team"} challenge</Tag>}
3434
</div>

src/components/cards/challenge/Challenge.tsx

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -35,20 +35,20 @@ export default function ChallengeCard({ data, community, isCourseEnd }: Challeng
3535
<div className="flex flex-col mb-1">
3636
<div className="lg:pr-20">
3737
{expiresAt && (
38-
<div className="text-gray-400 text-sm font-normal mb-4">
38+
<div className="text-gray-400 text-sm font-normal mb-4.5 md:mb-6">
3939
<span>{t("communities.overview.challenge.deadline")}</span>
4040
<span className="font-medium pl-1">{expiresAt}</span>
4141
</div>
4242
)}
43-
<div className="text-lg text-gray-900 font-medium leading-normal mb-4">{data.name}</div>
43+
<div className="text-lg text-gray-900 font-medium leading-normal mb-3 md:mb-4">{data.name}</div>
4444
<Badges challenge={data} />
4545
<div className="text-sm text-gray-700">{data.description}</div>
4646
</div>
47-
<div className="divide-y-2 divide-gray-200 divide-dotted flex flex-col mt-4">
47+
<div className="divide-y-2 divide-gray-200 divide-dotted flex flex-col mt-8">
4848
{learningMaterialsCount && (
49-
<p className="pb-5 text-sm font-medium text-gray-400">{`${learningMaterialsCount} Learning ${learningMaterialsCount === 1 ? "material" : "materials"} included`}</p>
49+
<p className="pb-3 md:pb-4 text-sm font-medium text-gray-400">{`${learningMaterialsCount} Learning ${learningMaterialsCount === 1 ? "material" : "materials"} included`}</p>
5050
)}
51-
<div className="lg:flex lg:flex-row flex-col justify-between pt-5 items-center">
51+
<div className="lg:flex lg:flex-row flex-col justify-between pt-3 md:pt-4 items-center">
5252
<Link href={link}>
5353
<ArrowButton communityStyles={true} variant="outline-primary">
5454
{isCourseEnd ? t("communities.overview.challenge.take.challenge") : t("communities.overview.challenge.see.challenge")}
@@ -63,10 +63,10 @@ export default function ChallengeCard({ data, community, isCourseEnd }: Challeng
6363
<Image src={data?.certificateData?.icon} alt="achievement" fill priority />
6464
</div>
6565
<div className="">
66-
<h1 className="font-bold text-gray-400 text-xs uppercase pb-2">{t("communities.overview.challenge.unlock.certificate")}</h1>
66+
<h1 className="font-bold text-gray-400 text-xs uppercase pb-3">{t("communities.overview.challenge.unlock.certificate")}</h1>
6767
<RewardCertificate rewards={data?.rewards} />
6868
</div>
69-
{data?.isHackathon && <p className="py-2 border-t border-gray-200 text-sm">{t("communities.overview.challenge.participate", { token: reward?.token })}</p>}
69+
{data?.isHackathon && <p className="py-1.5 border-t border-gray-200 text-sm">{t("communities.overview.challenge.participate", { token: reward?.token })}</p>}
7070
</div>
7171
</div>
7272
);

src/components/cards/challenge/RewardCertificate.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,8 @@ export default function RewardCertificate({ rewards, isReward }: RewardCertifica
2626
<div
2727
key={reward.id}
2828
className={classNames(
29-
"flex items-center gap-1 border-gray-200 pb-2",
30-
{ "pt-2": index !== 0 },
29+
"flex items-center gap-1 border-gray-200 pb-1.5",
30+
{ "pt-1.5": index !== 0 },
3131
{ "border-b": (index !== rewards.length - 1 && isReward) || (rewards.length === 1 && isReward) || index !== rewards.length - 1 }
3232
)}
3333
>

src/components/sections/challenges/Rewards.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,14 +23,14 @@ export function OverviewRewards(): ReactElement {
2323
<Section title={`${t("communities.overview.reward.title")}`}>
2424
<p className="my-5 text-lg">{t("course.challenge.reward.certificate.description")}</p>
2525
<div className="text-sm mt-6 flex gap-8 w-full md:w-2/3 items-center">
26-
<div className="">
26+
<div>
2727
<Certificate size="medium" name={router.query?.slug as string} />
2828
</div>
2929
<div className="flex flex-col lg:flex-row justify-between gap-2 items-start w-full">
3030
<div className="flex flex-col w-full lg:w-1/2">
3131
{challenge?.rewards && <RewardCertificate rewards={challenge?.rewards} isReward />}
3232
</div>
33-
{challenge?.isHackathon && <div className="pb-2 border-b border-gray-200 w-full lg:w-1/2">{t("communities.overview.challenge.participate", { token: token })}</div>}
33+
{challenge?.isHackathon && <div className="pb-1.5 border-b border-gray-200 w-full lg:w-1/2">{t("communities.overview.challenge.participate", { token: token })}</div>}
3434
</div>
3535
</div>
3636
</Section>

0 commit comments

Comments
 (0)