Skip to content

Commit 03b0f0d

Browse files
committed
fix: font size in the community page
1 parent 897eac2 commit 03b0f0d

File tree

5 files changed

+8
-8
lines changed

5 files changed

+8
-8
lines changed

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-5 contains-ordered-list" dangerouslySetInnerHTML={{ __html: objective as string }} />
4242
</div>
4343
);
4444
}

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

Lines changed: 3 additions & 3 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 leading-none text-gray-900", {
22+
const headerClassName = classNames("text-4xl md:text-5xl text-gray-900", {
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 leading-none md:text-5xl ${title? "text-gray-400": "text-gray-900"}`}>
31+
<h2 className={`text-4xl flex items-center font-normal md:text-5xl ${title ? "text-gray-400" : "text-gray-900"}`}>
3232
{subtitle}
3333
{isTeamChallenge && (
3434
<div className="h-full flex -mt-2 items-start ml-2">
@@ -38,7 +38,7 @@ export default function Header({
3838
</h2>
3939
)}
4040
</div>
41-
{description && <p className="lg:w-182.5 my-2 md:my-5 text-base md:text-.5xl w-full md:w-10/12 leading-loose md:leading-snug text-gray-700">{description}</p>}
41+
{description && <p className="lg:w-182.5 my-2 md:my-5 text-base md:text-lg w-full md:w-10/12 leading-loose md:leading-snug text-gray-700">{description}</p>}
4242
</div>
4343
);
4444
}

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ export default function Section({ title, titleBold = true, subtitle, id, hideSub
3737
return (
3838
<div id={id} className={`text-xl md:text-.5xl px-0 py-6 ${className}`}>
3939
{title && <H3 bold={titleBold}>{title}</H3>}
40-
<p className={`text-base md:text-.5xl font-normal leading-normal ${hideSubtitleOnMobile ? "hidden" : ""}`}>{subtitle}</p>
40+
<p className={`text-base md:text-lg font-normal ${hideSubtitleOnMobile ? "hidden" : ""}`}>{subtitle}</p>
4141
<div>{children}</div>
4242
</div>
4343
);

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,8 @@ export default function CommunitySection(): ReactElement {
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">
2626
<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-xl tracking-tight md:text-.5xl leading-tight max-w-text-sm lg:hidden">{community?.summary}</p>
28-
<p className="hidden mt-4 tracking-tight text-lg xl:text-.5xl max-w-text-md font-extralight lg:block">{community?.summary}</p>
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>
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/ui/Hint.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ type HintProps = {
66
};
77

88
function Hint({ children, className }: HintProps): ReactElement {
9-
return <div className={`bg-blue-50 text-primary p-3 border border-blue-200 rounded text-base hint-container ${className}`}>{children}</div>;
9+
return <div className={`bg-blue-50 text-primary p-3 border border-blue-200 rounded text-sm hint-container ${className}`}>{children}</div>;
1010
}
1111

1212
export default Hint;

0 commit comments

Comments
 (0)