-
Notifications
You must be signed in to change notification settings - Fork 11
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 #1462 from appknox/page-not-found-fix
page not found refactor
- Loading branch information
Showing
7 changed files
with
90 additions
and
12 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
<AkStack | ||
local-class='page-not-found-container' | ||
@width='full' | ||
@alignItems='center' | ||
@justifyContent='center' | ||
> | ||
<AkStack | ||
local-class='page-not-found-card' | ||
@direction='column' | ||
@alignItems='center' | ||
@justifyContent='center' | ||
@spacing='6' | ||
> | ||
<AkStack | ||
@alignItems='center' | ||
@justifyContent='center' | ||
@width='full' | ||
local-class='logo-container' | ||
> | ||
<AuthAssets /> | ||
</AkStack> | ||
|
||
<AkSvg::NoResult /> | ||
|
||
<AkStack | ||
@direction='column' | ||
@alignItems='center' | ||
@justifyContent='center' | ||
@spacing='2' | ||
> | ||
<AkTypography @variant='h5'> | ||
{{t 'pageNotFound'}} | ||
</AkTypography> | ||
|
||
<AkLink @route='authenticated.index' @replace={{true}}> | ||
<AkButton> | ||
<:leftIcon> | ||
<AkIcon @iconName='home' /> | ||
</:leftIcon> | ||
|
||
<:default>{{t 'gotoHome'}}</:default> | ||
</AkButton> | ||
</AkLink> | ||
</AkStack> | ||
</AkStack> | ||
</AkStack> |
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,23 @@ | ||
.page-not-found-card { | ||
background-color: var(--page-not-found-card-background-color); | ||
border-radius: var(--page-not-found-card-border-radius); | ||
border: 1px solid var(--page-not-found-card-border-color); | ||
box-shadow: var(--page-not-found-card-box-shadow); | ||
min-width: 32em; | ||
padding-bottom: 2em; | ||
} | ||
|
||
.page-not-found-container { | ||
height: 100vh; | ||
background-color: var(--page-not-found-container-background-color); | ||
} | ||
|
||
.logo-container { | ||
padding: 1.5em 0em 1em 0em; | ||
border-bottom: 1px solid var(--page-not-found-border-color); | ||
|
||
img { | ||
max-width: 12em; | ||
max-height: 7em; | ||
} | ||
} |
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,9 @@ | ||
import Component from '@glimmer/component'; | ||
|
||
export default class PageNotFoundComponent extends Component {} | ||
|
||
declare module '@glint/environment-ember-loose/registry' { | ||
export default interface Registry { | ||
PageNotFound: typeof 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
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,13 +1,3 @@ | ||
{{page-title "Not Found"}} | ||
{{page-title 'Not Found'}} | ||
|
||
<div class="error-page"> | ||
<h1>404</h1> | ||
<h2>{{t "pageNotFound"}}</h2> | ||
<div> | ||
<LinkTo @route="authenticated.index" class="button is-primary"> | ||
<AkIcon @iconName="home" @size="small" /> | ||
| ||
{{t "gotoHome"}} | ||
</LinkTo> | ||
</div> | ||
</div> | ||
<PageNotFound /> |