-
-
Notifications
You must be signed in to change notification settings - Fork 21
Added 404 not found page #14
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
2 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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 hidden or 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,9 @@ | ||
| --- | ||
| title: 404 - Page not found | ||
| description: Sorry, the page you are looking for doesn't exist or has been moved. | ||
| seo: | ||
| title: 404 - Page not found | ||
| description: Sorry, the page you are looking for doesn't exist or has been moved. | ||
| type: website | ||
| robots: noindex, no follow | ||
| --- | ||
This file contains hidden or 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,80 @@ | ||
| --- | ||
| import { getEntry } from 'astro:content'; | ||
| import BaseLayout from '@/layouts/BaseLayout.astro'; | ||
| import Container from '@/components/Container.astro'; | ||
|
|
||
| const entry = await getEntry('pages', '404'); | ||
| --- | ||
|
|
||
| <BaseLayout seo={entry?.data.seo}> | ||
coderdiaz marked this conversation as resolved.
Show resolved
Hide resolved
|
||
| <Container | ||
| as="section" | ||
| class="min-h-[calc(100vh-12rem)] flex items-center justify-center" | ||
| > | ||
| <div class="text-center space-y-8"> | ||
| <!-- 404 Number --> | ||
| <div class="space-y-4"> | ||
| <h1 class="text-6xl md:text-8xl font-bold text-headings opacity-20"> | ||
| 404 | ||
| </h1> | ||
| <div class="space-y-2"> | ||
| <h2 class="text-2xl md:text-3xl font-medium text-headings"> | ||
| {entry?.data.title} | ||
| </h2> | ||
| <p class="text-muted-foreground max-w-md mx-auto"> | ||
| {entry?.data.description} | ||
| </p> | ||
| </div> | ||
| </div> | ||
|
|
||
| <!-- Action Buttons --> | ||
| <div | ||
| class="flex flex-col sm:flex-row gap-4 justify-center items-center pt-4" | ||
| > | ||
| <a | ||
| href="/" | ||
| class="group inline-flex items-center justify-center px-6 py-3 bg-headings text-background font-medium rounded-full transition-all duration-200 hover:bg-headings/90 hover:scale-105 focus:outline-none focus:ring-2 focus:ring-headings/50 focus:ring-offset-2 focus:ring-offset-background min-w-[140px]" | ||
| > | ||
| <svg | ||
| class="w-4 h-4 mr-2 transition-transform group-hover:-translate-x-1" | ||
| fill="none" | ||
| stroke="currentColor" | ||
| viewBox="0 0 24 24" | ||
| > | ||
| <path | ||
| stroke-linecap="round" | ||
| stroke-linejoin="round" | ||
| stroke-width="2" | ||
| d="M10 19l-7-7m0 0l7-7m-7 7h18"></path> | ||
| </svg> | ||
| Go Home | ||
| </a> | ||
|
|
||
| <a | ||
| href="/writing" | ||
| class="group inline-flex items-center justify-center px-6 py-3 border border-border text-headings font-medium rounded-full transition-all duration-200 hover:bg-muted-foreground/10 hover:border-headings/30 focus:outline-none focus:ring-2 focus:ring-headings/50 focus:ring-offset-2 focus:ring-offset-background min-w-[140px]" | ||
| > | ||
| Browse Writing | ||
| <svg | ||
| class="w-4 h-4 ml-2 transition-transform group-hover:translate-x-1" | ||
| fill="none" | ||
| stroke="currentColor" | ||
| viewBox="0 0 24 24" | ||
| > | ||
| <path | ||
| stroke-linecap="round" | ||
| stroke-linejoin="round" | ||
| stroke-width="2" | ||
| d="M14 5l7 7m0 0l-7 7m7-7H3"></path> | ||
| </svg> | ||
| </a> | ||
| </div> | ||
|
|
||
| <!-- Additional Help Text --> | ||
| <p class="text-sm text-muted-foreground/70 pt-8"> | ||
| If you believe this is an error, please check the URL or try refreshing | ||
| the page. | ||
| </p> | ||
| </div> | ||
| </Container> | ||
| </BaseLayout> | ||
This file contains hidden or 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
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.