Skip to content

Commit 5ff0098

Browse files
committed
Challenges UI changes
1 parent 1418a13 commit 5ff0098

12 files changed

Lines changed: 320 additions & 164 deletions

File tree

Lines changed: 25 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,36 @@
11
.segment {
22
display: flex;
3-
grid-column: -2;
4-
justify-self: flex-end;
5-
width: 70%;
3+
background-color: var(--border-color);
4+
padding: 3px;
5+
border-radius: 8px;
6+
width: fit-content;
7+
align-items: center;
8+
gap: 2px;
9+
border: 1px solid var(--border-color);
610
}
711

812
.segmentBtn {
9-
width: 50%;
10-
color: var(--text-primary);
13+
padding: 6px 16px;
14+
font-size: 0.875rem;
15+
font-weight: 500;
16+
color: var(--text-secondary);
1117
text-transform: capitalize;
12-
background-color: var(--shadow-footer);
18+
background: transparent;
1319
border: none;
20+
border-radius: 6px;
21+
cursor: pointer;
22+
transition: all 0.2s ease-in-out;
23+
24+
&:hover {
25+
color: var(--text-primary);
26+
background-color: rgba(255, 255, 255, 0.1);
27+
}
1428

1529
&[data-active='true'] {
16-
padding: 10px 20px;
17-
color: white;
18-
cursor: pointer;
19-
background-color: rgb(75 75 255);
20-
border: none;
21-
border-radius: 5px;
30+
color: #ffffff;
31+
background-color: var(--primary-color);
32+
box-shadow:
33+
0 1px 3px 0 rgba(0, 0, 0, 0.1),
34+
0 1px 2px 0 rgba(0, 0, 0, 0.06);
2235
}
2336
}

apps/host/src/components/modules/challenges/avatar/avatar.module.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
border-radius: 1000px;
66

77
/* Use shadow instead of border so that it does not occupy space */
8-
box-shadow: 0 0 0 2px black;
8+
box-shadow: 0 0 0 2px var(--card-body);
99
}
1010

1111
.avatarGroup {

apps/host/src/components/modules/challenges/challenge-grid/challenge-filter.tsx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ import CustomCheckbox from '@/components/common/checkbox/checkbox';
44
import { CustomSelect } from '@/components/common/multi-select/multi-select';
55
import { Difficulties } from '@fmc/data/constants';
66
import { Link } from 'react-router-dom';
7+
import { Search } from 'lucide-react';
78
import Tags from '@/components/common/tags/tags';
89
import { contributors } from '@fmc/data/content';
910
import styles from './challenge-grid.module.scss';
@@ -61,6 +62,7 @@ export function ChallengeFilters({
6162
value={searchInput}
6263
onChange={(e) => setSearchInput(e.target.value.trim())}
6364
/>
65+
<Search className={styles.searchIcon} size={18} />
6466
</div>
6567

6668
<CustomSelect

0 commit comments

Comments
 (0)