mirror of
https://github.com/Stone-Red-Code/website.git
synced 2026-09-07 07:56:12 +02:00
ui(404): improve styling of 404 page
This commit is contained in:
@@ -95,13 +95,13 @@ export const PossibleCorrections: FC<IPossibleCorrections> = ({
|
|||||||
})
|
})
|
||||||
|
|
||||||
// helpful message if no matches found
|
// helpful message if no matches found
|
||||||
const found = displayArray.length === 0 ? <SC.StyledFound>Oops, nothing similar found.</SC.StyledFound> : ""
|
const found = displayArray.length === 0 && "Oops, nothing similar found."
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<Fragment>
|
<Fragment>
|
||||||
<SC.StyledDiv>
|
<SC.StyledDiv>
|
||||||
<h3>Based off of "{search}" you may have meant:</h3>
|
<h3>Based off of "{search}" you may have meant:</h3>
|
||||||
{found}
|
{found}
|
||||||
</SC.StyledDiv>
|
</SC.StyledDiv>
|
||||||
<ul>
|
<ul>
|
||||||
{displayArray.map((value, index) => {
|
{displayArray.map((value, index) => {
|
||||||
|
|||||||
@@ -14,13 +14,11 @@ export const StyledLink = styled(Link)`
|
|||||||
transition: none;
|
transition: none;
|
||||||
}
|
}
|
||||||
`
|
`
|
||||||
export const StyledFound = styled.div`
|
|
||||||
margin: 13px 10px 10px;
|
|
||||||
padding: 10px;
|
|
||||||
`
|
|
||||||
export const StyledDiv = styled.div`
|
export const StyledDiv = styled.div`
|
||||||
width: 100%;
|
width: 100%;
|
||||||
display: flex;
|
display: flex;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
justify-content: center;
|
justify-content: center;
|
||||||
|
flex-direction: column;
|
||||||
`
|
`
|
||||||
@@ -7,14 +7,13 @@ interface IPossibleCorrections {
|
|||||||
|
|
||||||
export const FourZeroFour: FC<IPossibleCorrections> = ({ children }) => {
|
export const FourZeroFour: FC<IPossibleCorrections> = ({ children }) => {
|
||||||
return (
|
return (
|
||||||
<Fragment>
|
<SC.Wrapper>
|
||||||
<SC.Wrapper>
|
<SC.Title>NOT FOUND</SC.Title>
|
||||||
<SC.Title>NOT FOUND</SC.Title>
|
<SC.Text>
|
||||||
<SC.Text>
|
You just hit a route that doesn't exist... the sadness.
|
||||||
You just hit a route that doesn't exist... the sadness.
|
</SC.Text>
|
||||||
</SC.Text>
|
{children && <SC.Spacer />}
|
||||||
</SC.Wrapper>
|
|
||||||
{children}
|
{children}
|
||||||
</Fragment>
|
</SC.Wrapper>
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,6 +1,7 @@
|
|||||||
import styled from "styled-components"
|
import styled from "styled-components"
|
||||||
|
|
||||||
export const Wrapper = styled.div`
|
export const Wrapper = styled.div`
|
||||||
|
width: 100%;
|
||||||
padding: 100px 20px 20px 20px;
|
padding: 100px 20px 20px 20px;
|
||||||
display: flex;
|
display: flex;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
@@ -19,3 +20,7 @@ export const Text = styled.p`
|
|||||||
padding: 10px;
|
padding: 10px;
|
||||||
line-height: 2rem;
|
line-height: 2rem;
|
||||||
`
|
`
|
||||||
|
|
||||||
|
export const Spacer = styled.div`
|
||||||
|
height: 32px;
|
||||||
|
`
|
||||||
|
|||||||
Reference in New Issue
Block a user