-
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.
Feat: Chat-131-fe-채팅레이아웃-Home 역할분배 라우팅 (#12)
* Feat: 로딩중 컴포넌트 UI 완성 * Style: 애니메이션 속도 수정 * Refactor: aiChatBox의 children으로 LeftChatBox를 넣는 구조로 변경 * Feat: 채팅 간단하게 구현해봄 * Fix: 불필요한 변수 제거(setIsLoading) * Feat: Sprint 2 역할 분배 라우터 설정
- Loading branch information
Showing
10 changed files
with
191 additions
and
12 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
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,49 @@ | ||
@import '../../styles/variables/colors.scss'; | ||
|
||
.wrapper { | ||
display: flex; | ||
align-items: center; | ||
gap: 8px; | ||
height: 20px; | ||
} | ||
|
||
.dot1 { | ||
width: 6px; | ||
height: 6px; | ||
border-radius: 50%; | ||
background-color: $BK50; | ||
animation: dot1 0.7s infinite; | ||
} | ||
|
||
.dot2 { | ||
width: 6px; | ||
height: 6px; | ||
border-radius: 50%; | ||
background-color: $BK70; | ||
animation: dot2 0.7s infinite; | ||
} | ||
|
||
.dot3 { | ||
width: 6px; | ||
height: 6px; | ||
border-radius: 50%; | ||
background-color: $BK50; | ||
} | ||
|
||
@keyframes dot1 { | ||
from { | ||
background-color: $BK50; | ||
} | ||
to { | ||
background-color: $BK30; | ||
} | ||
} | ||
|
||
@keyframes dot2 { | ||
from { | ||
background-color: $BK70; | ||
} | ||
to { | ||
background-color: $BK10; | ||
} | ||
} |
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,13 @@ | ||
import styles from './LoadingChat.module.scss'; | ||
|
||
const LoadingChat = () => { | ||
return ( | ||
<div className={styles.wrapper}> | ||
<div className={styles.dot1}></div> | ||
<div className={styles.dot2}></div> | ||
<div className={styles.dot3}></div> | ||
</div> | ||
); | ||
}; | ||
|
||
export default LoadingChat; |
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 React from 'react'; | ||
|
||
const Detail = () => { | ||
return <div>Detail</div>; | ||
}; | ||
|
||
export default Detail; |
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 React from 'react'; | ||
|
||
const Calendar = () => { | ||
return <div>Calendar</div>; | ||
}; | ||
|
||
export default Calendar; |
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,20 @@ | ||
import { useState } from 'react'; | ||
import styles from './Home.module.scss'; | ||
import Calendar from './Calendar'; | ||
import List from './List'; | ||
|
||
const Home = () => { | ||
return <div className={styles.example}>Home, hello</div>; | ||
const [isList, setIsList] = useState(false); | ||
const toggleMode = () => { | ||
setIsList((prev) => !prev); | ||
}; | ||
return ( | ||
<div className={styles.example}> | ||
Home, hello | ||
<button onClick={toggleMode}>리스트 화면 전환</button> | ||
{isList ? <List /> : <Calendar />} | ||
</div> | ||
); | ||
}; | ||
|
||
export default Home; |
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 React from 'react'; | ||
|
||
const List = () => { | ||
return <div>List</div>; | ||
}; | ||
|
||
export default List; |
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