-
Notifications
You must be signed in to change notification settings - Fork 1
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' into 20-design/home-page
- Loading branch information
Showing
15 changed files
with
322 additions
and
33 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.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7,4 +7,5 @@ export const PrevButton = styled(GrPrevious)` | |
top: 14px; | ||
width: 28px; | ||
height: 28px; | ||
z-index: 5; | ||
` |
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,18 @@ | ||
import { Typo13, Typo15 } from '~components/Typo' | ||
import * as S from './styles' | ||
type NotificationItemProps = { | ||
content: string | ||
date: Date | ||
} | ||
|
||
export default function NotificationItem({ content, date }: NotificationItemProps) { | ||
return ( | ||
<S.NotificationItem> | ||
<S.Dot /> | ||
<S.TypoArea> | ||
<Typo15 weight='700'>{content}</Typo15> | ||
<Typo13 color='font_3'>{date.toISOString().slice(0, 10)}</Typo13> | ||
</S.TypoArea> | ||
</S.NotificationItem> | ||
) | ||
} |
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 { styled } from 'styled-components' | ||
|
||
export const NotificationItem = styled.div` | ||
display: flex; | ||
align-items: center; | ||
gap: 8px; | ||
padding: 16px 20px; | ||
border-bottom: 1px solid ${({ theme }) => theme.colors.grayscale.gc_1}; | ||
` | ||
|
||
export const Dot = styled.div` | ||
border-radius: 50%; | ||
width: 3px; | ||
height: 3px; | ||
background-color: ${({ theme }) => theme.colors.brand.sub}; | ||
` | ||
export const TypoArea = styled.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,134 @@ | ||
import NotificationItem from '~components/NotificationItem' | ||
import * as S from './styles' | ||
|
||
const notificationList = [ | ||
{ | ||
content: '엄마 산책 시켜주세요!', | ||
date: new Date('2024-11-21 09:38:04'), | ||
}, | ||
{ | ||
content: '오늘 빼먹지 말고 산책!', | ||
date: new Date('2024-11-21 07:13:04'), | ||
}, | ||
{ | ||
content: '다 함께 즐거운 순간!', | ||
date: new Date('2024-11-21 01:32:04'), | ||
}, | ||
{ | ||
content: '오늘 빼먹지 말고 산책!', | ||
date: new Date('2024-11-21 11:51:04'), | ||
}, | ||
{ | ||
content: '다 함께 즐거운 순간!', | ||
date: new Date('2024-11-21 06:26:04'), | ||
}, | ||
{ | ||
content: '오늘 빼먹지 말고 산책!', | ||
date: new Date('2024-11-21 18:00:04'), | ||
}, | ||
{ | ||
content: '오늘 빼먹지 말고 산책!', | ||
date: new Date('2024-11-21 04:24:04'), | ||
}, | ||
{ | ||
content: '오늘의 미션을 완료했어요!', | ||
date: new Date('2024-11-21 16:10:04'), | ||
}, | ||
{ | ||
content: '내일 날씨가 좋으면 산책해요!', | ||
date: new Date('2024-11-21 13:44:04'), | ||
}, | ||
{ | ||
content: '엄마 산책 시켜주세요!', | ||
date: new Date('2024-11-21 18:35:04'), | ||
}, | ||
{ | ||
content: '다 함께 즐거운 순간!', | ||
date: new Date('2024-11-21 20:32:04'), | ||
}, | ||
{ | ||
content: '내일 날씨가 좋으면 산책해요!', | ||
date: new Date('2024-11-21 20:29:04'), | ||
}, | ||
{ | ||
content: '이번 주 미션을 완료할 거예요!', | ||
date: new Date('2024-11-21 16:24:04'), | ||
}, | ||
{ | ||
content: '오늘 빼먹지 말고 산책!', | ||
date: new Date('2024-11-21 04:00:04'), | ||
}, | ||
{ | ||
content: '다 함께 즐거운 순간!', | ||
date: new Date('2024-11-21 20:15:04'), | ||
}, | ||
{ | ||
content: '오늘 기분이 어때요?', | ||
date: new Date('2024-11-21 13:07:04'), | ||
}, | ||
{ | ||
content: '엄마 나와 함께 놀아요!', | ||
date: new Date('2024-11-21 12:04:04'), | ||
}, | ||
{ | ||
content: '산책이 너무 좋아요!', | ||
date: new Date('2024-11-21 07:04:04'), | ||
}, | ||
{ | ||
content: '엄마 나와 함께 놀아요!', | ||
date: new Date('2024-11-21 07:22:04'), | ||
}, | ||
{ | ||
content: '오늘 기분이 어때요?', | ||
date: new Date('2024-11-21 09:32:04'), | ||
}, | ||
{ | ||
content: '오늘 빼먹지 말고 산책!', | ||
date: new Date('2024-11-21 14:29:04'), | ||
}, | ||
{ | ||
content: '엄마 나와 함께 놀아요!', | ||
date: new Date('2024-11-21 11:32:04'), | ||
}, | ||
{ | ||
content: '밥은 언제 먹어?', | ||
date: new Date('2024-11-21 23:44:04'), | ||
}, | ||
{ | ||
content: '내일 날씨가 좋으면 산책해요!', | ||
date: new Date('2024-11-21 01:33:04'), | ||
}, | ||
{ | ||
content: '다 함께 즐거운 순간!', | ||
date: new Date('2024-11-21 19:34:04'), | ||
}, | ||
{ | ||
content: '엄마 나와 함께 놀아요!', | ||
date: new Date('2024-11-21 13:40:04'), | ||
}, | ||
{ | ||
content: '이번 주 미션을 완료할 거예요!', | ||
date: new Date('2024-11-21 14:05:04'), | ||
}, | ||
{ | ||
content: '밥은 언제 먹어?', | ||
date: new Date('2024-11-21 01:02:04'), | ||
}, | ||
{ | ||
content: '이번 주 미션을 완료할 거예요!', | ||
date: new Date('2024-11-21 04:02:04'), | ||
}, | ||
{ | ||
content: '엄마 산책 시켜주세요!', | ||
date: new Date('2024-11-21 22:11:04'), | ||
}, | ||
] | ||
export default function NotificationList() { | ||
return ( | ||
<S.NotificationList> | ||
{notificationList.map((notification, index) => ( | ||
<NotificationItem content={notification.content} date={notification.date} key={index} /> | ||
))} | ||
</S.NotificationList> | ||
) | ||
} |
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,3 @@ | ||
import { styled } from 'styled-components' | ||
|
||
export const NotificationList = styled.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 |
---|---|---|
@@ -1 +1,2 @@ | ||
export const FOOTER_HEIGHT = 56 | ||
export const HEADER_HEIGHT = 56 |
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,18 @@ | ||
import PrevButton from '~components/Button/PrevButton' | ||
import * as S from './styles' | ||
import { Typo17 } from '~components/Typo' | ||
import NotificationList from '~components/NotificationList' | ||
import { useModalStore } from '~stores/modalStore' | ||
|
||
export default function NotificationModal() { | ||
const { popModal } = useModalStore() | ||
return ( | ||
<S.NotificationModal> | ||
<PrevButton onClick={popModal} /> | ||
<S.Header> | ||
<Typo17 weight='700'>알림</Typo17> | ||
</S.Header> | ||
<NotificationList /> | ||
</S.NotificationModal> | ||
) | ||
} |
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,20 @@ | ||
import { styled } from 'styled-components' | ||
import { HEADER_HEIGHT } from '~constants/layout' | ||
|
||
export const NotificationModal = styled.div` | ||
height: 100dvh; | ||
background-color: ${({ theme }) => theme.colors.grayscale.gc_4}; | ||
overflow: auto; | ||
padding-top: ${HEADER_HEIGHT}px; | ||
` | ||
export const Header = styled.header` | ||
position: fixed; | ||
background-color: ${({ theme }) => theme.colors.grayscale.gc_4}; | ||
z-index: 3; | ||
width: 100%; | ||
top: 0; | ||
height: ${HEADER_HEIGHT}px; | ||
display: flex; | ||
justify-content: center; | ||
align-items: center; | ||
` |
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,31 @@ | ||
import * as S from './styles' | ||
import { ActionButton } from '~components/Button/ActionButton' | ||
import AddDogPicture from '~assets/add-dog-picture.svg' | ||
import TwoLineInput from '~components/Input/TwoLineInput' | ||
import PrevButton from '~components/Button/PrevButton' | ||
import { Typo24 } from '~components/Typo/index' | ||
|
||
export default function DogProfileSection() { | ||
return ( | ||
<S.DogProfileSection> | ||
<S.PrevBtnWrapper> | ||
<PrevButton /> | ||
</S.PrevBtnWrapper> | ||
<S.TypoWrapper> | ||
<Typo24 weight='700'>반려견 기본 정보를<br/> 알려주세요!</Typo24> | ||
</S.TypoWrapper> | ||
<S.AddDogPictureBtnWrapper> | ||
<S.AddDogPictureBtn> | ||
<img src={AddDogPicture} alt="반려견 사진 추가" /> | ||
<div>반려견 사진 추가</div> | ||
</S.AddDogPictureBtn> | ||
</S.AddDogPictureBtnWrapper> | ||
<S.InputArea> | ||
<TwoLineInput placeholder='이름 입력'>이름 입력</TwoLineInput> | ||
<S.DatePickerBtn>생년월일 선택</S.DatePickerBtn> | ||
<TwoLineInput placeholder='한줄 소개 입력'>한줄 소개 입력</TwoLineInput> | ||
</S.InputArea> | ||
<ActionButton>다음</ActionButton> | ||
</S.DogProfileSection> | ||
) | ||
} |
Oops, something went wrong.