Skip to content

Commit f788ad6

Browse files
committed
Merge branch 'dev' of github.com:dacadeorg/frontend-app into dev
2 parents 9a9a0f1 + c089f0a commit f788ad6

File tree

12 files changed

+32
-30
lines changed

12 files changed

+32
-30
lines changed

src/components/cards/community/index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ export default function CommunityCard({ showRewards = true, community }: Communi
7474
</div>
7575
<div className="flex flex-col items-start justify-start max-w-xs -mt-4 md:flex-row lg:flex-col md:-mt-7 md:max-w-lg">
7676
{showRewards && reward && (
77-
<div className="text-sm">
77+
<div className="text-sm flex">
7878
<RewardBadge reward={{ token: reward.token }} styles={rewardBadgeStyle} />
7979
</div>
8080
)}

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/communities/overview/MainHeader.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,8 @@ export default function CommunitySection(): ReactElement {
2727
<p className="mt-2 text-xl tracking-tight md:text-.5xl leading-tight max-w-text-sm lg:hidden">{community?.summary}</p>
2828
<p className="hidden mt-4 tracking-tight text-lg xl:text-.5xl max-w-text-md font-extralight lg:block">{community?.summary}</p>
2929
</div>
30-
<div className="self-end w-36 md:w-1/2 max-w-lg">
31-
{community?.icon && <Image src={`${community?.icon}`} alt={community?.name || ""} className="relative w-full" width={300} height={300} />}
30+
<div className="self-end w-36 h-128 md:w-1/2 max-w-lg">
31+
{community?.icon && <Image src={`${community?.icon}`} alt={community?.name || ""} className="relative w-full h-full" width={300} height={300} />}
3232
</div>
3333
</div>
3434
<div className="flex flex-col max-w-xs mt-0 sm:-mt-15 lg:-mt-8 md:max-w-xl lg:flex-row lg:items-center">

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/components/ui/Certificate.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ import IcpIcon from "@/icons/certificates/Icp.svg";
88
import AiIcon from "@/icons/certificates/Ai.svg";
99
import Solidity from "@/icons/certificates/Solidity.svg";
1010
import SuiIcon from "@/icons/certificates/Sui.svg";
11+
1112
/**
1213
* Interface for the coin props
1314
* @date 3/23/2023 - 11:32:31 AM

0 commit comments

Comments
 (0)