Revised Meta Data & improved Routing

This commit is contained in:
ItzMineyy committed 2024-12-24 23:05:50 +01:00
1 parent 97217cb149
commit 5097f7c254
6 files changed
+103 -33

No files matched your search

-5
View File
@@ -1,5 +1,4 @@
import {Component, OnInit, OnDestroy, AfterViewInit } from '@angular/core';
import {Meta, Title} from '@angular/platform-browser';
@Component({
selector: 'app-not-found',
@@ -9,13 +8,9 @@ import {Meta, Title} from '@angular/platform-browser';
})
export class NotFoundComponent implements OnInit, OnDestroy, AfterViewInit {
constructor(private titleService: Title, private meta: Meta) {}
private vantaEffect: any;
ngOnInit() {
this.titleService.setTitle('404 Not Found');
this.meta.updateTag({ name: 'description', content: 'How the hell did you end up here?' });
this.meta.updateTag({ property: 'og:image', content: 'https://itzminey.dev/assets/ogimg.png' });
window.addEventListener('resize', this.onResize.bind(this)); // Add resize listener for responsiveness