-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(web): migrate chakra's Box, Text, Spinner, Stack, VStack, HStack …
…to @jsxcss/emotion
- Loading branch information
Showing
42 changed files
with
917 additions
and
578 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
import { css } from '@emotion/react' | ||
import { Box, Flex } from '@jsxcss/emotion' | ||
|
||
export const Spinner = () => ( | ||
<Flex.Center position="relative" width={20} height={20}> | ||
<Box | ||
position="absolute" | ||
width={20} | ||
height={20} | ||
boxSizing="border-box" | ||
border="2px solid transparent" | ||
borderRadius="50%" | ||
borderTopColor="black" | ||
borderBottomColor="black" | ||
borderLeftColor="black" | ||
margin="-10px 0 0 -10px" | ||
top="50%" | ||
left="50%" | ||
css={css` | ||
animation: spinner 0.4s linear infinite; | ||
@keyframes spinner { | ||
from { | ||
transform: rotate(0deg); | ||
} | ||
to { | ||
transform: rotate(360deg); | ||
} | ||
} | ||
`} | ||
/> | ||
</Flex.Center> | ||
) |
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 +1,2 @@ | ||
export { default as OpenGraph } from './OpenGraph' | ||
export { Spinner } from './Spinner' |
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,27 +1,27 @@ | ||
import Image from 'next/image' | ||
import Link from 'next/link' | ||
import { Text, VStack } from '@chakra-ui/react' | ||
import { Box, Stack } from '@jsxcss/emotion' | ||
import { Button, Icon } from '~/components/uis' | ||
|
||
interface Props { | ||
title: string | ||
} | ||
|
||
const ErrorMessage = ({ title }: Props) => ( | ||
<VStack> | ||
<VStack spacing="0"> | ||
<Stack.Vertical align="center"> | ||
<Stack.Vertical align="center" spacing={0}> | ||
<Image src="/assets/error.svg" alt="error" width={60} height={60} /> | ||
<Text fontSize="lg">{title}</Text> | ||
</VStack> | ||
<Box fontSize={20}>{title}</Box> | ||
</Stack.Vertical> | ||
|
||
<Link href="/map" passHref> | ||
<Button size="lg"> | ||
<Icon name="map" size="sm" color="white" /> | ||
지도에서 내 주변 농구장 찾기 | ||
</Button> | ||
</Link> | ||
<Text fontSize="sm">내 주변 농구장을 찾으러 가보는 건 어떨까요?</Text> | ||
</VStack> | ||
<Box fontSize={16}>내 주변 농구장을 찾으러 가보는 건 어떨까요?</Box> | ||
</Stack.Vertical> | ||
) | ||
|
||
export default ErrorMessage |
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.
7e6e367
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Successfully deployed to the following URLs:
web – ./
www.slams.app
web-git-main-slam.vercel.app
slams.app
web-slam.vercel.app