Skip to content

Commit af9db11

Browse files
refactor: update the tailwind keys
1 parent ac7025a commit af9db11

File tree

10 files changed

+26
-46
lines changed

10 files changed

+26
-46
lines changed

src/components/sections/challenges/Learning.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ export default function Learning({ courses, learningModules, community }: { cour
2424
isExpanded
2525
content={
2626
<>
27-
<div className="text-base font-normal text-slate-700 pt-8 pb-7 md:w-99">{t("communities.overview.challenge.learning.title")}</div>
27+
<div className="text-base font-normal text-slate-700 pt-8 pb-7 md:w-182.5">{t("communities.overview.challenge.learning.title")}</div>
2828
<div className="md:grid grid-cols-2 gap-3">
2929
{courses?.map((course) => (
3030
<LearningCard

src/components/sections/challenges/Rubric.tsx

Lines changed: 19 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -56,25 +56,25 @@ export default function RubricHeader({ ratingCriteria, selected, hideTitle = fal
5656
const hackatonPassingScore = t("communities.challenge.hackathon.passing.score");
5757

5858
return (
59-
<div className="text-base font-normal text-slate-700 pt-8 md:w-99 inline-flex flex-wrap items-center gap-1">
60-
{challenge?.isHackathon ? (
61-
<div dangerouslySetInnerHTML={{ __html: hackatonPassingScore }} />
62-
) : (
63-
passingScoreParts.map((part, index) => {
64-
if (index === passingScoreParts.length - 1) {
65-
return part.split(" ").map((word, index) => <span key={index} dangerouslySetInnerHTML={{ __html: word }} />);
66-
}
67-
return (
68-
<Fragment key={index}>
69-
{part.split(" ").map((word, index) => (
70-
<span key={index} dangerouslySetInnerHTML={{ __html: word }} />
71-
))}
72-
{<Coin token={reward?.token} size="small" className="!-mr-1 md:!-mr-1 -ml-1" />}
73-
</Fragment>
74-
);
75-
})
76-
)}
77-
</div>
59+
<div className="text-base font-normal text-slate-700 pt-8 md:w-182.5 inline-flex flex-wrap items-center gap-1">
60+
{challenge?.isHackathon ? (
61+
<div dangerouslySetInnerHTML={{ __html: hackatonPassingScore }} />
62+
) : (
63+
passingScoreParts.map((part, index) => {
64+
if (index === passingScoreParts.length - 1) {
65+
return part.split(" ").map((word, index) => <span key={index} dangerouslySetInnerHTML={{ __html: word }} />);
66+
}
67+
return (
68+
<Fragment key={index}>
69+
{part.split(" ").map((word, index) => (
70+
<span key={index} dangerouslySetInnerHTML={{ __html: word }} />
71+
))}
72+
{<Coin token={reward?.token} size="small" className="!-mr-1 md:!-mr-1 -ml-1" />}
73+
</Fragment>
74+
);
75+
})
76+
)}
77+
</div>
7878
);
7979
};
8080

src/components/sections/challenges/SetupTeamChallenge.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ export default function SetupTeamChallenge(): JSX.Element {
2424

2525
return (
2626
<Section title="Submission">
27-
<div className="text-base font-normal text-slate-700 pt-8 pb-7 md:w-99">{t("communities.overview.challenge.team.setup.info")}</div>
27+
<div className="text-base font-normal text-slate-700 pt-8 pb-7 md:w-182.5">{t("communities.overview.challenge.team.setup.info")}</div>
2828
<div className="md:flex flex-row gap-5">
2929
<FormTeamCard index={1} title="Form your team" description="Open discord channel #icp-ai-web3-hachathon and find your teammates to complete the challenge with you." />
3030
{invite && !invite.team?.locked ? (

src/components/sections/challenges/Submission.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,7 @@ export default function Submission(): ReactElement {
136136
<Hint className="mb-8">{t("communities.overview.challenge.submissions-closed")}</Hint>
137137
) : (
138138
<>
139-
{challenge?.isTeamChallenge && <p className="text-base font-normal text-slate-700 pt-2 pb-7 md:w-99"> {t("communities.overview.challenge.submission.description")}</p>}
139+
{challenge?.isTeamChallenge && <p className="text-base font-normal text-slate-700 pt-2 pb-7 md:w-182.5"> {t("communities.overview.challenge.submission.description")}</p>}
140140
{!canSubmit ? (
141141
<Hint className="mb-8">{t("communities.challenge.submission.hint")}</Hint>
142142
) : (

src/components/sections/challenges/TeamChallenge.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ export default function TeamChallenge(): JSX.Element {
3737

3838
return (
3939
<Section title="Team Challenge">
40-
<div className="text-base font-normal text-slate-700 pt-8 pb-7 md:w-99">To complete the team challenge, you need to follow these steps:</div>
40+
<div className="text-base font-normal text-slate-700 pt-8 pb-7 md:w-182.5">To complete the team challenge, you need to follow these steps:</div>
4141
<div className="md:flex flex-row gap-20 md:divide-y-0 divide-y divide-gray-900 divide-dotted space-y-5 md:space-y-0 space-x-0">
4242
{TeamChallengeData.map((card) => (
4343
<TeamChallengeCard key={`TeamChallenge-card-data-${card.index}`} index={card.index} title={card.title} text={card.text} />

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ export default function Header({
4040
</h2>
4141
)}
4242
</div>
43-
{description && <p className="lg:w-99 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>}
43+
{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>}
4444
</div>
4545
);
4646
}

src/components/sections/learning-modules/MaterialSection.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ export default function MaterialSection({ material }: MaterialProps) {
3232
return (
3333
<Section id={materialId} title={isAdditional ? "Additional Material" : material?.title}>
3434
{!isAdditional && <Duration text={material?.subtitle || ""} value={material?.duration as number} />}
35-
{!isAdditional && <span className="block text-lg mb-6 mt-2 md:w-99">{material?.description}</span>}
35+
{!isAdditional && <span className="block text-lg mb-6 mt-2 md:w-182.5">{material?.description}</span>}
3636
{material?.type === "EMBEDDED-VIDEO" && <Video url={material.link} />}
3737
{material?.type === "MARKDOWN" && <Markdown url={material?.link} />}
3838
{isAdditional && (

src/icons/tokens/SUI.svg

Lines changed: 0 additions & 10 deletions
This file was deleted.

src/icons/tokens/Sui.svg

Lines changed: 0 additions & 10 deletions
This file was deleted.

tailwind.config.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ module.exports = {
4949
96.5: "25.5rem",
5050
98: "28rem",
5151
128: "32rem",
52-
99: "45.625rem",
52+
182.5: "45.625rem",
5353
"10.5/12": "90%",
5454
"1/100": "1%",
5555
"1/10": "10%",

0 commit comments

Comments
 (0)