-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #13 from nblackburn/feature/404
404 page
- Loading branch information
Showing
5 changed files
with
74 additions
and
2 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
import { style } from '@vanilla-extract/css'; | ||
import { sizes, vars, primaryAccent, containers } from '@styles/theme.css'; | ||
|
||
export const notFound = style({ | ||
flex: 1, | ||
display: 'flex', | ||
fontSize: '1.2rem', | ||
alignItems: 'center', | ||
flexDirection: 'column', | ||
justifyContent: 'center' | ||
}); | ||
|
||
export const container = style({ | ||
textAlign: 'center', | ||
maxWidth: containers.small | ||
}); | ||
|
||
export const title = style({ | ||
margin: 0, | ||
fontWeight: 'bold', | ||
color: primaryAccent, | ||
fontSize: sizes.xtraLarge, | ||
marginBottom: sizes.small | ||
}); | ||
|
||
export const subTitle = style({ | ||
margin: 0, | ||
fontSize: sizes.medium, | ||
color: vars.colors.davyGrey, | ||
'@media': { | ||
'(prefers-color-scheme: dark)': { | ||
color: vars.colors.silverChalice | ||
} | ||
} | ||
}); | ||
|
||
export const description = style({ | ||
lineHeight: 1.5 | ||
}); |
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,22 @@ | ||
<template> | ||
<section :class="styles.notFound"> | ||
<div :class="styles.container"> | ||
<h1 :class="styles.title">404</h1> | ||
<h2 :class="styles.subTitle">Page not found</h2> | ||
<p :class="styles.description"> | ||
Well this is embarrasing, the link you clicked appears to be | ||
broken or the page has moved. | ||
</p> | ||
</div> | ||
</section> | ||
</template> | ||
|
||
<script lang="ts"> | ||
import * as styles from './notFound.css'; | ||
export default { | ||
setup() { | ||
return { styles }; | ||
} | ||
}; | ||
</script> |
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 |
---|---|---|
@@ -0,0 +1,11 @@ | ||
--- | ||
import BaseLayout from '@layouts/base.astro'; | ||
import NotFound from '@components/notFound.vue'; | ||
const title = '404'; | ||
const description = 'Page not found'; | ||
--- | ||
|
||
<BaseLayout title={title} description={description}> | ||
<NotFound /> | ||
</BaseLayout> |