Updated Routing, moved about to root route

This commit is contained in:
ItzMineyy committed 2024-12-26 09:10:45 +01:00
1 parent 981fd96e8e
commit 995ec2b7a7
4 files changed
+7 -15

No files matched your search

+2 -2
View File
@@ -3,11 +3,11 @@ import {RenderMode, ServerRoute} from '@angular/ssr';
export const serverRoutes: ServerRoute[] = [
{
path: '',
renderMode: RenderMode.Client,
renderMode: RenderMode.Prerender,
},
{
path: 'about',
renderMode: RenderMode.Prerender,
renderMode: RenderMode.Client,
},
{
path: 'portfolio',
+3 -11
View File
@@ -7,8 +7,7 @@ import {NotFoundComponent} from './not-found/not-found.component';
export const routes: Routes = [
{
path: '',
redirectTo: '/about',
pathMatch: 'full',
component: AboutComponent,
data: {
meta: {
title: 'itzMiney\'s Home',
@@ -20,15 +19,8 @@ export const routes: Routes = [
}, // Redirect default route to 'about'
{
path: 'about',
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'
}
}
redirectTo: '/',
pathMatch: 'full'
},
{
path: 'portfolio',
@@ -8,7 +8,7 @@
<div class="full-screen-menu" *ngIf="menuOpen">
<button class="close-icon" (click)="toggleMenu()">✖</button>
<ul>
<li><a [routerLink]="'/about'" [class.active]="activeLink === '/about'">About</a></li>
<li><a [routerLink]="'/'" [class.active]="activeLink === '/'">About</a></li>
<li><a [routerLink]="'/portfolio'" [class.active]="activeLink === '/portfolio'">Portfolio</a></li>
<li><a href="https://linktr.ee/itzminey">Socials</a></li>
<li><a [routerLink]="'/blog'" [class.active]="activeLink === '/blog'">Blog</a></li>
+1 -1
View File
@@ -1,6 +1,6 @@
<nav class="navbar" *ngIf="!isMobile">
<div class="navbar-links">
<a [routerLink]="'/about'" [class.active]="activeLink === '/about'">About</a>
<a [routerLink]="'/'" [class.active]="activeLink === '/'">About</a>
<a [routerLink]="'/portfolio'" [class.active]="activeLink === '/portfolio'">Portfolio</a>
<a href="https://linktr.ee/itzminey">Socials</a>
<a [routerLink]="'/blog'" [class.active]="activeLink === '/blog'">Blog</a>