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

@@ -0,0 +1,84 @@
.mobile-navbar {
position: fixed;
top: 0;
left: 0;
width: 100%;
background: linear-gradient(to top, rgba(0, 0, 0, 0) 0%, rgb(0, 0, 0) 100%);
padding: 10px;
color: #fff;
z-index: 1000;
display: flex;
align-items: center;
justify-content: space-between;
}
.menu-icon {
font-size: 32px;
background: none;
border: none;
color: white;
cursor: pointer;
transform: translate( +10%, -5% );
z-index: 10;
}
.navbar-title {
flex-grow: 1;
text-align: center;
font-size: 20px;
font-weight: bold;
transform: translateX(-10%);
z-index: 1;
}
.navbar-title a {
text-decoration: none;
color: inherit;
}
.full-screen-menu {
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
background: rgba(0, 0, 0, 0.9);
color: white;
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
z-index: 2000;
}
.full-screen-menu ul {
list-style: none;
padding: 0;
position: fixed;
top: 72px;
left: 72px;
font-weight: 700;
font-style: italic;
}
.full-screen-menu li {
margin: 20px 0;
padding-bottom: 50px;
}
.full-screen-menu a {
color: white;
text-decoration: none;
font-size: 32px;
}
.close-icon {
position: absolute;
top: 8px;
right: 13px;
font-size: 32px;
background: none;
border: none;
color: white;
cursor: pointer;
}
@@ -0,0 +1,18 @@
<div class="mobile-navbar">
<!-- Hamburger Icon -->
<button class="menu-icon" (click)="toggleMenu()">☰</button>
<!-- Logo Text (Centered) -->
<div class="navbar-title"><a [routerLink]="'/'" [class.active]="activeLink === '/'">itzMiney.dev</a></div>
<!-- Full-Screen Menu -->
<div class="full-screen-menu" *ngIf="menuOpen">
<button class="close-icon" (click)="toggleMenu()">✖</button>
<ul>
<li><a [routerLink]="'/'" [class.active]="activeLink === '/'">About</a></li>
<li><a [routerLink]="'/portfolio'" [class.active]="activeLink === '/portfolio'">Portfolio</a></li>
<li><a href="https://linktr.ee/itzminey">Socials</a></li>
<li><a [routerLink]="'/blog'" [class.active]="activeLink === '/blog'">Blog</a></li>
</ul>
</div>
</div>
@@ -0,0 +1,38 @@
import {Component, OnInit} from '@angular/core';
import {DeviceDetectorService} from 'ngx-device-detector';
import {NgIf} from '@angular/common';
import {NavigationEnd, Router, RouterLink} from '@angular/router';
@Component({
selector: 'app-mobile-navbar',
imports: [
RouterLink,
NgIf
],
templateUrl: './mobile-navbar.component.html',
styleUrl: './mobile-navbar.component.css'
})
export class MobileNavbarComponent implements OnInit{
menuOpen = false;
isMobile: boolean;
activeLink: string = '';
constructor(private router: Router, private deviceService: DeviceDetectorService) {
this.isMobile = this.deviceService.isMobile();
}
toggleMenu() {
this.menuOpen = !this.menuOpen;
}
ngOnInit() {
// Listen to route changes
this.router.events.subscribe((event) => {
if (event instanceof NavigationEnd) {
this.menuOpen = false;
this.activeLink = event.urlAfterRedirects; // Capture the active route
}
});
}
}