Skip to content

Commit f7aea6f

Browse files
committed
2 parents 029ae18 + 8756ad4 commit f7aea6f

12 files changed

Lines changed: 128 additions & 16 deletions

File tree

projects/social_platform/src/app/office/projects/edit/shared/project-team-step/project-team-step.component.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,7 @@
148148
}
149149
</div>
150150

151-
<div class="project__team-tooltip">
151+
<div class="project__tooltip">
152152
<div class="tooltip">
153153
<app-tooltip color="grey" iconSize="40" (show)="isHintTeamVisible.set(true)"></app-tooltip>
154154

projects/social_platform/src/app/office/projects/edit/shared/project-team-step/project-team-step.component.scss

Lines changed: 9 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
@use "styles/typography";
55

66
.project {
7-
position: relative;
7+
max-width: 1280px;
88

99
&__inner {
1010
width: 100%;
@@ -73,15 +73,14 @@
7373
transform: translateY(-50%);
7474
}
7575

76-
&__team {
77-
position: relative;
78-
79-
&-tooltip {
80-
position: absolute;
81-
right: 0;
82-
bottom: 0;
83-
transform: translateY(calc(var(--app-height) * 0.47));
84-
}
76+
&__tooltip {
77+
position: fixed;
78+
right:
79+
calc(
80+
(100vw - 1080px) / 2
81+
);
82+
bottom: 24px;
83+
z-index: 30;
8584
}
8685
}
8786

projects/social_platform/src/app/office/services/invite.service.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ import { AuthService } from "@auth/services";
2424
export class InviteService {
2525
private readonly INVITES_URL = "/invites";
2626

27-
constructor(private readonly apiService: ApiService, private readonly authService: AuthService) {}
27+
constructor(private readonly apiService: ApiService) {}
2828

2929
/**
3030
* Отправляет приглашение пользователю для участия в проекте
Lines changed: 17 additions & 0 deletions
Loading

projects/social_platform/src/assets/icons/symbol/svg/sprite.css.svg

Lines changed: 1 addition & 1 deletion
Loading
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
<!-- @format -->
2+
3+
<div class="card">
4+
<div class="card__inner">
5+
<i appIcon icon="cross" appSquare="16" class="card__cross"></i>
6+
7+
<div class="card__info">
8+
<i appIcon icon="empty-mail" appSquare="46"></i>
9+
<p class="text-body-12 card__text">новых уведомлений пока нет</p>
10+
</div>
11+
12+
<app-button routerLink="/office/program/all" customTypographyClass="text-body-12" size="big"
13+
>начать действовать</app-button
14+
>
15+
</div>
16+
</div>
Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
.card {
2+
position: relative;
3+
width: 100%;
4+
max-width: 286px;
5+
padding: 24px;
6+
background-color: var(--light-white);
7+
border: 0.5px solid var(--medium-grey-for-outline);
8+
border-radius: var(--rounded-xl);
9+
10+
&__inner {
11+
display: flex;
12+
flex-direction: column;
13+
gap: 10px;
14+
}
15+
16+
&__info {
17+
display: flex;
18+
gap: 15px;
19+
align-items: center;
20+
}
21+
22+
&__text {
23+
width: 60%;
24+
color: var(--dark-grey);
25+
}
26+
27+
&__cross {
28+
position: absolute;
29+
top: 10px;
30+
right: 10px;
31+
}
32+
33+
i {
34+
color: var(--dark-grey);
35+
cursor: pointer;
36+
}
37+
}
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
/** @format */
2+
3+
import { CommonModule } from "@angular/common";
4+
import { Component } from "@angular/core";
5+
import { ButtonComponent, IconComponent } from "@ui/components";
6+
import { RouterLink } from "@angular/router";
7+
8+
@Component({
9+
selector: "app-empty-manage-card",
10+
templateUrl: "./empty-manage-card.component.html",
11+
styleUrl: "./empty-manage-card.component.scss",
12+
imports: [CommonModule, ButtonComponent, IconComponent, RouterLink],
13+
standalone: true,
14+
})
15+
export class EmptyManageCardComponent {}

projects/ui/src/lib/components/layout/invite-manage-card/invite-manage-card.component.html

Lines changed: 26 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,20 +8,36 @@
88
</div>
99
<div class="invite__info">
1010
<div class="text-body-12 invite__text">
11+
<!-- для приглашений в проект -->
1112
<a [routerLink]="['/office/profile', invite.sender.id]"
1213
>{{ invite.sender.firstName }} {{ invite.sender.lastName }}</a
1314
><br />приглашает вас в проект <br />
1415
<a [routerLink]="['/office/projects', invite.project.id]"
1516
>"{{ invite.project.name | truncate: 20 }}"</a
1617
>
18+
19+
<!-- для программ -->
20+
<!-- <p>В программе</p>
21+
<br />
22+
<a [routerLink]="['/office/program', invite.project.id]"
23+
>"{{ invite.project.name | truncate: 20 }}"</a
24+
> -->
25+
26+
<!-- для поста текст -->
27+
<!-- <p>выложили новый пост</p> -->
28+
29+
<!-- для материалов текст -->
30+
<!-- <p>опубликован новый материал</p> -->
1731
</div>
18-
<div class="text-body-12 invite__time">
32+
33+
<!-- <div class="text-body-12 invite__time">
1934
{{ invite.datetimeCreated | dayjs: "fromX" }} назад в
2035
{{ invite.datetimeCreated | dayjs: "format":"HH:HH" }}
21-
</div>
36+
</div> -->
2237
</div>
2338
</div>
2439
<div class="invite__actions">
40+
<!-- для приглашений в проект -->
2541
<app-button
2642
customTypographyClass="text-body-12"
2743
size="medium"
@@ -32,6 +48,14 @@
3248
<app-button customTypographyClass="text-body-12" size="medium" (click)="accept.emit(invite.id)"
3349
>принять</app-button
3450
>
51+
52+
<!-- для программ -->
53+
<!-- <app-button
54+
customTypographyClass="text-body-12"
55+
size="big"
56+
[routerLink]="['/office/program', invite.project.id]"
57+
>перейти в программу</app-button
58+
> -->
3559
</div>
3660
</div>
3761
}

projects/ui/src/lib/components/layout/profile-control-panel/profile-control-panel.component.html

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,8 @@
2424
(reject)="rejectInvite.emit($event)"
2525
></app-invite-manage-card>
2626
</li>
27+
} @empty {
28+
<app-empty-manage-card></app-empty-manage-card>
2729
}
2830
</ul>
2931
</div>

0 commit comments

Comments
 (0)