-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[#925]
- Loading branch information
Showing
4 changed files
with
71 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
44 changes: 12 additions & 32 deletions
44
frontend/src/components/ui/StationSearchWindow/StationSearchWindow.stories.tsx
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,47 +1,27 @@ | ||
import { ChevronLeftIcon } from '@heroicons/react/24/outline'; | ||
import type { Meta } from '@storybook/react'; | ||
import { css, styled } from 'styled-components'; | ||
import styled from 'styled-components'; | ||
|
||
import Button from '../../common/Button'; | ||
import Text from '../../common/Text'; | ||
import Navigator from '../Navigator'; | ||
import { Default as StationSearchBar } from './StationSearchBar.stories'; | ||
import StationSearchWindow from './StationSearchWindow'; | ||
|
||
const meta = { | ||
title: 'UI/StationSearchWindow', | ||
component: StationSearchWindow, | ||
decorators: [ | ||
(Story) => ( | ||
<Container> | ||
<Story /> | ||
</Container> | ||
), | ||
], | ||
} satisfies Meta<typeof StationSearchWindow>; | ||
|
||
export default meta; | ||
|
||
export const Default = () => { | ||
return ( | ||
<> | ||
<Navigator /> | ||
<S.Container> | ||
<Button variant="label" aria-label="검색창 닫기"> | ||
<ChevronLeftIcon width="2.4rem" stroke="#9c9fa7" /> | ||
</Button> | ||
<StationSearchBar /> | ||
<Text tag="h2" fontSize={1.7} weight="bold" css={labelText}> | ||
주변 충전소 | ||
</Text> | ||
</S.Container> | ||
</> | ||
); | ||
return <StationSearchWindow />; | ||
}; | ||
|
||
const S = { | ||
Container: styled.section` | ||
width: 34rem; | ||
height: 100vh; | ||
background: #fcfcfc; | ||
outline: 1.5px solid #e1e4eb; | ||
padding: 2.8rem 2.2rem 5.2rem; | ||
`, | ||
}; | ||
|
||
const labelText = css` | ||
padding: 3.6rem 0 2.2rem; | ||
const Container = styled.div` | ||
position: absolute; | ||
z-index: 9999; | ||
`; |