mirror of
https://github.com/Stone-Red-Code/website.git
synced 2026-09-04 09:15:58 +02:00
ui(404): improve 404 page styling
This commit is contained in:
committed by
Jean-Philippe Sirois
parent
2f81f5778b
commit
fadb031f70
@@ -95,11 +95,14 @@ export const PossibleCorrections: FC<IPossibleCorrections> = ({
|
||||
})
|
||||
|
||||
// helpful message if no matches found
|
||||
const found = displayArray.length === 0 ? "Oops, nothing similar found." : ""
|
||||
const found = displayArray.length === 0 ? <SC.StyledFound>Oops, nothing similar found.</SC.StyledFound> : ""
|
||||
|
||||
return (
|
||||
<Fragment>
|
||||
<h3>Based off of "{search}" you may have meant:</h3>
|
||||
<SC.StyledDiv>
|
||||
<h3>Based off of "{search}" you may have meant:</h3>
|
||||
{found}
|
||||
</SC.StyledDiv>
|
||||
<ul>
|
||||
{displayArray.map((value, index) => {
|
||||
return (
|
||||
@@ -111,7 +114,6 @@ export const PossibleCorrections: FC<IPossibleCorrections> = ({
|
||||
)
|
||||
})}
|
||||
</ul>
|
||||
{found}
|
||||
</Fragment>
|
||||
)
|
||||
}
|
||||
|
||||
@@ -14,3 +14,13 @@ export const StyledLink = styled(Link)`
|
||||
transition: none;
|
||||
}
|
||||
`
|
||||
export const StyledFound = styled.div`
|
||||
margin: 13px 10px 10px;
|
||||
padding: 10px;
|
||||
`
|
||||
export const StyledDiv = styled.div`
|
||||
width: 100%;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
`
|
||||
Reference in New Issue
Block a user