Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. Weโ€™ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

๐Ÿ’„ style : favorites ํŽ˜์ด์ง€ ์Šคํƒ€์ผ๋ง #99

Merged
merged 2 commits into from
Dec 17, 2021
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
47 changes: 42 additions & 5 deletions src/components/domain/Favorites/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import Spacer from "@components/base/Spacer";
import Link from "next/link";
import { NextPage } from "next";
import styled from "@emotion/styled";

import { Button, Icon, Image, Text } from "@components/base";
import { useNavigationContext } from "@contexts/hooks";
import CourtItem from "../CourtItem";

Expand Down Expand Up @@ -56,12 +56,24 @@ const Favorites: NextPage = () => {

if (basketballCourts.length === 0) {
return (
<Spacer gap="base">
<div>์ฆ๊ฒจ์ฐพ๋Š” ๋†๊ตฌ์žฅ์ด ์—†์œผ์‹œ๋„ค์š”?</div>
<WrapperSpacer gap="base" type="vertical">
<Image
width={200}
height={200}
mode="contain"
src="assets/basketball/animation_off_400.png"
></Image>
<Text size="md">์ฆ๊ฒจ์ฐพ๋Š” ๋†๊ตฌ์žฅ์ด ์—†์œผ์‹œ๋„ค์š”? ๐Ÿค”</Text>
<TextGray size="xs">
๋†๊ตฌ์žฅ์„ ์ฆ๊ฒจ์ฐพ๊ธฐํ•˜์‹œ๋ฉด ๋” ๋น ๋ฅด๊ฒŒ ์˜ˆ์•ฝํ•˜์‹ค ์ˆ˜ ์žˆ์–ด์š”
</TextGray>
<Link href="/courts">
<button>๋‚ด ์ฃผ๋ณ€ ๋†๊ตฌ์žฅ ์ฐพ๊ธฐ</button>
<SearchButton fullWidth>
<SearchIcon name="compass" size="sm" color="white"></SearchIcon>๋‚ด
์ฃผ๋ณ€ ๋†๊ตฌ์žฅ ์ฐพ๊ธฐ
</SearchButton>
</Link>
</Spacer>
</WrapperSpacer>
);
}

Expand All @@ -84,6 +96,9 @@ const Favorites: NextPage = () => {
courtName={courtName}
/>
</Actions>
<Link href="/">
<LinkButton size="md">์˜ˆ์•ฝํ•˜๋Ÿฌ ๊ฐ€๊ธฐ</LinkButton>
</Link>
</FavoriteItem>
)
)}
Expand All @@ -101,4 +116,26 @@ const FavoriteItem = styled.div`
padding: 20px;
`;

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)`
align-items: center;
`;

const LinkButton = styled(Button)`
width: 225px;
margin-top: 8px;
`;
export default Favorites;