- {displayPickupEvents.map(pickupEvent => (
-
- ))}
+ {displayPickupEvents
+ .sort((x, y) => {
+ return Date.parse(x.start) - Date.parse(y.start);
+ })
+ .map(pickupEvent => (
+
+ ))}
);
diff --git a/src/styles/pages/leaderboard.module.scss b/src/styles/pages/leaderboard.module.scss
index b8d91917..50e3fc34 100644
--- a/src/styles/pages/leaderboard.module.scss
+++ b/src/styles/pages/leaderboard.module.scss
@@ -8,9 +8,8 @@
max-width: 60rem;
.header {
- align-items: center;
display: flex;
- gap: 0 2rem;
+ gap: 1rem 2rem;
@media (max-width: vars.$breakpoint-lg) {
display: grid;
@@ -22,6 +21,7 @@
}
.heading {
+ align-self: center;
font-size: 1.5rem;
justify-self: start;
letter-spacing: 1%;
@@ -32,13 +32,13 @@
.myPosition {
align-items: center;
background-color: var(--theme-primary-2);
- border-radius: 1rem;
+ border: 1px solid var(--theme-elevated-stroke);
+ border-radius: 2rem;
color: var(--theme-background);
display: flex;
font-size: 1rem;
font-weight: bold;
gap: 0.5rem;
- height: 2rem;
justify-self: start;
padding: 0 1rem;
@@ -52,13 +52,13 @@
background: none;
background-color: var(--theme-elevated-background);
border: 1px solid var(--theme-elevated-stroke);
- border-radius: 1rem;
+ border-radius: 2rem;
color: inherit;
- font-size: 14px;
- height: 2rem;
+ font-size: 1rem;
max-width: 18rem;
- padding-left: 1.5rem;
+ padding-left: 1rem;
padding-right: 0.5rem;
+
width: 100%;
&::placeholder {
@@ -66,8 +66,17 @@
}
}
- .timeDropdown select {
- text-align: right;
+ .timeDropdown {
+ background-color: var(--theme-elevated-background);
+ border: 1px solid var(--theme-elevated-stroke);
+ border-radius: 2rem;
+ padding: 0.5rem 1rem;
+
+ > select {
+ font-size: 1rem;
+ font-weight: normal;
+ line-height: 1.25rem;
+ }
}
}