Skip to content

Commit

Permalink
Merge pull request #172 from alephium/banxa-callback
Browse files Browse the repository at this point in the history
Create Banxa callback page and fix 404 page
  • Loading branch information
mvaivre authored Sep 20, 2024
2 parents 94187c7 + b554f0e commit 4e8b8e6
Show file tree
Hide file tree
Showing 4 changed files with 49 additions and 8 deletions.
6 changes: 6 additions & 0 deletions .github/broken-link-check-config.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,12 @@
},
{
"pattern": "^https://github.com/alephium/community/blob/master/Grant%26RewardProgram.md"
},
{
"pattern": "^https://www.reddit.com/r/Alephium"
},
{
"pattern": "^https://alephium.myspreadshop.ch"
}
]
}
21 changes: 13 additions & 8 deletions src/pages/404.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,39 +4,40 @@ import { Link } from 'gatsby'
import GlobalStyle from '../styles/global-style'
import { darkTheme } from '../styles/themes'

import HeroContentWrapper from '../components/Hero/HeroContentWrapper'
import HeroPageSectionContainer from '../components/Hero/HeroPageSectionContainer'
import NavigationMenu from '../components/NavigationMenu'
import TextSnippet from '../components/TextSnippet'

import HeroLogo from '../components/Hero/HeroLogo'
import HeroImage from '../components/Hero/HeroImage'
import PageSectionContainer from '../components/PageSectionContainer'

const NotFoundPage = () => (
<ThemeProvider theme={darkTheme}>
<GlobalStyle />
<main>
<main style={{ height: '100vh' }}>
<HeroImage layer="back" slide={0} parallaxSpeed={12} />
<HeroImage layer="middle" slide={0} parallaxSpeed={8} />
<HeroImage layer="front" slide={0} parallaxSpeed={2} />
<HeroPageSectionContainer>
<PageSectionContainer>
<div className="navigation-menu-wrapper">
<NavigationMenu />
</div>
<HeroContentWrapper>
<CenteredContainer>
<div className="contents">
<HeroLogo gradientIndex={0} />
<h1>404 - Page not found</h1>
<TextSnippetStyled bigText>
Let&apos;s go back to the <Link to="/">home page</Link>.
</TextSnippetStyled>
</div>
</HeroContentWrapper>
</HeroPageSectionContainer>
</CenteredContainer>
</PageSectionContainer>
</main>
</ThemeProvider>
)

export default NotFoundPage

const TextSnippetStyled = styled(TextSnippet)`
color: ${({ theme }) => theme.textTertiary};
Expand All @@ -46,4 +47,8 @@ const TextSnippetStyled = styled(TextSnippet)`
}
`

export default NotFoundPage
const CenteredContainer = styled.div`
display: flex;
align-items: center;
height: 100%;
`
27 changes: 27 additions & 0 deletions src/pages/banxa-callback.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
import styled, { ThemeProvider } from 'styled-components'

import GlobalStyle from '../styles/global-style'
import { darkTheme } from '../styles/themes'

import PageSectionContainer from '../components/PageSectionContainer'

const BanxaCallbackPage = () => (
<ThemeProvider theme={darkTheme}>
<GlobalStyle />
<main style={{ height: '100vh' }}>
<PageSectionContainerStyled>
<div className="contents">
<h1>Returning to your wallet...</h1>
</div>
</PageSectionContainerStyled>
</main>
</ThemeProvider>
)

export default BanxaCallbackPage

const PageSectionContainerStyled = styled(PageSectionContainer)`
display: flex;
align-items: center;
justify-content: center;
`
3 changes: 3 additions & 0 deletions static/robots.txt
Original file line number Diff line number Diff line change
@@ -1,2 +1,5 @@
User-agent: *
Disallow: /cmc-application-proof.txt

User-agent: *
Disallow: /banxa-callback

0 comments on commit 4e8b8e6

Please sign in to comment.