admin page rework
This commit is contained in:
1 parent
a9794bc5ba
commit
8ea703d780
9 files changed
+1041
-439
No files matched your search
@@ -8,25 +8,38 @@
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
text-align: center;
|
||||
z-index: 1000;
|
||||
}
|
||||
|
||||
.modal {
|
||||
background: #fff;
|
||||
padding: 20px;
|
||||
background-color: #202025;
|
||||
color: #fff;
|
||||
border-radius: 25px;
|
||||
padding: 15px;
|
||||
min-width: 300px;
|
||||
max-width: 300px;
|
||||
position: relative;
|
||||
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
|
||||
z-index: 1001;
|
||||
}
|
||||
|
||||
.close-btn {
|
||||
position: absolute;
|
||||
top: 10px;
|
||||
right: 10px;
|
||||
top: 4px;
|
||||
right: 8px;
|
||||
background: none;
|
||||
color: white;
|
||||
border: none;
|
||||
font-size: 20px;
|
||||
font-size: 28px;
|
||||
cursor: pointer;
|
||||
transition: all ease-in-out 0.2s;
|
||||
}
|
||||
|
||||
.close-btn:hover {
|
||||
color: #ebe1fa;
|
||||
}
|
||||
|
||||
.close-btn:active {
|
||||
color: #a172e8;
|
||||
}
|
||||
@@ -1,7 +1,7 @@
|
||||
@if (isOpen) {
|
||||
<div class="modal-backdrop">
|
||||
<div class="modal">
|
||||
<button class="close-btn" (click)="closeModal()">✖</button>
|
||||
<button class="close-btn" (click)="closeModal()"><i class="fa-solid fa-xmark"></i></button>
|
||||
<h2>{{ title }}</h2>
|
||||
<ng-content></ng-content>
|
||||
</div>
|
||||
|
||||
@@ -31,7 +31,7 @@ export class UserService {
|
||||
}, { headers });
|
||||
}
|
||||
|
||||
editUser(id: number, token: string | null, username: string, password: string): Observable<any> {
|
||||
editUser(id: number, token: string | null, username?: string, password?: string): Observable<any> {
|
||||
const headers = new HttpHeaders().set('Authorization', `Bearer ${token}`);
|
||||
|
||||
const body: any = {};
|
||||
|
||||
Reference in new issue
Block a user