-
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.
Merge pull request #91 from themoment-team/develop
Release v1.4.0
- Loading branch information
Showing
64 changed files
with
951 additions
and
179 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,5 @@ | ||
import { MenteeRegister } from '@/pageContainer'; | ||
|
||
const Mentee = () => <MenteeRegister />; | ||
|
||
export default Mentee; |
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 @@ | ||
const GoBackIcon = () => ( | ||
<svg | ||
xmlns='http://www.w3.org/2000/svg' | ||
width='0.625rem' | ||
height='1.0625rem' | ||
viewBox='0 0 10 17' | ||
fill='none' | ||
> | ||
<g clipPath='url(#clip0_3083_5664)'> | ||
<path | ||
d='M9 1.5L1.86009 7.74742C1.40476 8.14584 1.40476 8.85417 1.86009 9.25258L9 15.5' | ||
stroke='#8F9094' | ||
strokeWidth='2' | ||
strokeLinecap='round' | ||
/> | ||
</g> | ||
<defs> | ||
<clipPath id='clip0_3083_5664'> | ||
<rect | ||
width='10' | ||
height='16' | ||
fill='white' | ||
transform='matrix(-1 0 0 1 10 0.5)' | ||
/> | ||
</clipPath> | ||
</defs> | ||
</svg> | ||
); | ||
|
||
export default GoBackIcon; |
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 @@ | ||
const SendIcon = () => ( | ||
<svg | ||
xmlns='http://www.w3.org/2000/svg' | ||
width='2.25rem' | ||
height='2.25rem' | ||
viewBox='0 0 36 36' | ||
fill='none' | ||
> | ||
<circle cx='18' cy='18' r='15' fill='#94CCFF' /> | ||
<path | ||
d='M24.0021 25.4936C24.7151 25.4926 25.198 24.767 24.9237 24.1089L18.923 9.71418C18.5811 8.89387 17.4189 8.89387 17.077 9.71417L11.0763 24.1089C10.802 24.767 11.2849 25.4926 11.9979 25.4936L15.4533 25.4987C15.9564 25.4994 16.3818 25.1262 16.4465 24.6273L17.5041 16.468C17.5795 15.887 18.4205 15.887 18.4959 16.468L19.5535 24.6273C19.6182 25.1262 20.0436 25.4994 20.5467 25.4987L24.0021 25.4936Z' | ||
fill='#148EFF' | ||
/> | ||
</svg> | ||
); | ||
|
||
export default SendIcon; |
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,21 @@ | ||
import ChattingHeader from '.'; | ||
|
||
import type { Meta, StoryObj } from '@storybook/react'; | ||
|
||
const meta: Meta<typeof ChattingHeader> = { | ||
component: ChattingHeader, | ||
parameters: { | ||
layout: 'padded', | ||
}, | ||
}; | ||
|
||
export default meta; | ||
|
||
type Story = StoryObj<typeof ChattingHeader>; | ||
|
||
export const Primary: Story = { | ||
args: { | ||
name: '방가온', | ||
generation: 7, | ||
}, | ||
}; |
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 @@ | ||
'use client'; | ||
|
||
import { useRouter } from 'next/navigation'; | ||
|
||
import * as S from './style'; | ||
|
||
import { GoBackIcon } from '@/assets'; | ||
|
||
interface Props { | ||
name: string; | ||
generation: number; | ||
} | ||
|
||
const ChattingHeader: React.FC<Props> = ({ name, generation }) => { | ||
const { push } = useRouter(); | ||
|
||
// 어디로 이동해야 할지 정해지지 않아 /로 이동하게 해두었습니다! | ||
const handleGoBackClick = () => push('/'); | ||
|
||
return ( | ||
<S.Container> | ||
<S.IconBox onClick={handleGoBackClick}> | ||
<GoBackIcon /> | ||
</S.IconBox> | ||
<S.OpponentInfo> | ||
{generation}기 {name} | ||
</S.OpponentInfo> | ||
</S.Container> | ||
); | ||
}; | ||
|
||
export default ChattingHeader; |
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,24 @@ | ||
import styled from '@emotion/styled'; | ||
|
||
export const Container = styled.div` | ||
position: relative; | ||
width: 100%; | ||
padding: 1rem 1.25rem; | ||
display: flex; | ||
align-items: center; | ||
justify-content: center; | ||
`; | ||
|
||
export const IconBox = styled.div` | ||
margin: 0.25rem 0.4375rem; | ||
display: flex; | ||
align-items: center; | ||
cursor: pointer; | ||
position: absolute; | ||
left: 1.69rem; | ||
`; | ||
|
||
export const OpponentInfo = styled.div` | ||
${({ theme }) => theme.typo.subtitle}; | ||
color: ${({ theme }) => theme.color.grey[500]}; | ||
`; |
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 type { OpponentInfo } from '@/types/opponentInfo'; | ||
|
||
import ChattingListCard from '.'; | ||
|
||
import type { Meta, StoryObj } from '@storybook/react'; | ||
|
||
const opponent: OpponentInfo = { | ||
id: 1, | ||
name: '방가온', | ||
generation: 7, | ||
}; | ||
|
||
const meta: Meta<typeof ChattingListCard> = { | ||
component: ChattingListCard, | ||
args: { | ||
opponent, | ||
}, | ||
}; | ||
|
||
export default meta; | ||
|
||
type Story = StoryObj<typeof ChattingListCard>; | ||
|
||
export const Primary: Story = { | ||
args: { | ||
isNewMessage: false, | ||
}, | ||
}; | ||
|
||
export const isNewMessage: Story = { | ||
args: { | ||
isNewMessage: true, | ||
}, | ||
}; |
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,33 @@ | ||
'use client'; | ||
|
||
import React from 'react'; | ||
|
||
import * as S from './style'; | ||
|
||
import { PersonImg4 } from '@/assets'; | ||
import type { OpponentInfo } from '@/types'; | ||
|
||
interface Props { | ||
opponent: OpponentInfo; | ||
isNewMessage: boolean; | ||
} | ||
|
||
const ChattingListCard: React.FC<Props> = ({ opponent, isNewMessage }) => ( | ||
<S.Container> | ||
<S.OpponentProfile> | ||
<S.ProfileImg> | ||
<PersonImg4 /> | ||
</S.ProfileImg> | ||
|
||
<S.ProfileBox> | ||
<S.ProfileInfo> | ||
{opponent.generation}기 {opponent.name} | ||
</S.ProfileInfo> | ||
<S.ChattingTime>1시간 전 채팅</S.ChattingTime> | ||
</S.ProfileBox> | ||
</S.OpponentProfile> | ||
{isNewMessage && <S.BlueCircleIcon />} | ||
</S.Container> | ||
); | ||
|
||
export default ChattingListCard; |
Oops, something went wrong.