Skip to content

Commit 1fce821

Browse files
committed
add empty-manage-card for notification
1 parent 7cd78d5 commit 1fce821

9 files changed

Lines changed: 99 additions & 8 deletions

File tree

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: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
.card {
2+
padding: 24px;
3+
background-color: var(--light-white);
4+
background-color: var(--light-white);
5+
border: 0.5px solid var(--medium-grey-for-outline);
6+
border-radius: var(--rounded-xl);
7+
width: 100%;
8+
position: relative;
9+
max-width: 286px;
10+
11+
&__inner {
12+
display: flex;
13+
flex-direction: column;
14+
gap: 10px;
15+
}
16+
17+
&__info {
18+
display: flex;
19+
align-items: center;
20+
gap: 15px;
21+
}
22+
23+
&__text {
24+
color: var(--dark-grey);
25+
width: 60%;
26+
}
27+
28+
&__cross {
29+
position: absolute;
30+
top: 10px;
31+
right: 10px;
32+
}
33+
34+
i {
35+
cursor: pointer;
36+
color: var(--dark-grey);
37+
}
38+
}
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: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -17,16 +17,17 @@
1717
>
1818

1919
<!-- для программ -->
20-
<p>В программе</p>
20+
<!-- <p>В программе</p>
2121
<br />
2222
<a [routerLink]="['/office/program', invite.project.id]"
2323
>"{{ invite.project.name | truncate: 20 }}"</a
24-
>
24+
> -->
25+
2526
<!-- для поста текст -->
26-
<p>выложили новый пост</p>
27+
<!-- <p>выложили новый пост</p> -->
2728

2829
<!-- для материалов текст -->
29-
<p>опубликован новый материал</p>
30+
<!-- <p>опубликован новый материал</p> -->
3031
</div>
3132

3233
<!-- <div class="text-body-12 invite__time">
@@ -49,12 +50,12 @@
4950
>
5051

5152
<!-- для программ -->
52-
<app-button
53+
<!-- <app-button
5354
customTypographyClass="text-body-12"
5455
size="big"
5556
[routerLink]="['/office/program', invite.project.id]"
5657
>перейти в программу</app-button
57-
>
58+
> -->
5859
</div>
5960
</div>
6061
}

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>

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
&__notifications {
2828
position: absolute;
2929
top: 100%;
30-
right: -10%;
30+
right: 0%;
3131
z-index: 20;
3232
margin-top: 10px;
3333
}

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ import { ClickOutsideModule } from "ng-click-outside";
77
import type { Invite } from "@office/models/invite.model";
88
import { RouterLink } from "@angular/router";
99
import type { User } from "../../../models/user.model";
10+
import { EmptyManageCardComponent } from "../empty-manage-card/empty-manage-card.component";
1011

1112
/**
1213
* Компонент панели управления профилем
@@ -38,6 +39,7 @@ import type { User } from "../../../models/user.model";
3839
ClickOutsideModule,
3940
IconComponent,
4041
RouterLink,
42+
EmptyManageCardComponent,
4143
],
4244
templateUrl: "./profile-control-panel.component.html",
4345
styleUrl: "./profile-control-panel.component.scss",

0 commit comments

Comments
 (0)