-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* feat: apply v2 navigation style and feature * feat: create notification route * refactor: change badge and tag radius value * refactor: unnecessary duplicated theme file deleted, DS 0.5.8 version applied * feat: implement notification section * feat: 알림 갯수 및 글자수에 따라 단축 표현 여부 체크하는 함수 구현 및 적용 * refactor: feed 글쓰러 가기 파트 수정 * refactor: 불필요한 Profile 부분 삭제 * refactor: 축약 Badge 가변 길이 설정토록 업데이트 및 피드에 적용 * refactor: temp commit query string sign up match page * refactor: 프로젝트 매칭 설정 페이지 뼈대 구현 및 이전 form 상태값 유지 * feat: 분야 추가하기 바텀씟 분리 및 적용 * design: 회원가입 프로젝트 매칭 설정 UI 목업 완료 * refactor: wip * API 연동 필요 - 분야 등 * 알림 API 연동 필요
- Loading branch information
1 parent
9d5bd71
commit a7980d5
Showing
34 changed files
with
856 additions
and
495 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
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
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,11 @@ | ||
import { NotificationContainer } from './containers/NotificationContainer'; | ||
|
||
const NotificationPage = () => { | ||
return ( | ||
<div> | ||
<NotificationContainer /> | ||
</div> | ||
); | ||
}; | ||
|
||
export default NotificationPage; |
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,28 @@ | ||
import { Text, theme } from 'concept-be-design-system'; | ||
|
||
interface Props { | ||
isEmpty: boolean; | ||
} | ||
|
||
export const AdditionalText = ({ isEmpty }: Props) => { | ||
const content = isEmpty ? '아직 받은 알림이 없어요!' : '모든 알림을 확인했어요!'; | ||
|
||
return ( | ||
<div | ||
css={{ | ||
width: '100%', | ||
height: '260px', | ||
marginBottom: `${isEmpty ? '0px' : '65px'}`, | ||
paddingTop: `${isEmpty ? '0px' : '42px'}`, | ||
display: 'flex', | ||
alignItems: `${isEmpty ? 'center' : 'start'}`, | ||
justifyContent: 'center', | ||
backgroundColor: theme.color.bg1, | ||
}} | ||
> | ||
<Text font="suit16r" color="b6"> | ||
{content} | ||
</Text> | ||
</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,39 @@ | ||
import { Badge, SVGGoldBell, Text } from 'concept-be-design-system'; | ||
import { useNavigate } from 'react-router-dom'; | ||
import { NotificationDTO } from '../types'; | ||
|
||
export const NotificationItem = ({ feedId, title, createAt, badges }: Omit<NotificationDTO, 'id'>) => { | ||
const navigate = useNavigate(); | ||
|
||
return ( | ||
<div | ||
css={{ padding: 24, borderBottom: '1px solid #E5E5E5', cursor: 'pointer' }} | ||
onClick={() => navigate(`/feed/${feedId}`)} | ||
> | ||
<div css={{ display: 'flex', gap: '8px', alignItems: 'center', marginBottom: 12 }}> | ||
<SVGGoldBell css={{ width: '20px', height: '20px' }} /> | ||
<Text font="suit14sb" color="c1"> | ||
나에게 꼭 맞는 알림 | ||
</Text> | ||
<div css={{ width: '3px', height: '3px', backgroundColor: '#DDDDDD', borderRadius: 100 }} /> | ||
<Text font="suit14r" color="b6" css={{ wordBreak: 'keep-all' }}> | ||
{createAt} | ||
</Text> | ||
</div> | ||
<div css={{ marginBottom: 8 }}> | ||
<Text font="suit16sb" color="b2" css={{ lineHeight: '24px' }}> | ||
{title} | ||
</Text> | ||
</div> | ||
<div css={{ display: 'flex', flexWrap: 'wrap', gap: '4px', alignItems: 'center' }}> | ||
{badges.map((badge, idx) => ( | ||
<div key={`${badge}-${idx}`}> | ||
<Badge font="suit14sb" color="c1" radius={50}> | ||
{badge} | ||
</Badge> | ||
</div> | ||
))} | ||
</div> | ||
</div> | ||
); | ||
}; |
Oops, something went wrong.