complete visual overhaul
This commit is contained in:
1 parent
02bc2faca0
commit
25d06ec49a
51 files changed
+694
-664
No files matched your search
@@ -9,16 +9,6 @@
|
||||
}
|
||||
}
|
||||
|
||||
#vanta-not-found-bg {
|
||||
animation: fadeIn 1s ease-out;
|
||||
position: fixed;
|
||||
top: 0;
|
||||
left: 0;
|
||||
width: 100vw;
|
||||
height: 100vh;
|
||||
z-index: -100;
|
||||
}
|
||||
|
||||
.height-container {
|
||||
display: flex;
|
||||
min-height: 100vh;
|
||||
@@ -43,7 +33,7 @@
|
||||
}
|
||||
|
||||
button {
|
||||
background-color: #713252;
|
||||
background-color: #523fa6;
|
||||
color: #fff;
|
||||
border: none;
|
||||
padding: 10px 20px;
|
||||
@@ -55,9 +45,9 @@ button {
|
||||
}
|
||||
|
||||
button:hover {
|
||||
background-color: #bf9bae;
|
||||
background-color: #3c3460;
|
||||
}
|
||||
|
||||
button:active {
|
||||
background-color: #814a67;
|
||||
background-color: #6b5fa0;
|
||||
}
|
||||
@@ -1,4 +1,4 @@
|
||||
<div id="vanta-not-found-bg"></div>
|
||||
<app-parallax></app-parallax>
|
||||
<div class="height-container">
|
||||
<div class="error-message">
|
||||
<h1>404</h1>
|
||||
|
||||
@@ -1,48 +1,24 @@
|
||||
import {AfterViewInit, Component, Inject, OnDestroy, OnInit, PLATFORM_ID} from '@angular/core';
|
||||
import {DeviceDetectorService} from '../shared/services/device-detector.service';
|
||||
import {VantaBackgroundService} from '../shared/services/vanta-background.service';
|
||||
import {isPlatformBrowser} from '@angular/common';
|
||||
import {Component, OnInit} from '@angular/core';
|
||||
import {Title} from '@angular/platform-browser';
|
||||
import {ParallaxComponent} from '../shared/parallax/parallax.component';
|
||||
|
||||
@Component({
|
||||
selector: 'app-not-found',
|
||||
imports: [],
|
||||
imports: [
|
||||
ParallaxComponent
|
||||
],
|
||||
templateUrl: './not-found.component.html',
|
||||
styleUrl: './not-found.component.css',
|
||||
})
|
||||
|
||||
export class NotFoundComponent implements OnInit, OnDestroy, AfterViewInit {
|
||||
private readonly elementId = 'vanta-not-found-bg';
|
||||
export class NotFoundComponent implements OnInit {
|
||||
isMobile: boolean = false;
|
||||
constructor(
|
||||
private vantaService: VantaBackgroundService,
|
||||
private deviceService: DeviceDetectorService,
|
||||
private titleService: Title,
|
||||
@Inject(PLATFORM_ID) private platformId: Object
|
||||
) {
|
||||
}
|
||||
|
||||
ngOnInit() {
|
||||
this.titleService.setTitle('404 | Page Not Found')
|
||||
this.isMobile = this.deviceService.isMobile;
|
||||
if (isPlatformBrowser(this.platformId)) {
|
||||
window.addEventListener('resize', this.onResize.bind(this));
|
||||
}
|
||||
}
|
||||
ngAfterViewInit() {
|
||||
this.vantaService.initVanta(this.elementId, {
|
||||
color: 0xac1f4e,
|
||||
backgroundColor: 0x191522
|
||||
});
|
||||
}
|
||||
ngOnDestroy() {
|
||||
this.vantaService.destroyVanta(this.elementId);
|
||||
if (isPlatformBrowser(this.platformId)) {
|
||||
window.removeEventListener('resize', this.onResize);
|
||||
}
|
||||
}
|
||||
|
||||
onResize() {
|
||||
this.vantaService.resizeVanta(this.elementId);
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user