Skip to content

Commit

Permalink
chore(404 page): added a sample 404 route (#49)
Browse files Browse the repository at this point in the history
  • Loading branch information
christian-breidler authored Nov 25, 2021
1 parent 674dc83 commit 8c84877
Show file tree
Hide file tree
Showing 3 changed files with 31 additions and 1 deletion.
21 changes: 21 additions & 0 deletions components/fsxa/Page404.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
import { FSXABaseComponent } from 'fsxa-pattern-library'
import { Component } from 'vue-property-decorator'

@Component({ name: 'Page404' })
class Page404 extends FSXABaseComponent {
render() {
return (
<div class="h-full w-full flex items-center justify-center">
<div>
<div class="ui-block ui-text-center ui-uppercase ui-mt-6 ui-leading-10">
404 Error
</div>
<div class="ui-block ui-text-center ui-text-4xl ui-font-bold ui-mb-6 ui-leading-10">
Page not found.
</div>
</div>
</div>
)
}
}
export default Page404
8 changes: 8 additions & 0 deletions docs/modules/ROOT/pages/Configuration.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -163,6 +163,14 @@ ________________________________________________________________________________

*Default*: `undefined`

==== 404 Page

`components.page404` _optional_

You can provide a component that will be used when no matching route could be found.

*Default*: `undefined`

==== CustomRoutes

`customRoutes` _optional_
Expand Down
3 changes: 2 additions & 1 deletion fsxa.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,8 @@ export default {
layouts: '~/components/fsxa/layouts',
richtext: '~/components/fsxa/richtext',
appLayout: '~/components/fsxa/AppLayout',
loader: '~/components/fsxa/Loader'
loader: '~/components/fsxa/Loader',
page404: '~/components/fsxa/Page404'
},
customRoutes: '~/customRoutes'
}

0 comments on commit 8c84877

Please sign in to comment.