feat: style
This commit is contained in:
@@ -57,7 +57,7 @@ export class HomeComponent implements OnInit, AfterViewInit, OnDestroy {
|
|||||||
protected isLongBioShown: boolean = false;
|
protected isLongBioShown: boolean = false;
|
||||||
protected isLongBioMounted: boolean = false;
|
protected isLongBioMounted: boolean = false;
|
||||||
protected isAboutSectionInView: boolean = true;
|
protected isAboutSectionInView: boolean = true;
|
||||||
protected isAboutSectionAnimationReady: boolean = false;
|
protected isAboutSectionAnimationReady: boolean = true;
|
||||||
protected readonly faArrowRight: IconDefinition = faArrowRight;
|
protected readonly faArrowRight: IconDefinition = faArrowRight;
|
||||||
protected readonly faArrowDown: IconDefinition = faArrowDown;
|
protected readonly faArrowDown: IconDefinition = faArrowDown;
|
||||||
protected readonly faEnvelope: IconDefinition = faEnvelope;
|
protected readonly faEnvelope: IconDefinition = faEnvelope;
|
||||||
@@ -327,12 +327,6 @@ export class HomeComponent implements OnInit, AfterViewInit, OnDestroy {
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
const initialRect: DOMRect = aboutSection.getBoundingClientRect();
|
|
||||||
const viewportHeight: number = window.innerHeight || document.documentElement.clientHeight;
|
|
||||||
this.isAboutSectionInView =
|
|
||||||
initialRect.top < viewportHeight * 0.95 && initialRect.bottom > viewportHeight * 0.1;
|
|
||||||
this.isAboutSectionAnimationReady = true;
|
|
||||||
|
|
||||||
if (typeof IntersectionObserver === 'undefined') {
|
if (typeof IntersectionObserver === 'undefined') {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user