-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(404 pages): 404 page and some seo works were done
- Loading branch information
Showing
10 changed files
with
151 additions
and
47 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,22 +1,42 @@ | ||
import { Routes } from '@angular/router'; | ||
|
||
import { AboutComponent } from './components/about/about.component'; | ||
import { PageNotFoundComponent } from './components/page-not-found/page-not-found.component'; | ||
|
||
export const routes: Routes = [ | ||
{ | ||
path: '', | ||
component: AboutComponent | ||
{ | ||
path: '', | ||
component: AboutComponent, | ||
data: { | ||
description: 'Kişisel sayfamda hakkımda bilgi edinebilir, yaptığım projeleri görebilir ve yazdığım makaleleri okuyabilirsiniz.' | ||
} | ||
}, | ||
{ | ||
path: 'resume', | ||
loadComponent: () => import('./components/resume/resume.component').then(m => m.ResumeComponent) | ||
loadComponent: () => import('./components/resume/resume.component').then(m => m.ResumeComponent), | ||
data: { | ||
description: 'Bu sayfada öz geçmişimi görüntüleyebilir, deneyim ve eğitimlerimi inceleyebilirsiniz.' | ||
} | ||
}, | ||
{ | ||
path: 'portfolio', | ||
loadComponent: () => import('./components/portfolio/portfolio.component').then(m => m.PortfolioComponent) | ||
loadComponent: () => import('./components/portfolio/portfolio.component').then(m => m.PortfolioComponent), | ||
data: { | ||
description: 'Bu sayfada yapmış olduğum projeleri görüntüleyebilir, dilerseniz kodlarımı inceleyebilirsiniz.' | ||
} | ||
}, | ||
{ | ||
path: 'blog', | ||
loadComponent: () => import('./components/blog/blog.component').then(m => m.BlogComponent) | ||
loadComponent: () => import('./components/blog/blog.component').then(m => m.BlogComponent), | ||
data: { | ||
description: 'Bu sayfada yazmış olduğum blog yazılarımı görüntüleyip, dilediğinizi okuyabilirsiniz.' | ||
} | ||
}, | ||
{ | ||
path: '**', | ||
component: PageNotFoundComponent, | ||
data: { | ||
description: 'Maalesef erişmek istediğiniz sayfa bulunmamaktadır.' | ||
} | ||
} | ||
]; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
38 changes: 38 additions & 0 deletions
38
src/app/components/page-not-found/page-not-found.component.css
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
/* .not-found { | ||
position: relative; | ||
} */ | ||
|
||
.error-message-container { | ||
display: flex; | ||
justify-content: center; | ||
align-items: center; | ||
height: 60vh; | ||
} | ||
|
||
.error-message { | ||
text-align: center; | ||
} | ||
|
||
h1 { | ||
font-size: 5rem; | ||
color: var(--orange-yellow-crayola); | ||
} | ||
|
||
p { | ||
font-size: 1.5rem; | ||
margin: 1rem 0; | ||
color: white; | ||
} | ||
|
||
.go-back { | ||
display: inline-block; | ||
padding: 10px 20px; | ||
background-color: #3498db; | ||
color: white; | ||
text-decoration: none; | ||
border-radius: 5px; | ||
} | ||
|
||
.go-back:hover { | ||
background-color: #2980b9; | ||
} |
13 changes: 13 additions & 0 deletions
13
src/app/components/page-not-found/page-not-found.component.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
<article class="not-found"> | ||
<header> | ||
<h2 class="h2 article-title">Sayfa Bulunamadı</h2> | ||
</header> | ||
|
||
<div class="error-message-container"> | ||
<div class="error-message"> | ||
<h1>404</h1> | ||
<p>Sayfa Bulunamadı</p> | ||
<a routerLink='/' class="go-back">Geri Dön</a> | ||
</div> | ||
</div> | ||
</article> |
13 changes: 13 additions & 0 deletions
13
src/app/components/page-not-found/page-not-found.component.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
import { Component } from '@angular/core'; | ||
import { RouterLink } from '@angular/router'; | ||
|
||
@Component({ | ||
selector: 'app-page-not-found', | ||
standalone: true, | ||
imports: [RouterLink], | ||
templateUrl: './page-not-found.component.html', | ||
styleUrl: './page-not-found.component.css' | ||
}) | ||
export class PageNotFoundComponent { | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters