-
- {`${member.registrations} registrations`}
-
-
- {`${member.submissions} submissions`}
-
-
- {`${member.passingSubmissions} passing`}
-
-
- {`${member.wins} wins`}
-
+
-
-
)
}
diff --git a/src/apps/campus/src/pages/leaderboard/RankingRulesModal.module.scss b/src/apps/campus/src/pages/leaderboard/RankingRulesModal.module.scss
index 3163ddb50..691e6b8f7 100644
--- a/src/apps/campus/src/pages/leaderboard/RankingRulesModal.module.scss
+++ b/src/apps/campus/src/pages/leaderboard/RankingRulesModal.module.scss
@@ -1,14 +1,76 @@
@import '@libs/ui/styles/includes';
-.rules {
- list-style: decimal outside;
- margin: $sp-3 0 $sp-4 $sp-5;
+$box-padding: 40px;
+$box-width: 476px;
+$text-gap: 20px;
+
+.modal {
+ border-radius: 8px !important;
+ max-width: calc(100vw - #{$sp-8}) !important;
+ min-width: 0 !important;
+ padding: $box-padding !important;
+ width: $box-width !important;
+
+ @include ltemd {
+ padding: $sp-4 !important;
+ width: calc(100vw - #{$sp-4}) !important;
+ }
+
+ :global(.react-responsive-modal-closeButton) {
+ right: $sp-2;
+ top: $sp-2;
+
+ svg {
+ height: 22px;
+ width: 22px;
+ }
+ }
+
+ // the shared modal header pads its top by 5px, the design does not
+ div:has(> h3) {
+ padding-top: 0;
+ }
- li {
- margin-bottom: $sp-1;
+ h3 {
+ color: var(--FontColor);
+ font-family: 'Figtree', sans-serif;
+ font-size: 26px;
+ font-weight: 700;
+ letter-spacing: normal;
+ line-height: 30px;
+ text-transform: none;
+ }
+
+ :global(.modal-body) {
+ margin: 0;
+ padding: 0;
+ }
+
+ .body {
+ color: var(--FontColor);
+ font-family: 'Nunito Sans', sans-serif;
+ font-size: 14px;
+ font-weight: 400;
+ letter-spacing: normal;
+ line-height: 20px;
+ margin-top: $sp-6;
+
+ p {
+ margin: 0 0 $text-gap;
+
+ &:last-child {
+ margin-bottom: 0;
+ }
+ }
+
+ strong {
+ font-weight: 700;
+ }
}
}
-.note {
- color: $black-60;
+.rules {
+ list-style: decimal outside;
+ margin: 0 0 $text-gap;
+ padding-left: $sp-6;
}
diff --git a/src/apps/campus/src/pages/leaderboard/RankingRulesModal.tsx b/src/apps/campus/src/pages/leaderboard/RankingRulesModal.tsx
index d7bebd976..903f0a346 100644
--- a/src/apps/campus/src/pages/leaderboard/RankingRulesModal.tsx
+++ b/src/apps/campus/src/pages/leaderboard/RankingRulesModal.tsx
@@ -19,23 +19,28 @@ export const RankingRulesModal: FC
= props => {
return (
- Members are ranked by the following criteria, in order:
-
- - Number of wins, highest first
- - Number of passing submissions, highest first
- - Number of registrations, highest first
- - Signup time, earliest first
-
-
- At most one submission and one passing submission are counted per member per
- challenge. Every member of the group is listed, including members with no
- challenge activity.
-
+
+
Members are ranked by the following criteria, in order:
+
+ - Number of wins, highest first
+ - Number of passing submissions, highest first
+ - Number of registrations, highest first
+ - Signup time, earliest first
+
+
+ Note:
+ At most one submission and one passing submission are counted per member per
+ challenge. Every member of the group is listed, including members with no
+ challenge activity.
+
+
)
}