mirror of
https://github.com/drawdb-io/drawdb.git
synced 2026-02-11 02:00:37 +08:00
Make logo
This commit is contained in:
29
src/editor/index.jsx
Normal file
29
src/editor/index.jsx
Normal file
@@ -0,0 +1,29 @@
|
||||
import React from "react";
|
||||
import Diagram from "../components/diagram";
|
||||
import { ResizableBox } from "react-resizable";
|
||||
import "react-resizable/css/styles.css";
|
||||
import Header from "../components/header";
|
||||
|
||||
export default function Editor(props) {
|
||||
return (
|
||||
<>
|
||||
<Header name={props.name} />
|
||||
<div className="flex">
|
||||
<ResizableBox
|
||||
width={window.innerWidth * 0.2}
|
||||
height={window.innerHeight}
|
||||
resizeHandles={["e"]}
|
||||
minConstraints={[window.innerWidth * 0.2, window.innerHeight]}
|
||||
maxConstraints={[Infinity, Infinity]}
|
||||
axis="x"
|
||||
>
|
||||
<span className="text">window 1</span>
|
||||
</ResizableBox>
|
||||
<div>
|
||||
<Diagram />
|
||||
</div>
|
||||
<div>hi</div>
|
||||
</div>
|
||||
</>
|
||||
);
|
||||
}
|
||||
Reference in New Issue
Block a user