Skip to content

Commit 118dfbd

Browse files
authored
Merge pull request #1210 from dacadeorg/fix/hint-message-box
feat: update hint message box styles
2 parents c4baebd + 0ba2be9 commit 118dfbd

File tree

3 files changed

+9
-8
lines changed

3 files changed

+9
-8
lines changed

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-yellow-50 text-yellow-900 py-5 px-8 border border-solid border-yellow-100 text-base hint-container ${className}`}>{children}</div>;
9+
return <div className={`bg-blue-50 text-primary p-3 border border-blue-200 rounded text-base hint-container ${className}`}>{children}</div>;
1010
}
1111

1212
export default Hint;

src/pages/communities/[slug]/challenges/[challenge_id]/index.tsx

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -144,7 +144,6 @@ export default function ChallengePage() {
144144
<div className="grid mt-8 space-y-8">
145145
<Hint>
146146
<p
147-
className="text-lg py-4"
148147
dangerouslySetInnerHTML={{
149148
__html: t(
150149
challenge?.multipleSubmissions ? "communities.challenge.submission.multiple-submissions" : "communities.challenge.submission.no-multiple-submissions"
@@ -170,11 +169,13 @@ export default function ChallengePage() {
170169
</div>
171170
) : (
172171
<div>
173-
<Hint className="mt-6 flex flex-col md:flex-row">
174-
<p>To be able to submit</p>&nbsp;
175-
<Link className="underline" href="/login">
176-
Login.
177-
</Link>
172+
<Hint className="mt-6">
173+
<p>
174+
To be able to submit
175+
<Link className="underline pl-1" href="/login">
176+
Login.
177+
</Link>
178+
</p>
178179
</Hint>
179180
</div>
180181
)}

src/styles/globals.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -337,7 +337,7 @@ div {
337337
}
338338

339339
.hint-container a {
340-
font-weight: 400;
340+
font-weight: 500;
341341
text-decoration: underline;
342342
}
343343

0 commit comments

Comments
 (0)