-
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.
Merge branch 'develop' of https://github.com/Team-Tiki/TIKI_CLIENT in…
…to feature/showcase/#47-Club-Profile-Card
- Loading branch information
Showing
20 changed files
with
198 additions
and
66 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,34 @@ | ||
import App from '@/App'; | ||
|
||
import { RouterProvider, createBrowserRouter } from 'react-router-dom'; | ||
|
||
const router = createBrowserRouter([ | ||
{ | ||
path: '/', | ||
element: <App />, | ||
children: [ | ||
{ path: 'showcase', element: <p>showcase</p> }, | ||
{ path: 'archiving', element: <p>archiving</p> }, | ||
{ | ||
path: 'signin', | ||
element: <p>terms</p>, | ||
}, | ||
{ | ||
path: 'signin/info', | ||
element: <p>info</p>, | ||
}, | ||
{ | ||
path: 'password/auth', | ||
element: <p>인증</p>, | ||
}, | ||
{ | ||
path: 'password/reset', | ||
element: <p>재설정</p>, | ||
}, | ||
], | ||
}, | ||
]); | ||
|
||
export const AppRouter = () => { | ||
return <RouterProvider router={router} />; | ||
}; |
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
21 changes: 11 additions & 10 deletions
21
src/page/archiving/component/DaySection/DaySection.style.ts
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,17 @@ | ||
import { bodyStyle, dayStyle } from './DaySection.style'; | ||
|
||
interface DaySectionProps { | ||
day: number; | ||
isClicked: boolean; | ||
} | ||
|
||
const DaySection = ({ day, isClicked }: DaySectionProps) => { | ||
return ( | ||
<> | ||
<button css={dayStyle(isClicked)}>{day}</button> | ||
<div css={bodyStyle} /> | ||
</> | ||
); | ||
}; | ||
|
||
export default DaySection; |
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,32 @@ | ||
import { css } from '@emotion/react'; | ||
|
||
import { theme } from '@/common/style/theme/theme'; | ||
|
||
export const blockStyle = (width: number) => | ||
css({ | ||
display: 'flex', | ||
|
||
width: `${width}rem`, | ||
height: '5.6rem', | ||
padding: '0.5rem', | ||
justifyContent: 'center', | ||
alignItems: 'center', | ||
|
||
borderRadius: '100px', | ||
|
||
backgroundColor: theme.colors.blue_100, | ||
...theme.text.body03, | ||
|
||
overflow: 'hidden', | ||
textOverflow: 'ellipsis', | ||
whiteSpace: 'nowrap', | ||
}); | ||
|
||
export const spanStyle = { | ||
padding: '2rem 0.8rem', | ||
marginRight: 'auto', | ||
|
||
overflow: 'hidden', | ||
textOverflow: 'ellipsis', | ||
whiteSpace: 'nowrap', | ||
}; |
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,23 @@ | ||
import { blockStyle, spanStyle } from '@/page/archiving/component/TimeBlock/TimeBlock.style'; | ||
|
||
import { ReactNode } from 'react'; | ||
|
||
import Eclipse from '@/common/asset/svg/eclipse.svg?react'; | ||
|
||
interface TimeBlockProps { | ||
children: ReactNode; | ||
width: number; | ||
} | ||
|
||
const TimeBlock = ({ children, width }: TimeBlockProps) => { | ||
return ( | ||
<> | ||
<div css={blockStyle(width)}> | ||
<Eclipse width={47} height={47} css={{ flexShrink: 0 }} /> | ||
<span css={spanStyle}>{children}</span> | ||
</div> | ||
</> | ||
); | ||
}; | ||
|
||
export default TimeBlock; |
2 changes: 1 addition & 1 deletion
2
src/page/archiving/constant/date.ts → src/page/archiving/constant/month.ts
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 @@ | ||
export const months = ['1월', '2월', '3월', '4월', '5월', '6월', '7월', '8월', '9월', '10월', '11월', '12월'] as const; | ||
export const MONTHS = ['1월', '2월', '3월', '4월', '5월', '6월', '7월', '8월', '9월', '10월', '11월', '12월'] as const; |
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.