Files
itzmineydev/src/app/app.routes.ts
T

77 lines
2.1 KiB
TypeScript

import { Routes } from '@angular/router';
import { AboutComponent } from './about/about.component';
import { PortfolioComponent } from './portfolio/portfolio.component';
import { BlogComponent } from './blog/blog.component';
import {NotFoundComponent} from './not-found/not-found.component';
import {LoginComponent} from './login/login.component';
import {AdminComponent} from './admin/admin.component';
export const routes: Routes = [
{
path: '',
component: AboutComponent,
data: {
meta: {
title: 'itzMiney\'s Home',
description: 'Welcome to itzMiney\'s Homepage! Here you can find my portfolio and other cool stuff.',
image: 'https://itzminey.dev/assets/ogimg.png',
url: 'https://itzminey.dev/about',
color: '#eb284c'
}
}
}, // Redirect default route to 'about'
{
path: 'about',
redirectTo: '/',
pathMatch: 'full',
},
{
path: 'portfolio',
component: PortfolioComponent,
data: {
meta: {
title: 'Portfolio | itzMiney',
description: 'This is my portfolio where you can find examples of my designs and other projects!',
image: 'https://itzminey.dev/assets/ogimg.png',
url: 'https://itzminey.dev/portfolio',
color: '#eb284c'
}
}
},
{
path: 'blog',
component: BlogComponent,
data: {
meta: {
title: 'Blog | itzMiney',
description: 'Welcome to my blog! I\'ll post occasional updates here on the stuff I\'m currently up to.',
image: 'https://itzminey.dev/assets/ogimg.png',
url: 'https://itzminey.dev/blog',
color: '#eb284c'
}
}
},
{
path: 'login',
component: LoginComponent,
},
{
path: 'admin',
component: AdminComponent,
},
{
path: '**',
pathMatch: 'full',
component: NotFoundComponent,
data: {
meta: {
title: '404 | Page Not Found',
description: 'How the hell did you end up here?',
image: 'https://itzminey.dev/assets/ogimg.png',
url: 'https://itzminey.dev/404',
color: '#eb284c'
}
}
}
];