refactor to define helper service more accurately
This commit is contained in:
1 parent
5527acfb6a
commit
7618e4bf5d
28 files changed
+78
-403
No files matched your search
@@ -7,7 +7,7 @@
|
||||
</app-parallax>
|
||||
<div class="landing-container">
|
||||
<div class="title-box">
|
||||
<h1 [ngStyle]="{'font-size': isMobile ? '4rem' : '5rem'}"><code>itzMiney</code></h1>
|
||||
<h1 [ngStyle]="{'font-size': isNarrow ? '4rem' : '5rem'}"><code>itzMiney</code></h1>
|
||||
<p class="subtitle">{{ 'ABOUT_SUB' | translate}}</p>
|
||||
</div>
|
||||
<div class="down-arrow" (click)="scrollDown()">
|
||||
@@ -17,11 +17,11 @@
|
||||
<div class="separator"></div>
|
||||
<section id="content" #contentTrigger></section>
|
||||
<div class="about-container">
|
||||
<div class="terminal" [ngStyle]="{'margin': isMobile ? '10px;' : '25px'}">
|
||||
<div class="terminal" [ngStyle]="{'margin': isNarrow ? '10px;' : '25px'}">
|
||||
<div class="titlebar">
|
||||
<div class="window-title"><p><code>Konsole</code></p></div> <div class="window-actions"><p>🟡 🟣 🔴</p></div>
|
||||
</div>
|
||||
<div class="terminal-window" [ngStyle]="{'width': isMobile ? '100%' : '900px' }">
|
||||
<div class="terminal-window" [ngStyle]="{'width': isNarrow ? '100%' : '900px' }">
|
||||
<app-terminal-emulator [bootOnVisible]="terminalShouldBoot"></app-terminal-emulator>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import {AfterViewInit, Component, ElementRef, HostListener, OnInit, ViewChild, ViewEncapsulation} from '@angular/core';
|
||||
import {DeviceDetectorService} from '../shared/services/device-detector.service';
|
||||
import {ViewportService} from '../shared/services/viewport.service';
|
||||
import {Title} from '@angular/platform-browser';
|
||||
import {TranslatePipe} from '@ngx-translate/core';
|
||||
import {ParallaxComponent} from '../shared/parallax/parallax.component';
|
||||
@@ -21,20 +21,20 @@ import {TerminalEmulatorComponent} from '../shared/terminal-emulator/terminal-em
|
||||
styleUrls: ['./about.component.css']
|
||||
})
|
||||
export class AboutComponent implements OnInit, AfterViewInit {
|
||||
isMobile: boolean = false;
|
||||
isNarrow: boolean = false;
|
||||
terminalShouldBoot: boolean = false;
|
||||
|
||||
@ViewChild('contentTrigger') contentTrigger!: ElementRef;
|
||||
|
||||
constructor(
|
||||
private deviceService: DeviceDetectorService,
|
||||
private deviceService: ViewportService,
|
||||
private titleService: Title
|
||||
) {
|
||||
}
|
||||
|
||||
ngOnInit() {
|
||||
this.titleService.setTitle('itzMiney\'s Home');
|
||||
this.isMobile = this.deviceService.isMobile;
|
||||
this.isNarrow = this.deviceService.isNarrow;
|
||||
}
|
||||
|
||||
ngAfterViewInit() {
|
||||
|
||||
Reference in new issue
Block a user