Make logo
This commit is contained in:
parent
e65905cd3e
commit
64835d8800
@ -39,5 +39,6 @@
|
||||
To begin the development, run `npm start` or `yarn start`.
|
||||
To create a production bundle, use `npm run build` or `yarn build`.
|
||||
-->
|
||||
<script src="https://kit.fontawesome.com/e35edcd75e.js" crossorigin="anonymous"></script>
|
||||
</body>
|
||||
</html>
|
||||
|
25
src/App.js
25
src/App.js
@ -1,27 +1,10 @@
|
||||
import Diagram from "./diagram";
|
||||
import { ResizableBox } from "react-resizable";
|
||||
import "react-resizable/css/styles.css";
|
||||
import Editor from "./editor";
|
||||
|
||||
function App() {
|
||||
return (
|
||||
<div className="flex">
|
||||
<ResizableBox
|
||||
width={window.innerWidth * 0.2}
|
||||
height={window.innerHeight}
|
||||
resizeHandles={["e"]}
|
||||
minConstraints={[window.innerWidth * 0.2, window.innerHeight]}
|
||||
axis="x"
|
||||
>
|
||||
<span className="text">window 1</span>
|
||||
</ResizableBox>
|
||||
<ResizableBox
|
||||
width={window.innerWidth * 0.8}
|
||||
height={window.innerHeight}
|
||||
resizeHandles={[]}
|
||||
>
|
||||
<Diagram />
|
||||
</ResizableBox>
|
||||
</div>
|
||||
<>
|
||||
<Editor name="Untitled"/>
|
||||
</>
|
||||
);
|
||||
}
|
||||
|
||||
|
BIN
src/assets/blank_pfp.webp
Normal file
BIN
src/assets/blank_pfp.webp
Normal file
Binary file not shown.
After Width: | Height: | Size: 17 KiB |
BIN
src/assets/logo_36.png
Normal file
BIN
src/assets/logo_36.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 3.5 KiB |
BIN
src/assets/logo_48.png
Normal file
BIN
src/assets/logo_48.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 6.8 KiB |
BIN
src/assets/logo_80.png
Normal file
BIN
src/assets/logo_80.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 8.8 KiB |
@ -13,7 +13,7 @@ function Diagram() {
|
||||
color: "#F1F92A",
|
||||
},
|
||||
model: graph,
|
||||
height: window.innerHeight,
|
||||
height: "100%",
|
||||
width: "100%",
|
||||
gridSize: 1,
|
||||
interactive: true,
|
3
src/components/header/index.css
Normal file
3
src/components/header/index.css
Normal file
@ -0,0 +1,3 @@
|
||||
.bg-blue{
|
||||
background-color: #124559;
|
||||
}
|
19
src/components/header/index.jsx
Normal file
19
src/components/header/index.jsx
Normal file
@ -0,0 +1,19 @@
|
||||
import React from "react";
|
||||
import blank_pfp from "../../assets/blank_pfp.webp";
|
||||
import logo from "../../assets/logo_80.png";
|
||||
import "./index.css";
|
||||
|
||||
export default function Header(props) {
|
||||
return (
|
||||
<nav className="flex justify-between py-4 bg-blue text-white items-center">
|
||||
<img width={142} src={logo} alt="logo" className="ms-5" />
|
||||
<div className="text-xl">{props.name}</div>
|
||||
<div className="flex justify-around items-center text-md me-5">
|
||||
<button className="me-4 border px-3 py-1 rounded-lg">
|
||||
<i class="fa-solid fa-lock me-2"></i>Share
|
||||
</button>
|
||||
<img src={blank_pfp} alt="profile" className="rounded-full h-10 w-10" />
|
||||
</div>
|
||||
</nav>
|
||||
);
|
||||
}
|
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>
|
||||
</>
|
||||
);
|
||||
}
|
Loading…
Reference in New Issue
Block a user