Skip to content

Commit b9a863b

Browse files
authored
Merge pull request #2304 from themeum/course-wishlist
Course Wishlist
2 parents 612584c + 32da88b commit b9a863b

File tree

26 files changed

+362
-183
lines changed

26 files changed

+362
-183
lines changed

assets/icons/star-2.svg

Lines changed: 0 additions & 1 deletion
This file was deleted.

assets/icons/star-fill.svg

Lines changed: 3 additions & 0 deletions
Loading

assets/icons/star-half.svg

Lines changed: 4 additions & 0 deletions
Loading

assets/icons/star-line.svg

Lines changed: 3 additions & 0 deletions
Loading

assets/icons/star.svg

Lines changed: 0 additions & 1 deletion
This file was deleted.

assets/src/js/v3/shared/icons/types.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -318,8 +318,9 @@ export const icons = [
318318
'sortMinor',
319319
'spinner',
320320
'spreadsheet',
321-
'star',
322-
'star2',
321+
'starFill',
322+
'starHalf',
323+
'starLine',
323324
'stepper',
324325
'stopwatch',
325326
'storeEye',

assets/src/scss/frontend/components/_course-card.scss

Lines changed: 0 additions & 7 deletions
This file was deleted.

assets/src/scss/frontend/components/_index.scss

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
// Components styles index
22
// Import all shared UI components
33

4-
@forward 'course-card';
54
@forward 'lesson-item';
65
@forward 'progress-bar';
76
@forward 'quiz-question';

assets/src/scss/frontend/dashboard/_course-card.scss

Lines changed: 39 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -6,31 +6,30 @@
66

77
.tutor-course-card {
88
height: 100%;
9-
display: block;
109
@include tutor-transition(background-color);
1110

1211
&:hover {
1312
background-color: $tutor-surface-l1-hover;
1413
}
1514

16-
&-thumbnail {
17-
position: relative;
18-
width: 100%;
19-
overflow: hidden;
20-
border-radius: $tutor-radius-sm;
21-
margin-bottom: $tutor-spacing-4;
22-
23-
.tutor-ratio {
24-
width: 100%;
25-
}
26-
27-
img {
28-
width: 100%;
29-
height: 100%;
30-
object-fit: cover;
31-
object-position: center;
32-
}
33-
}
15+
&-thumbnail {
16+
position: relative;
17+
width: 100%;
18+
overflow: hidden;
19+
border-radius: $tutor-radius-sm;
20+
margin-bottom: $tutor-spacing-4;
21+
22+
.tutor-ratio {
23+
width: 100%;
24+
}
25+
26+
img {
27+
width: 100%;
28+
border-radius: $tutor-radius-sm;
29+
object-fit: cover;
30+
object-position: center;
31+
}
32+
}
3433

3534
&-badge {
3635
position: absolute;
@@ -39,6 +38,14 @@
3938
z-index: $tutor-z-positive;
4039
}
4140

41+
&-separator {
42+
display: inline-block;
43+
width: 4px;
44+
height: 4px;
45+
background: $tutor-text-subdued;
46+
border-radius: $tutor-radius-lg;
47+
}
48+
4249
&-rating {
4350
margin-bottom: $tutor-spacing-2;
4451

@@ -63,7 +70,7 @@
6370
}
6471

6572
&-title {
66-
@include tutor-typography('p2', 'medium', 'primary');
73+
@include tutor-typography('small', 'medium', 'primary');
6774
margin-bottom: $tutor-spacing-2;
6875
}
6976

@@ -78,6 +85,10 @@
7885
padding-top: $tutor-spacing-4;
7986
@include tutor-flex(row, center, flex-start);
8087
gap: $tutor-spacing-5;
88+
@include tutor-typography('small', 'medium', 'primary');
89+
del {
90+
@include tutor-typography('tiny', 'regular', 'subdued');
91+
}
8192
}
8293

8394
&-price {
@@ -89,3 +100,11 @@
89100
}
90101
}
91102

103+
@media (max-width: $tutor-breakpoint-sm) {
104+
.tutor-dashboard-page-card-body {
105+
&.tutor-dashboard-wishlist-wrapper {
106+
margin: 10px;
107+
border: unset;
108+
}
109+
}
110+
}

assets/src/scss/frontend/dashboard/_progress-card.scss

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
background-color: $tutor-surface-l1-hover;
2020
}
2121

22-
.tutor-courses-thumb {
22+
.tutor-progress-card-thumbnail {
2323
position: relative;
2424
flex: 0 0 200px;
2525
aspect-ratio: 16 / 9;
@@ -133,11 +133,10 @@
133133
background-color: transparent;
134134
}
135135

136-
.tutor-courses-thumb {
136+
.tutor-progress-card-thumbnail {
137137
width: 100%;
138138
max-width: 100%;
139139
margin-bottom: $tutor-spacing-4;
140-
aspect-ratio: 16 / 9;
141140
}
142141

143142
&-kebab-overlay {

0 commit comments

Comments
 (0)