-
Notifications
You must be signed in to change notification settings - Fork 0
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 #177 from prgrms-web-devcourse/develop
배포
- Loading branch information
Showing
24 changed files
with
271 additions
and
58 deletions.
There are no files selected for viewing
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
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,54 @@ | ||
import { Button, Icon, Image, Spacer, Text } from "@components/base"; | ||
import styled from "@emotion/styled"; | ||
import Link from "next/link"; | ||
import React, { CSSProperties } from "react"; | ||
|
||
interface Props { | ||
title: string; | ||
description: string; | ||
buttonTitle?: string; | ||
style?: CSSProperties; | ||
} | ||
|
||
const ErrorMessage = ({ title, description, buttonTitle, style }: Props) => { | ||
return ( | ||
<WrapperSpacer gap="base" type="vertical" style={style}> | ||
<Image src={"/assets/error.svg"} alt="error" /> | ||
<Spacer gap="xxs" type="vertical" style={{ textAlign: "center" }}> | ||
<Text size="md" block strong> | ||
{title} | ||
</Text> | ||
<TextGray size="xs">{description}</TextGray> | ||
</Spacer> | ||
<Link href="/courts" passHref> | ||
<SearchButton fullWidth> | ||
<SearchIcon name="map" size="sm" color="white" /> | ||
{buttonTitle} | ||
</SearchButton> | ||
</Link> | ||
<div style={{ height: 40 }}></div> | ||
</WrapperSpacer> | ||
); | ||
}; | ||
|
||
export default ErrorMessage; | ||
|
||
const TextGray = styled(Text)` | ||
color: ${({ theme }) => theme.colors.gray500}; | ||
`; | ||
|
||
const SearchButton = styled(Button)` | ||
display: flex; | ||
justify-content: center; | ||
align-items: center; | ||
`; | ||
|
||
const SearchIcon = styled(Icon)` | ||
margin-right: 5px; | ||
`; | ||
|
||
const WrapperSpacer = styled(Spacer)` | ||
height: 80%; | ||
align-items: center; | ||
justify-content: 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
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
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.