Migrated depreciated imports
This commit is contained in:
1 parent
47428ee891
commit
381b76de9c
26 files changed
+2132
-1621
No files matched your search
@@ -7,15 +7,17 @@
|
||||
<i class="{{ isPlaying() ? 'fa-solid fa-pause' : 'fa-solid fa-play'}}"></i>
|
||||
</button>
|
||||
<button (click)="nextVideo()" [disabled]="!isPlayerReady"><i class="fa-solid fa-forward"></i></button>
|
||||
<div class="volume-control" *ngIf="isPlayerReady()">
|
||||
<input
|
||||
id="volume"
|
||||
type="range"
|
||||
min="0"
|
||||
max="100"
|
||||
[value]="volume()"
|
||||
(input)="onVolumeChange($event)"
|
||||
/>
|
||||
@if (isPlayerReady()) {
|
||||
<div class="volume-control">
|
||||
<input
|
||||
id="volume"
|
||||
type="range"
|
||||
min="0"
|
||||
max="100"
|
||||
[value]="volume()"
|
||||
(input)="onVolumeChange($event)"
|
||||
/>
|
||||
</div>
|
||||
}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@@ -1,5 +1,5 @@
|
||||
import {Component, AfterViewInit, signal} from '@angular/core';
|
||||
import {NgIf} from '@angular/common';
|
||||
|
||||
|
||||
declare global {
|
||||
interface Window {
|
||||
@@ -10,9 +10,7 @@ declare global {
|
||||
|
||||
@Component({
|
||||
selector: 'app-audio-player',
|
||||
imports: [
|
||||
NgIf
|
||||
],
|
||||
imports: [],
|
||||
templateUrl: './audio-player.component.html',
|
||||
styleUrl: './audio-player.component.css'
|
||||
})
|
||||
|
||||
@@ -6,18 +6,20 @@
|
||||
<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 === '/'"><i class="fa-solid fa-address-card"></i> {{ 'NAV_ABOUT' | translate }}</a></li>
|
||||
<li><a [routerLink]="'/portfolio'" [class.active]="activeLink === '/portfolio'"><i class="fa-solid fa-image"></i> Portfolio</a></li>
|
||||
<li><a [routerLink]="'/socials'" [class.active]="activeLink === '/socials'"><i class="fa-solid fa-hashtag"></i> Socials</a></li>
|
||||
<!-- <li><a [routerLink]="'/services'" [class.active]="activeLink === '/services'"><i class="fa-solid fa-money-bill"></i> {{ 'NAV_SERVICES' | translate }}</a></li> -->
|
||||
<li><a [routerLink]="'/blog'" [class.active]="activeLink === '/blog'"><i class="fa-solid fa-newspaper"></i> Blog</a></li>
|
||||
</ul>
|
||||
<div class="language-switch">
|
||||
<button (click)="switchLang('en')" [class.active]="currentLang === 'en'" class="en">EN</button>
|
||||
<button (click)="switchLang('de')" [class.active]="currentLang === 'de'" class="de">DE</button>
|
||||
@if (menuOpen) {
|
||||
<div class="full-screen-menu">
|
||||
<button class="close-icon" (click)="toggleMenu()">✖</button>
|
||||
<ul>
|
||||
<li><a [routerLink]="'/'" [class.active]="activeLink === '/'"><i class="fa-solid fa-address-card"></i> {{ 'NAV_ABOUT' | translate }}</a></li>
|
||||
<li><a [routerLink]="'/portfolio'" [class.active]="activeLink === '/portfolio'"><i class="fa-solid fa-image"></i> Portfolio</a></li>
|
||||
<li><a [routerLink]="'/socials'" [class.active]="activeLink === '/socials'"><i class="fa-solid fa-hashtag"></i> Socials</a></li>
|
||||
<!-- <li><a [routerLink]="'/services'" [class.active]="activeLink === '/services'"><i class="fa-solid fa-money-bill"></i> {{ 'NAV_SERVICES' | translate }}</a></li> -->
|
||||
<li><a [routerLink]="'/blog'" [class.active]="activeLink === '/blog'"><i class="fa-solid fa-newspaper"></i> Blog</a></li>
|
||||
</ul>
|
||||
<div class="language-switch">
|
||||
<button (click)="switchLang('en')" [class.active]="currentLang === 'en'" class="en">EN</button>
|
||||
<button (click)="switchLang('de')" [class.active]="currentLang === 'de'" class="de">DE</button>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
}
|
||||
</div>
|
||||
@@ -1,6 +1,6 @@
|
||||
import {Component, OnInit} from '@angular/core';
|
||||
import {DeviceDetectorService} from 'ngx-device-detector';
|
||||
import {NgIf} from '@angular/common';
|
||||
|
||||
import {NavigationEnd, Router, RouterLink} from '@angular/router';
|
||||
import {TranslatePipe, TranslateService} from '@ngx-translate/core';
|
||||
|
||||
@@ -8,9 +8,8 @@ import {TranslatePipe, TranslateService} from '@ngx-translate/core';
|
||||
selector: 'app-mobile-navbar',
|
||||
imports: [
|
||||
RouterLink,
|
||||
NgIf,
|
||||
TranslatePipe
|
||||
],
|
||||
],
|
||||
templateUrl: './mobile-navbar.component.html',
|
||||
styleUrl: './mobile-navbar.component.css'
|
||||
})
|
||||
|
||||
@@ -1,7 +1,9 @@
|
||||
<div class="modal-backdrop" *ngIf="isOpen">
|
||||
<div class="modal">
|
||||
<button class="close-btn" (click)="closeModal()">✖</button>
|
||||
<h2>{{ title }}</h2>
|
||||
<ng-content></ng-content>
|
||||
@if (isOpen) {
|
||||
<div class="modal-backdrop">
|
||||
<div class="modal">
|
||||
<button class="close-btn" (click)="closeModal()">✖</button>
|
||||
<h2>{{ title }}</h2>
|
||||
<ng-content></ng-content>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
}
|
||||
@@ -1,13 +1,11 @@
|
||||
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
|
||||
]
|
||||
imports: []
|
||||
})
|
||||
export class ModalComponent {
|
||||
@Input() isOpen: boolean = false;
|
||||
|
||||
Reference in new issue
Block a user