-
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.
Merge pull request #130 from ttaerrim/mogaco
[Design] 모각코 리스트 뷰 퍼블리싱
- Loading branch information
Showing
16 changed files
with
177 additions
and
19 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
import { style } from '@vanilla-extract/css'; | ||
|
||
export const container = style({ | ||
display: 'flex', | ||
flexDirection: 'column', | ||
gap: '2rem', | ||
}); |
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,57 @@ | ||
import * as styles from './MogacoList.css'; | ||
import { MogacoItem } from '../commons/MogacoItem'; | ||
|
||
export function MogacoList() { | ||
const MOGACO_ITEM = [ | ||
{ | ||
id: 1, | ||
title: '사당역 모각코', | ||
group: '부스트캠프 웹 모바일 8기', | ||
detail: | ||
'사당역에서 부스트캠프 모락 팀이 모입니다 사당역에서 부스트캠프 모락 팀이 모입니다 사당역에서 부스트캠프 모락 팀이 모입니다 사당역에서 부스트캠프 모락 팀이 모입니다 사당역에서 부스트캠프 모락 팀이 모입니다 사당역에서 부스트캠프 모락 팀이 모입니다 사당역에서 부스트캠프 모락 팀이 모입니다 사당역에서 부스트캠프 모락 팀이 모입니다 사당역에서 부스트캠프 모락 팀이 모입니다 사당역에서 부스트캠프 모락 팀이 모입니다 ', | ||
people: 2, | ||
maxPeople: 5, | ||
location: '서울 관악구 어디길 22 모락 카페', | ||
date: '2022-02-02', | ||
}, | ||
{ | ||
id: 1, | ||
title: '사당역 모각코', | ||
group: '부스트캠프 웹 모바일 8기', | ||
detail: '사당역에서 부스트캠프 모락 팀이 모입니다', | ||
people: 2, | ||
maxPeople: 5, | ||
location: '서울 관악구 어디길 22 모락 카페', | ||
date: '2022-02-02', | ||
}, | ||
{ | ||
id: 1, | ||
title: '사당역 모각코', | ||
group: '부스트캠프 웹 모바일 8기', | ||
detail: '사당역에서 부스트캠프 모락 팀이 모입니다', | ||
people: 2, | ||
maxPeople: 5, | ||
location: '서울 관악구 어디길 22 모락 카페', | ||
date: '2022-02-02', | ||
}, | ||
]; | ||
return ( | ||
<div className={styles.container}> | ||
{MOGACO_ITEM.map( | ||
({ id, title, group, detail, people, maxPeople, location, date }) => ( | ||
<MogacoItem | ||
key={id} | ||
id={id} | ||
title={title} | ||
group={group} | ||
detail={detail} | ||
people={people} | ||
maxPeople={maxPeople} | ||
location={location} | ||
date={date} | ||
/> | ||
), | ||
)} | ||
</div> | ||
); | ||
} |
39 changes: 39 additions & 0 deletions
39
app/frontend/src/components/Mogaco/MogacoListHeader.css.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 |
---|---|---|
@@ -0,0 +1,39 @@ | ||
import { globalStyle, style } from '@vanilla-extract/css'; | ||
|
||
import { vars } from '@/styles'; | ||
import { sansBold16, sansRegular16 } from '@/styles/font.css'; | ||
|
||
export const container = style({ | ||
display: 'flex', | ||
justifyContent: 'space-between', | ||
alignItems: 'center', | ||
padding: '1rem', | ||
}); | ||
|
||
export const filter = style([ | ||
sansRegular16, | ||
{ | ||
display: 'flex', | ||
gap: '0.8rem', | ||
color: vars.color.grayscale200, | ||
}, | ||
]); | ||
|
||
export const selected = style([ | ||
sansBold16, | ||
{ | ||
selectors: { | ||
[`${filter} &`]: { | ||
color: vars.color.grayscale400, | ||
}, | ||
}, | ||
}, | ||
]); | ||
|
||
globalStyle(`${filter} span`, { | ||
cursor: 'pointer', | ||
}); | ||
|
||
globalStyle(`${filter} span:not(${selected})`, { | ||
cursor: 'not-allowed', | ||
}); |
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 * as styles from './MogacoListHeader.css'; | ||
import { Button } from '../commons/Button'; | ||
|
||
export function MogacoListHeader() { | ||
return ( | ||
<div className={styles.container}> | ||
<div className={styles.filter}> | ||
<span className={styles.selected}>전체</span> | ||
<span>모집 중</span> | ||
<span>모집 마감</span> | ||
</div> | ||
<Button size="medium" type="button" theme="primary" shape="fill"> | ||
글쓰기 | ||
</Button> | ||
</div> | ||
); | ||
} |
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,9 @@ | ||
import { style } from '@vanilla-extract/css'; | ||
|
||
export const container = style({ | ||
display: 'flex', | ||
flexDirection: 'column', | ||
gap: '1.2rem', | ||
maxWidth: '80rem', | ||
margin: '0 auto', | ||
}); |
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,12 @@ | ||
import * as styles from './index.css'; | ||
import { MogacoList } from './MogacoList'; | ||
import { MogacoListHeader } from './MogacoListHeader'; | ||
|
||
export function MogacoPage() { | ||
return ( | ||
<div className={styles.container}> | ||
<MogacoListHeader /> | ||
<MogacoList /> | ||
</div> | ||
); | ||
} |
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,5 @@ | ||
import { MogacoPage } from '@/components'; | ||
|
||
export function Mogaco() { | ||
return <MogacoPage />; | ||
} |
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,2 @@ | ||
export * from './Mogaco'; | ||
export { Main } from './Main'; |
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,3 @@ | ||
export * from './chatting'; | ||
export * from './mogaco'; | ||
export * from './user'; |
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,11 @@ | ||
export type MogacoProps = { | ||
id: number; | ||
disabled?: boolean; | ||
title: string; | ||
group: string; | ||
detail: string; | ||
people: number; | ||
maxPeople: number; | ||
location: string; | ||
date: string; | ||
}; |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.