File tree Expand file tree Collapse file tree 9 files changed +103
-9
lines changed Expand file tree Collapse file tree 9 files changed +103
-9
lines changed Original file line number Diff line number Diff line change 1+ function Confbar ( ) {
2+ return < div > </ div > ;
3+ }
4+
5+ export default Confbar ;
Original file line number Diff line number Diff line change 1+ import style from './style.module.scss' ;
2+
3+ function Mom ( ) {
4+ // context나 props로 가져오기
5+ const selectedMom = {
6+ id : 1 ,
7+ name : '회의록 1' ,
8+ createdAt : new Date ( ) ,
9+ } ;
10+
11+ /*
12+ contentEditable 내용을 컨트롤하고 싶다면 ref 활용해볼 수 있음
13+ const titleRef = useRef<HTMLHeadingElement>(null);
14+ */
15+
16+ const onTitleChange : React . FormEventHandler < HTMLHeadingElement > = ( e ) => {
17+ /*
18+ 제목 변경하는 요청
19+ const title = e.target as HTMLHeadingElement;
20+ title.innerText
21+ OR
22+ titleRef.current.innerText
23+ */
24+ } ;
25+
26+ return (
27+ < div className = { style [ 'mom-container' ] } >
28+ < div className = { style [ 'mom' ] } >
29+ < div className = { style [ 'mom-header' ] } >
30+ < h1
31+ contentEditable = { true }
32+ suppressContentEditableWarning = { true }
33+ onInput = { onTitleChange }
34+ >
35+ { selectedMom . name }
36+ </ h1 >
37+ < span > { selectedMom . createdAt . toLocaleString ( ) } </ span >
38+ </ div >
39+ < div className = { style [ 'editor-container' ] } > 회의록 내용</ div >
40+ </ div >
41+ </ div >
42+ ) ;
43+ }
44+
45+ export default Mom ;
Original file line number Diff line number Diff line change 1+ @import ' styles/color.module.scss' ;
2+
3+ .mom-container {
4+ display : flex ;
5+ flex-direction : column ;
6+ align-items : center ;
7+ justify-content : flex-end ;
8+ width : 100% ;
9+ height : 100vh ;
10+ background-color : $off-white ;
11+ }
12+
13+ .mom {
14+ position : relative ;
15+ width : 90% ;
16+ height : calc (100% - 30px );
17+ }
18+
19+ .mom-header {
20+ display : flex ;
21+ flex-direction : row ;
22+ align-items : baseline ;
23+ justify-content : space-between ;
24+ height : 70px ;
25+ padding : 0px 15px 20px 15px ;
26+ box-sizing : border-box ;
27+ color : $gray-100 ;
28+
29+ & > h1 {
30+ font-size : 32px ;
31+ font-weight : 500 ;
32+
33+ & :focus {
34+ outline : none ;
35+ }
36+ }
37+ }
38+
39+ .editor-container {
40+ height : calc (100% - 70px );
41+ padding : 20px ;
42+ box-sizing : border-box ;
43+ background-color : white ;
44+ }
Original file line number Diff line number Diff line change @@ -6,7 +6,7 @@ import style from './style.module.scss';
66
77function Sidebar ( ) {
88 return (
9- < div className = { style [ 'sidebar__container ' ] } >
9+ < div className = { style [ 'sidebar-container ' ] } >
1010 < div className = { style [ 'header' ] } >
1111 < h1 > 왭^^</ h1 >
1212 < SettingIcon />
Original file line number Diff line number Diff line change 11@import ' styles/color.module.scss' ;
22
3- .sidebar__container {
3+ .sidebar-container {
44 display : flex ;
55 flex-direction : column ;
66 align-items : center ;
Original file line number Diff line number Diff line change 1+ import Confbar from 'components/Confbar' ;
2+ import Mom from 'components/Mom' ;
13import Sidebar from 'components/Sidebar' ;
24
35function Workspace ( ) {
46 return (
57 < >
68 < Sidebar />
7- < div >
8- {
9- // 회의록과 화상회의 관련 컴포넌트
10- }
11- </ div >
9+ < Mom />
10+ < Confbar />
1211 </ >
1312 ) ;
1413}
Original file line number Diff line number Diff line change @@ -43,7 +43,7 @@ function WorkspaceList() {
4343
4444 return (
4545 < SetWorkspacesContext . Provider value = { setWorkspaces } >
46- < div className = { style . workspace__container } >
46+ < div className = { style [ 'workspace-list-container' ] } >
4747 < WorkspaceThumbnaliList workspaces = { workspaces } />
4848 < Selector
4949 TriggerElement = { AddButton }
Original file line number Diff line number Diff line change 11@import ' styles/color.module.scss' ;
22
3- .workspace__container {
3+ .workspace-list-container {
44 position : relative ;
55
66 background-color : $primary-100 ;
Original file line number Diff line number Diff line change 11$primary-100 : #323845 ;
22$white : #fff ;
3+ $off-white : #f5f5f5 ;
34$black : #474747 ;
45$gray-100 : #5c5c5c ;
56$gray-200 : #bbbbbb ;
You can’t perform that action at this time.
0 commit comments