Skip to content

Commit fba979c

Browse files
authored
Merge pull request #1216 from dacadeorg/fix/title-colors
fix: title colors in the challenge page
2 parents 5b0a440 + 87b6b5e commit fba979c

File tree

1 file changed

+3
-5
lines changed
  • src/components/sections/communities/_partials

1 file changed

+3
-5
lines changed

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

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -19,22 +19,20 @@ export default function Header({
1919
isTeamChallenge = false,
2020
isHackathon = false,
2121
}: HeaderProps): ReactElement {
22-
const headerClassName = classNames("text-4xl md:text-5xl leading-none", {
22+
const headerClassName = classNames("text-4xl md:text-5xl leading-none text-gray-900", {
2323
"hidden md:flex": hideTitleOnMobile,
24-
"text-gray-400": subtitle,
25-
"text-gray-900": !subtitle,
2624
});
2725

2826
return (
2927
<div>
3028
<h1 className={headerClassName}>{title}</h1>
3129
<div className="flex items-start gap-1">
3230
{subtitle && (
33-
<h2 className="text-4xl flex items-center font-normal leading-none md:text-5xl text-default">
31+
<h2 className={`text-4xl flex items-center font-normal leading-none md:text-5xl ${title? "text-gray-400": "text-gray-900"}`}>
3432
{subtitle}
3533
{isTeamChallenge && (
3634
<div className="h-full flex -mt-2 items-start ml-2">
37-
<Tag type="light">{isHackathon ? "Hackathon" : "TEAM"}</Tag>
35+
<Tag type="gray">{isHackathon ? "Hackathon" : "TEAM"}</Tag>
3836
</div>
3937
)}
4038
</h2>

0 commit comments

Comments
 (0)