+ class="block mt-0 lg:inline-block lg:mt-0 mr-4 text-neutral {{router.url == '/biography' ? 'underline' : 'hover:text-white'}}">
Bio
diff --git a/src/app/pages/biography/biography.page.ts b/src/app/pages/biography/biography.page.ts
index 67680d4..a0b199b 100644
--- a/src/app/pages/biography/biography.page.ts
+++ b/src/app/pages/biography/biography.page.ts
@@ -1,7 +1,8 @@
-import { Component } from '@angular/core';
+import {Component, Inject, OnDestroy, OnInit} from '@angular/core';
import {SectionComponent} from "../../section/section.component";
import {PageComponent} from "../../page/page.component";
-import {NgOptimizedImage} from "@angular/common";
+import {DOCUMENT, NgOptimizedImage} from "@angular/common";
+import {Title} from "@angular/platform-browser";
@Component({
selector: 'iov-biography-page',
@@ -14,6 +15,22 @@ import {NgOptimizedImage} from "@angular/common";
templateUrl: './biography.page.html',
styleUrl: './biography.page.scss'
})
-export class BiographyPage {
+export class BiographyPage implements OnInit, OnDestroy {
+ constructor(private title: Title,
+ @Inject(DOCUMENT) private document: Document) {
+ }
+
+ ngOnInit() {
+ this.title.setTitle('Lorenzo Iovino >> Biography');
+ const link: HTMLLinkElement = this.document.createElement('link');
+ link.setAttribute('rel', 'canonical');
+ link.setAttribute('href', 'https://www.lorenzoiovino.com/biography');
+ this.document.head.appendChild(link);
+ }
+
+ ngOnDestroy() {
+ const link: HTMLLinkElement = this.document.querySelector('link[rel="canonical"]')!;
+ this.document.head.removeChild(link);
+ }
}
diff --git a/src/app/pages/home/home.page.ts b/src/app/pages/home/home.page.ts
index 00d5304..1c7a0b6 100644
--- a/src/app/pages/home/home.page.ts
+++ b/src/app/pages/home/home.page.ts
@@ -1,4 +1,4 @@
-import { Component } from '@angular/core';
+import {Component, Inject, OnDestroy, OnInit} from '@angular/core';
import {HeroComponent} from "../../hero/hero.component";
import {SectionComponent} from "../../section/section.component";
import {PageComponent} from "../../page/page.component";
@@ -7,6 +7,8 @@ import {ArrowScrollDownComponent} from "../../arrow-scroll-down/arrow-scroll-dow
import {FishComponent} from "../../fish/fish.component";
import {HighlightComponent} from "../../highlight/highlight.component";
import {CardCtaComponent} from "../../card-cta/card-cta.component";
+import {Title} from "@angular/platform-browser";
+import {DOCUMENT} from "@angular/common";
@Component({
selector: 'iov-home-page',
@@ -24,6 +26,22 @@ import {CardCtaComponent} from "../../card-cta/card-cta.component";
templateUrl: './home.page.html',
styleUrl: './home.page.scss'
})
-export class HomePage {
+export class HomePage implements OnInit, OnDestroy {
+ constructor(private title: Title,
+ @Inject(DOCUMENT) private document: Document) {
+ }
+
+ ngOnInit() {
+ this.title.setTitle('Lorenzo Iovino >> Home');
+ const link: HTMLLinkElement = this.document.createElement('link');
+ link.setAttribute('rel', 'canonical');
+ link.setAttribute('href', 'https://www.lorenzoiovino.com');
+ this.document.head.appendChild(link);
+ }
+
+ ngOnDestroy() {
+ const link: HTMLLinkElement = this.document.querySelector('link[rel="canonical"]')!;
+ this.document.head.removeChild(link);
+ }
}
diff --git a/tailwind.config.js b/tailwind.config.js
index 4743c3a..5ee0e58 100644
--- a/tailwind.config.js
+++ b/tailwind.config.js
@@ -11,6 +11,7 @@ module.exports = {
accent: "#0028FF",
neutral: "#2a2009",
"base-100": "#fffafd",
+ gray: "#f9fafb",
info: "#00bade",
success: "#00c448",
warning: "#ff8b00",