-
Notifications
You must be signed in to change notification settings - Fork 8
feat: implement 404 page #65
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
Open
01001101CK
wants to merge
8
commits into
SquiggleTools:main
Choose a base branch
from
01001101CK:feature/404-page
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from 4 commits
Commits
Show all changes
8 commits
Select commit
Hold shift + click to select a range
6ae219a
add a 404 page
01001101CK 807d538
1) reduce the number of extra colors in the color scheme. 2) remove s…
01001101CK c683617
Merge branch 'SquiggleTools:main' into main
01001101CK 0445a17
Merge branch 'main' into feature/404-page
JoshuaKGoldberg c268431
Update src/pages/404.astro
01001101CK 3a1829f
Update src/pages/404.astro
01001101CK 6d38354
Update src/pages/404.astro
01001101CK 9dfc0ca
- Fixed Node.js engine warning
01001101CK 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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,83 @@ | ||
| --- | ||
| import PageLayout from "~/layouts/PageLayout.astro"; | ||
| --- | ||
|
|
||
| <PageLayout description="Page not found - SquiggleConf" title="404"> | ||
| <div class="error-container"> | ||
| <div class="error-box"> | ||
| <div class="error-title">404: NOT_FOUND</div> | ||
| <div class="error-code">Code: `NOT_FOUND`</div> | ||
| <div class="error-message"> | ||
| You've drifted into uncharted waters. Navigate back to the surface? | ||
| </div> | ||
| </div> | ||
|
|
||
| <a href="/" class="home-link"> Home Page </a> | ||
|
01001101CK marked this conversation as resolved.
Outdated
|
||
| </div> | ||
| </PageLayout> | ||
|
|
||
| <style> | ||
| .error-container { | ||
| display: flex; | ||
| flex-direction: column; | ||
| align-items: center; | ||
| justify-content: center; | ||
| min-height: 60vh; | ||
| padding: 2rem; | ||
|
01001101CK marked this conversation as resolved.
Outdated
|
||
| height: 100vh; | ||
| background: var(--colorSandBackground); | ||
| } | ||
|
|
||
| .error-box { | ||
| background: var(--colorSandBackground); | ||
| border: 1px solid var(--colorSandLight); | ||
| border-radius: 8px; | ||
| padding: 2rem; | ||
| margin-bottom: 2rem; | ||
| text-align: left; | ||
| box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1); | ||
| max-width: 500px; | ||
| width: 100%; | ||
| } | ||
|
|
||
| .error-title { | ||
| font-family: var(--fontFamilyHeading); | ||
| font-size: var(--fontSizeLarge); | ||
| font-weight: var(--fontWeightBold); | ||
| color: var(--colorSandForeground); | ||
| margin-bottom: 0.5rem; | ||
| } | ||
|
|
||
| .error-code { | ||
| font-family: var(--fontFamilyBody); | ||
| font-size: var(--fontSizeSmall); | ||
| color: var(--colorSandForeground); | ||
| margin-bottom: 1rem; | ||
| } | ||
|
|
||
| .error-message { | ||
| font-family: var(--fontFamilyBody); | ||
| font-size: var(--fontSizeSmall); | ||
| color: var(--colorSandForeground); | ||
| line-height: 1.5; | ||
| } | ||
|
|
||
| .home-link { | ||
| background: var(--colorSandBackground); | ||
| border: 1px solid var(--colorSandForeground); | ||
| border-radius: 4px; | ||
| color: var(--colorSandForeground); | ||
| text-decoration: none; | ||
| padding: 0.75rem 1.5rem; | ||
| font-family: var(--fontFamilyBody); | ||
| font-size: var(--fontSizeSmall); | ||
| text-align: center; | ||
| transition: all var(--colorBlue3); | ||
| display: inline-block; | ||
| } | ||
|
|
||
| .home-link:hover { | ||
| background: var(--colorBlue3); | ||
| color: var(--colorForegroundAccent); | ||
| } | ||
| </style> | ||
Oops, something went wrong.
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.