-
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.
Browse files
Browse the repository at this point in the history
✨ Feature: 채팅방 구현 및 헤더 수정
- Loading branch information
Showing
27 changed files
with
615 additions
and
91 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,5 @@ | ||
{ | ||
"editor.formatOnSave": true, | ||
"editor.defaultFormatter": "esbenp.prettier-vscode", | ||
"editor.codeActionsOnSave": { | ||
"source.fixAll.eslint": "explicit" | ||
} | ||
} | ||
"editor.formatOnSave": true, | ||
"editor.defaultFormatter": "esbenp.prettier-vscode", | ||
"notebook.defaultFormatter": "esbenp.prettier-vscode" | ||
} |
Large diffs are not rendered by default.
Oops, something went wrong.
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.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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 was deleted.
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
/* | ||
html, body { | ||
margin: 0; | ||
padding: 0; | ||
height: 200%; | ||
width: 100%; | ||
display: flex; | ||
align-items: flex-start; | ||
justify-content: center; | ||
background-color: aqua; | ||
} | ||
#root, #app { | ||
height: 100%; | ||
width: 200%; | ||
display: flex; | ||
align-items: center; | ||
justify-content: center; | ||
background-color: red; | ||
} | ||
*/ | ||
|
||
/* 전체 화면을 채우는 컨테이너 설정 | ||
.container { | ||
width: 100%; | ||
height: 200vh; | ||
display: flex; | ||
flex-direction: column; | ||
align-items: center; | ||
justify-content: flex-start; | ||
background-color: blanchedalmond; | ||
} */ |
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
Empty file.
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 React from "react"; | ||
import * as styles from "./styled/ChatList.styled"; | ||
import smile from "../../assets/images/smiles.png"; | ||
const ChatList = (props) => { | ||
const truncatedContent = | ||
props.content.length > 20 | ||
? `${props.content.slice(0, 15)}...` | ||
: props.content; | ||
|
||
return ( | ||
<styles.TotalWrapper> | ||
<styles.ContentWrapper> | ||
<styles.ProfileWrapper> | ||
<styles.Profile src={smile}></styles.Profile> | ||
</styles.ProfileWrapper> | ||
<styles.NameContentWrapper> | ||
<styles.UserName>{props.name}</styles.UserName> | ||
<styles.TalkContent>{truncatedContent}</styles.TalkContent> | ||
</styles.NameContentWrapper> | ||
</styles.ContentWrapper> | ||
<styles.TimeAlramWrapper> | ||
<styles.Time>{props.time}</styles.Time> | ||
<styles.AlramWrapper> | ||
<styles.Alram>{props.alramcount}</styles.Alram> | ||
</styles.AlramWrapper> | ||
</styles.TimeAlramWrapper> | ||
</styles.TotalWrapper> | ||
); | ||
}; | ||
|
||
export default ChatList; |
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,42 @@ | ||
import React from "react"; | ||
import * as styles from "./styled/ChatMain.styled"; | ||
import ChatRoom from "./ChatRoom"; | ||
import ChatList from "./ChatList"; | ||
import Layout from "../../components/Common/Layout"; | ||
|
||
function ChatMain() { | ||
return ( | ||
<styles.TotalWrapper> | ||
<styles.TitleWrapper> | ||
<styles.Title>첫 커넥션</styles.Title> | ||
</styles.TitleWrapper> | ||
<styles.ChatWrapper> | ||
<styles.LeftWrapper> | ||
<ChatList | ||
name="celina.jung" | ||
content="동해물과 백두산이 마르고 닳도록 하느님이 보우하사 우리나라 만세" | ||
time="오후 9시 30분" | ||
alramcount={3} | ||
/> | ||
<ChatList | ||
name="celina.jung" | ||
content="동해물과 백두산이 마르고 닳도록 하느님이 보우하사 우리나라 만세" | ||
time="오후 9시 30분" | ||
alramcount={3} | ||
/> | ||
<ChatList | ||
name="celina.jung" | ||
content="동해물과 백두산이 마르고 닳도록 하느님이 보우하사 우리나라 만세" | ||
time="오후 9시 30분" | ||
alramcount={3} | ||
/> | ||
</styles.LeftWrapper> | ||
<styles.RightWrapper> | ||
<ChatRoom name="celina.jung" /> | ||
</styles.RightWrapper> | ||
</styles.ChatWrapper> | ||
</styles.TotalWrapper> | ||
); | ||
} | ||
|
||
export default ChatMain; |
Oops, something went wrong.