diff --git a/src/app/shared/terminal-emulator/terminal-emulator.component.ts b/src/app/shared/terminal-emulator/terminal-emulator.component.ts index f4053ce..7a98bd5 100644 --- a/src/app/shared/terminal-emulator/terminal-emulator.component.ts +++ b/src/app/shared/terminal-emulator/terminal-emulator.component.ts @@ -141,28 +141,34 @@ export class TerminalEmulatorComponent implements OnInit, OnChanges { this.handleCat(arg); break; - case 'portfolio': + case 'portfolio.html': this.history.push({ type: 'output', text: 'Opening portfolio...' }); - void this.router.navigate(['/portfolio']); + setTimeout(() => { + void this.router.navigate(['/portfolio']); + }, 800); break; - case 'blog': + case 'blog.html': this.history.push({ type: 'output', text: 'Opening blog...' }); - void this.router.navigate(['/blog']); + setTimeout(() => { + void this.router.navigate(['/blog']); + }, 800); break; - case 'socials': + case 'socials.html': this.history.push({ type: 'output', text: 'Opening socials...' }); - void this.router.navigate(['/socials']); + setTimeout(() => { + void this.router.navigate(['/socials']); + }, 800); break; case 'clear': @@ -229,21 +235,21 @@ export class TerminalEmulatorComponent implements OnInit, OnChanges { case 'portfolio.html': this.history.push({ type: 'output', - text: 'Navigate to /portfolio' + text: 'void this.router.navigate([\'/portfolio\']);' }); break; case 'blog.html': this.history.push({ type: 'output', - text: 'Navigate to /blog' + text: 'void this.router.navigate([\'/blog\']);' }); break; case 'socials.html': this.history.push({ type: 'output', - text: 'Navigate to /socials' + text: 'void this.router.navigate([\'/socials\']);' }); break;