-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* feat: 내 스터디 카드 컴포넌트 생성 Co-authored-by: TaeYoon <[email protected]> * feat: 내 스터디 조회 페이지 생성 Co-authored-by: TaeYoon <[email protected]> * refactor: 파일 이름 변경 Co-authored-by: TaeYoon <[email protected]> * feat: 내 스터디 페이지로 가는 링크 생성 Co-authored-by: TaeYoon <[email protected]> * fix: storybook 수정 Co-authored-by: TaeYoon <[email protected]> * refactor: 사용하지 않는 파일 삭제 Co-authored-by: TaeYoon <[email protected]> * refactor: Divider 색깔 수정 Co-authored-by: TaeYoon <[email protected]> Co-authored-by: TaeYoon <[email protected]>
- Loading branch information
1 parent
cdeb842
commit 4e7fd77
Showing
45 changed files
with
1,528 additions
and
146 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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,2 +1,2 @@ | ||
API_URL="http://52.79.214.158:8080" | ||
API_URL="" | ||
CLIENT_ID="cb83d95cd5644436b090" |
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,6 @@ | ||
import axiosInstance from '@api/axiosInstance'; | ||
|
||
export const getMyStudyList = async () => { | ||
const response = await axiosInstance.get(`/api/my/studies`); | ||
return response.data; | ||
}; |
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 |
---|---|---|
@@ -1,13 +1,14 @@ | ||
import { Story } from '@storybook/react'; | ||
|
||
import Header from '@layout/header/Header'; | ||
import type { HeaderProps } from '@layout/header/Header'; | ||
|
||
export default { | ||
title: 'Components/Header', | ||
component: Header, | ||
}; | ||
|
||
const Template: Story = props => <Header {...props} />; | ||
const Template: Story<HeaderProps> = props => <Header {...props} />; | ||
|
||
export const Default = Template.bind({}); | ||
Default.args = {}; |
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
34 changes: 34 additions & 0 deletions
34
frontend/src/layout/header/components/drop-down-box/DropDownBox.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 |
---|---|---|
@@ -0,0 +1,34 @@ | ||
import { Story } from '@storybook/react'; | ||
import { useState } from 'react'; | ||
|
||
import DropDownBox from '@layout/header/components/drop-down-box/DropDownBox'; | ||
import type { DropDownBoxProps } from '@layout/header/components/drop-down-box/DropDownBox'; | ||
|
||
export default { | ||
title: 'Components/DropDownBox', | ||
component: DropDownBox, | ||
argTypes: { | ||
children: { controls: 'text' }, | ||
top: { controls: 'text' }, | ||
right: { controls: 'text' }, | ||
left: { controls: 'text' }, | ||
bottom: { controls: 'text' }, | ||
}, | ||
}; | ||
|
||
const Template: Story<DropDownBoxProps> = props => { | ||
const [isOpen, setIsOpen] = useState(false); | ||
return ( | ||
<div> | ||
<button onClick={() => setIsOpen(prev => !prev)}>드롭박스 열기</button> | ||
{isOpen && <DropDownBox {...props} onOutOfBoxClick={() => setIsOpen(false)} />} | ||
</div> | ||
); | ||
}; | ||
|
||
export const Default = Template.bind({}); | ||
Default.args = { | ||
children: 'hihi', | ||
top: '40px', | ||
left: '15px', | ||
}; |
30 changes: 30 additions & 0 deletions
30
frontend/src/layout/header/components/drop-down-box/DropDownBox.style.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 |
---|---|---|
@@ -0,0 +1,30 @@ | ||
import { css } from '@emotion/react'; | ||
import styled from '@emotion/styled'; | ||
|
||
import type { DropDownBoxProps } from '@layout/header/components/drop-down-box/DropDownBox'; | ||
|
||
export const DropDownBoxContainer = styled.div` | ||
position: fixed; | ||
top: 0; | ||
left: 0; | ||
background: trnasparent; | ||
height: 100%; | ||
width: 100vw; | ||
`; | ||
|
||
export const DropDownBox = styled.div<Pick<DropDownBoxProps, 'top' | 'bottom' | 'left' | 'right'>>` | ||
${({ theme, top, bottom, left, right }) => css` | ||
position: absolute; | ||
white-space: nowrap; | ||
${top && `top: ${top};`} | ||
${bottom && `bottom: ${bottom};`} | ||
${left && `left: ${left};`} | ||
${right && `right: ${right};`} | ||
padding: 16px; | ||
border: 1px solid ${theme.colors.secondary.dark}; | ||
border-radius: 5px; | ||
background-color: ${theme.colors.secondary.light}; | ||
z-index: 3; | ||
`} | ||
`; |
Oops, something went wrong.