-
Notifications
You must be signed in to change notification settings - Fork 7
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 #27 from OrdinalNews/fix/recent-news
Update recent news layout
- Loading branch information
Showing
15 changed files
with
346 additions
and
223 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
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,18 +1,35 @@ | ||
import { Container, Heading, Text } from '@chakra-ui/react'; | ||
import { Box, Container, Heading, Image, Text } from '@chakra-ui/react'; | ||
import { Link, useLocation } from 'react-router-dom'; | ||
|
||
export default function Root404() { | ||
const location = useLocation(); | ||
return ( | ||
<Container borderRadius="xl"> | ||
<Box | ||
display="flex" | ||
flexDir="column" | ||
alignItems="center" | ||
justifyContent="center" | ||
textAlign="center" | ||
w="100%" | ||
minH="100vh" | ||
py={8} | ||
px={4} | ||
> | ||
<Image | ||
boxSize="150px" | ||
margin="0 auto" | ||
src="/ordinal-news-logo.png" | ||
alt="Ordinal News Logo" | ||
mb={4} | ||
/> | ||
<Heading>404 - not found!</Heading> | ||
<Text>We couldn't find that page.</Text> | ||
<br /> | ||
<Text>Current location: {location.pathname}</Text> | ||
<br /> | ||
<Text> | ||
Please try a different page or <Link to="/">click this link to return home.</Link> | ||
</Text> | ||
<br /> | ||
<Text>Current location: {location.pathname}</Text> | ||
</Container> | ||
</Box> | ||
); | ||
} |
Oops, something went wrong.