diff --git a/src/App.css b/src/App.css index 74b5e05..3f79195 100644 --- a/src/App.css +++ b/src/App.css @@ -1,5 +1,7 @@ .App { text-align: center; + height: 100vh; + width: 100%; } .App-logo { diff --git a/src/App.tsx b/src/App.tsx index 3e615e0..1ed5b66 100644 --- a/src/App.tsx +++ b/src/App.tsx @@ -1,14 +1,10 @@ -import React from 'react'; -import logo from './logo.svg'; import './App.css'; import Editor from './Editor'; function App() { return (
-
- -
+
); } diff --git a/src/Editor.css b/src/Editor.css new file mode 100644 index 0000000..74eb5c1 --- /dev/null +++ b/src/Editor.css @@ -0,0 +1,16 @@ +.Editor { + display: flex; + flex-direction: row; + height: 100%; + width: 100%; +} + +.Editor-textarea { + flex: 1; + flex-basis: 0; +} + +.Editor-ast { + flex: 1; + background: green; +} diff --git a/src/Editor.tsx b/src/Editor.tsx index fb1ad70..f465e97 100644 --- a/src/Editor.tsx +++ b/src/Editor.tsx @@ -1,10 +1,15 @@ +import './Editor.css'; + function Editor() { function handleChange(event: React.ChangeEvent) { console.log(event.target.value); } return ( - +
+ +
+
); }