-
-
Notifications
You must be signed in to change notification settings - Fork 50
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' of https://github.com/pjonatansr/ccsseraphini
- Loading branch information
Showing
17 changed files
with
386 additions
and
234 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,89 @@ | ||
import { ChakraNextLinkButton } from '../components/ChakraNextLinkButton'; | ||
import { Flex, Image, Heading, Text } from '@chakra-ui/react'; | ||
import { FaHome } from 'react-icons/fa'; | ||
|
||
type Props = { | ||
errorCode: string; | ||
message: string; | ||
}; | ||
export const Error = ({ errorCode, message }: Props) => { | ||
return ( | ||
<Flex | ||
flex={1} | ||
maxW={'100%'} | ||
height="100vh" | ||
alignItems="center" | ||
justifyContent="center" | ||
flexDirection="column" | ||
pb="10px" | ||
style={{ | ||
backgroundColor: '#e5e5f7', | ||
opacity: '0.8', | ||
backgroundImage: | ||
'linear-gradient(#444cf7 1px, transparent 1px), linear-gradient(to right, #444cf7 1px, #e5e5f7 1px)', | ||
backgroundSize: '20px 20px', | ||
}} | ||
> | ||
<Flex | ||
alignItems="center" | ||
flexDirection="column" | ||
px={'12px'} | ||
style={{ | ||
width: '100%', | ||
position: 'sticky', | ||
top: '0', | ||
}} | ||
> | ||
<Flex | ||
borderWidth="1px" | ||
borderColor="gray.500" | ||
borderRadius="lg" | ||
overflow="hidden" | ||
p="7" | ||
flexDirection="column" | ||
bg="white" | ||
width={'100%'} | ||
maxW={'fit-content'} | ||
minW={{ md: 'unset', base: 'calc(100vw - 24px)' }} | ||
alignItems="center" | ||
paddingTop="55px" | ||
> | ||
<Image | ||
borderRadius="full" | ||
boxSize="100px" | ||
objectFit="cover" | ||
src="https://unavatar.io/twitter/sseraphini" | ||
alt="Sibelius Seraphini" | ||
m="3" | ||
position="absolute" | ||
top="-33%" | ||
/> | ||
<Heading | ||
as="h1" | ||
size="2xl" | ||
marginBottom="7px" | ||
background="linear-gradient(130deg, #ED964A, #D78742)" | ||
backgroundClip="text" | ||
textColor="transparent" | ||
> | ||
{errorCode} | ||
</Heading> | ||
<Text fontSize="xl" marginBottom="5px"> | ||
{message} | ||
</Text> | ||
<ChakraNextLinkButton | ||
href="/" | ||
backgroundColor="#3940CC" | ||
textColor="white" | ||
_hover={{ bg: '#2B3099' }} | ||
leftIcon={<FaHome />} | ||
width="100%" | ||
size="sm" | ||
> | ||
Back to Home | ||
</ChakraNextLinkButton> | ||
</Flex> | ||
</Flex> | ||
</Flex> | ||
); | ||
}; |
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
Oops, something went wrong.