Skip to content

Commit afb6578

Browse files
committed
fix buttons, percents, orders for lessons, tasks
1 parent 89585ea commit afb6578

9 files changed

Lines changed: 26 additions & 13 deletions

File tree

projects/social_platform/src/app/office/courses/detail/course-detail.component.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ <h1 class="info__title text-body-12">{{ course()!.title }}</h1>
2626
size="big"
2727
customTypographyClass="text-body-12"
2828
appearance="outline"
29-
>{{ isTaskDetail() ? "назад к модулю?" : "назад" }}</app-button
29+
>{{ isTaskDetail() ? "назад к модулю" : "назад" }}</app-button
3030
>
3131

3232
<app-button

projects/social_platform/src/app/office/courses/detail/course-detail.component.scss

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,8 +56,10 @@ $detail-bar-mb: 12px;
5656
z-index: 100;
5757
display: block;
5858
cursor: pointer;
59-
background-color: var(--white);
6059
border-radius: 50%;
60+
display: flex;
61+
flex-direction: column;
62+
align-items: center;
6163

6264
&--program {
6365
bottom: 15px;

projects/social_platform/src/app/office/courses/detail/info/info.component.html

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,10 +14,13 @@
1414
</div>
1515

1616
<section class="course__content">
17-
<div class="course__progress">
17+
<div
18+
class="course__progress"
19+
[class.course__progress--complete]="courseStructure()!.percent === 100"
20+
>
1821
<p class="text-body-12">прогресс по курсу</p>
1922
<p class="text-body-12 course__progress--percent">{{ courseStructure()!.percent }}%</p>
20-
<div class="course__progress--cover" [style.width]="courseStructure()!.percent"></div>
23+
<div class="course__progress--cover" [style.width.%]="courseStructure()!.percent"></div>
2124
</div>
2225

2326
<div class="course__modules">

projects/social_platform/src/app/office/courses/detail/info/info.component.scss

Lines changed: 12 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,7 @@
4949
height: 48px;
5050
padding: 10px;
5151
margin-bottom: 18px;
52+
overflow: hidden;
5253
text-align: center;
5354
background-color: var(--light-white);
5455
border: 0.5px solid var(--medium-grey-for-outline);
@@ -62,18 +63,24 @@
6263
background-color: var(--accent);
6364
border-radius: var(--rounded-lg);
6465
opacity: 0.15;
65-
66-
&--complete {
67-
background-color: var(--green-dark);
68-
}
6966
}
7067

7168
&--percent {
69+
position: relative;
70+
z-index: 1;
7271
color: var(--green-dark);
7372
}
7473

7574
&--complete {
76-
color: var(--black);
75+
background-color: var(--green-light);
76+
77+
.course__progress--percent {
78+
color: var(--black);
79+
}
80+
81+
.course__progress--cover {
82+
background-color: var(--green-dark);
83+
}
7784
}
7885
}
7986

projects/social_platform/src/app/office/courses/lesson/complete/complete.component.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
</div>
1111

1212
<app-button customTypographyClass="text-body-12" size="medium" (click)="routeToCourses()"
13-
>отлчино</app-button
13+
>отлично</app-button
1414
>
1515
</div>
1616
</div>

projects/social_platform/src/app/office/courses/lesson/shared/radio-select-task/radio-select-task.component.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323

2424
<div class="radio__content">
2525
@if (!data.imageUrl) {
26-
<p class="radio__answer text-body-12">задание {{ data.id }}</p>
26+
<p class="radio__answer text-body-12">задание {{ data.order }}</p>
2727
}
2828
<ul class="radio__list">
2929
<p class="radio__title text-body-12">{{ data.bodyText | truncate: 110 }}</p>

projects/social_platform/src/app/office/courses/lesson/shared/write-task/write-task.component.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
<div class="write-task" [class.write-task--hasVideo]="hasVideoUrl()">
44
<div class="write-task__header">
5-
<p class="text-body-12 write-task__task">задание {{ data.id }}</p>
5+
<p class="text-body-12 write-task__task">задание {{ data.order }}</p>
66
@if (!hasVideoUrl() && !data.imageUrl) {
77
<p class="write-task__text text-body-12-bold">{{ data.title | truncate: 80 }}</p>
88
}

projects/social_platform/src/app/office/courses/shared/course-module-card/course-module-card.component.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@
4949
<li class="expandable__item" [routerLink]="['lesson', lesson.id]">
5050
<div class="expandable__item--inner">
5151
<span class="topic__number text-body-10"
52-
>Урок {{ lesson.id }}.
52+
>Урок {{ lesson.order }}.
5353
<span class="topic__name text-body-10">{{ lesson.title }}</span></span
5454
>
5555
<p class="topic__levels text-body-10">

projects/social_platform/src/styles/_colors.scss

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@
2929
// FUNCTIONAL
3030
--green: #88c9a1;
3131
--green-dark: #297373;
32+
--green-light: #e3f0e8;
3233
--lime: #d6ff54;
3334
--red: #d48a9e;
3435
--red-dark: #{color.adjust(#d48a9e, $blackness: 10%)};

0 commit comments

Comments
 (0)