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'; import {ArticlePageComponent} from './article-page/article-page.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, data: { meta: { title: 'Login | itzMiney', description: 'Admin Panel Login', image: 'https://itzminey.dev/assets/ogimg.png', url: 'https://itzminey.dev/login', color: '#eb284c' } } }, { path: 'admin', component: AdminComponent, data: { meta: { title: 'Admin Panel | itzMiney', description: 'Admin Panel', image: 'https://itzminey.dev/assets/ogimg.png', url: 'https://itzminey.dev/admin', color: '#eb284c' } } }, { path: 'blog/:slug', component: ArticlePageComponent }, { 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' } } } ];