File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11import Editor from '@/components/write/Editor' ;
2+ import SaveButton from '@/components/write/SaveButton' ;
23
34const Page = ( ) => {
45 return (
5- < div className = "bg-background flex min-h-screen flex-col" >
6+ < div className = "bg-background flex min-h-screen flex-col gap-8 " >
67 < Editor />
8+ < SaveButton />
79 </ div >
810 ) ;
911} ;
Original file line number Diff line number Diff line change @@ -19,7 +19,7 @@ const Editor = () => {
1919 < MDEditor
2020 value = { value }
2121 onChange = { ( v ) => setValue ( v ?? '' ) }
22- height = { 850 }
22+ height = { 800 }
2323 preview = "live"
2424 textareaProps = { {
2525 placeholder : '내용을 입력하세요' ,
Original file line number Diff line number Diff line change 1+ const SaveButton = ( ) => {
2+ return (
3+ < div className = "mx-auto flex h-10 w-3xs gap-6" >
4+ < button
5+ type = "button"
6+ className = "bg-primary flex-1 rounded-xl py-4 text-center text-base leading-0 font-semibold text-white shadow-sm transition hover:bg-violet-500 active:bg-violet-700 disabled:cursor-not-allowed disabled:opacity-60"
7+ >
8+ 저장
9+ </ button >
10+
11+ < button
12+ type = "button"
13+ className = "flex-1 rounded-xl border border-slate-300 bg-none py-4 text-center text-base leading-0 font-semibold text-slate-700 transition hover:bg-slate-200 active:bg-slate-300 disabled:cursor-not-allowed disabled:opacity-60"
14+ >
15+ 취소하기
16+ </ button >
17+ </ div >
18+ ) ;
19+ } ;
20+
21+ export default SaveButton ;
You can’t perform that action at this time.
0 commit comments