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
feat(404 Page, Empty State): Implement 404 page and empty state in marketplace #46
Merged
flashburst
merged 5 commits into
neptune-mutual-blue:main
from
srmasharad:404-empty-state
Apr 18, 2023
Merged
Changes from all commits
Commits
Show all changes
5 commits
Select commit
Hold shift + click to select a range
9943831
feat(404 Page, Empty State): Implement 404 page and empty state in ma…
srmasharad 730b709
fix(404): Implemented 404 page on marketplace page
srmasharad 5782e16
feat(Add API): Implement API on milestones and show siblings count
srmasharad 9253dc5
fix(Check Account): check account and fetch milestones data
srmasharad ddc2eab
feat(Info): implement info when wallet is not connected
srmasharad File filter
Filter by extension
Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
There are no files selected for viewing
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
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,12 @@ | ||
import { Icon } from '@/elements/Icon' | ||
|
||
const AlertInfo = () => { | ||
return ( | ||
<div className='alert default'> | ||
<Icon variant='info-circle' size='lg' /> | ||
<span>Please connect your wallet to view milestones and minting levels.</span> | ||
</div> | ||
) | ||
} | ||
|
||
export default AlertInfo |
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,21 @@ | ||
@use "../../design-system/colors"; | ||
@use "../../design-system/typography/styles"; | ||
@use "../../design-system/typography/weights"; | ||
|
||
.alert { | ||
display: flex; | ||
padding: 8px 12px; | ||
border-radius: 8px; | ||
color: colors.$base-white; | ||
align-items: center; | ||
gap: 4px; | ||
|
||
span { | ||
@include styles.text-md; | ||
@include weights.regular; | ||
} | ||
|
||
&.default { | ||
background: colors.$gray-900; | ||
} | ||
} |
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
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,35 @@ | ||
import Seo from '@/components/Seo/Seo' | ||
import { BaseLayout } from '@/layouts/BaseLayout' | ||
import { resourcesVideoData } from '@/service/video-api' | ||
import Error404 from '@/views/404' | ||
|
||
export async function getStaticProps () { | ||
const videoData = await resourcesVideoData() | ||
|
||
return { | ||
props: { | ||
videos: videoData | ||
}, | ||
revalidate: 60 * 60 // one hour | ||
} | ||
} | ||
|
||
const PageNotFound = (props) => { | ||
return ( | ||
<> | ||
<Seo | ||
ogURL='/404' | ||
title='Page Not Found / Neptune Mutual' | ||
ogImage='/assets/images/meta/home.png' | ||
ogImageAlt='Neptune Mutual NFT 404' | ||
description='The page you requested either does not exist or has been deleted' | ||
/> | ||
|
||
<BaseLayout videos={props.videos}> | ||
<Error404 /> | ||
</BaseLayout> | ||
</> | ||
) | ||
} | ||
|
||
export default PageNotFound |
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 @@ | ||
@import "../views/404.scss"; |
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
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,24 @@ | ||
import { Button } from '@/components/Button/Button' | ||
|
||
const Error404 = () => { | ||
return ( | ||
<div className='pagenotfound page'> | ||
<div className='inner container'> | ||
<h2>404 Error</h2> | ||
<h1>Page Not Found</h1> | ||
<p>Sorry, the page you are looking for doesn’t exist or has been moved.</p> | ||
</div> | ||
<Button | ||
type='anchor' | ||
variant='primary' | ||
size='xl' | ||
href='/' | ||
iconTrailing='arrow-narrow-right' | ||
> | ||
Take me to homepage | ||
</Button> | ||
</div> | ||
) | ||
} | ||
|
||
export default Error404 |
Oops, something went wrong.
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why footer is not there is 404 route?
@flashburst Sharad says it wasn't there in design.