Added User Management to Admin Panel, reorganized some stuff

This commit is contained in:
itzMiney committed 2025-01-03 23:59:17 +01:00
1 parent d83992d3ce
commit 83260af2e6
22 files changed
+439 -36

No files matched your search

+31
View File
@@ -0,0 +1,31 @@
.modal-backdrop {
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
background: rgba(0, 0, 0, 0.5);
display: flex;
justify-content: center;
align-items: center;
}
.modal {
background: #fff;
padding: 20px;
border-radius: 25px;
min-width: 300px;
max-width: 300px;
position: relative;
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}
.close-btn {
position: absolute;
top: 10px;
right: 10px;
background: none;
border: none;
font-size: 20px;
cursor: pointer;
}
@@ -0,0 +1,7 @@
<div class="modal-backdrop" *ngIf="isOpen">
<div class="modal">
<button class="close-btn" (click)="closeModal()">✖</button>
<h2>{{ title }}</h2>
<ng-content></ng-content>
</div>
</div>
+21
View File
@@ -0,0 +1,21 @@
import { Component, Input, Output, EventEmitter } from '@angular/core';
import {NgIf} from '@angular/common';
@Component({
selector: 'app-modal',
templateUrl: './modal.component.html',
styleUrls: ['./modal.component.css'],
imports: [
NgIf
]
})
export class ModalComponent {
@Input() isOpen: boolean = false;
@Input() title: string = '';
@Output() onClose = new EventEmitter<void>();
closeModal() {
this.isOpen = false;
this.onClose.emit();
}
}