feat: added ReactFlow-based node graph #11
@@ -1,19 +1,14 @@
|
|||||||
import {Link} from "react-router";
|
|
||||||
import VisProgUI from "./visualProgrammingUI/VisProgUI.tsx";
|
import VisProgUI from "./visualProgrammingUI/VisProgUI.tsx";
|
||||||
|
|
||||||
|
|
||||||
//this is your css file where you can style your buttons and such
|
//this is your css file where you can style your buttons and such
|
||||||
//you can still use css parts from App.css, but also overwrite them
|
//you can still use css parts from App.css, but also overwrite them
|
||||||
|
|
||||||
|
|
||||||
function VisProgPage() {
|
function VisProgPage() {
|
||||||
return (
|
return (
|
||||||
<>
|
<>
|
||||||
<VisProgUI/>
|
<VisProgUI/>
|
||||||
<Link to={'/'}> {/* here you link to the homepage, in App.tsx you can link new pages */}
|
|
||||||
<button className="movePage left" onClick={(): void => {}}>
|
|
||||||
Page {'<'}-- Go Home
|
|
||||||
</button>
|
|
||||||
</Link>
|
|
||||||
</>
|
</>
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -21,6 +21,7 @@
|
|||||||
margin-inline-start: auto;
|
margin-inline-start: auto;
|
||||||
margin-inline-end: auto;
|
margin-inline-end: auto;
|
||||||
background-color: canvas;
|
background-color: canvas;
|
||||||
|
align-content: center;
|
||||||
margin-bottom: 0.5rem;
|
margin-bottom: 0.5rem;
|
||||||
margin-top:auto;
|
margin-top:auto;
|
||||||
width: 50%;
|
width: 50%;
|
||||||
|
|||||||
@@ -148,6 +148,7 @@ export function DndToolbar() {
|
|||||||
borderColor: 'dimgrey',
|
borderColor: 'dimgrey',
|
||||||
backgroundColor: 'canvas',
|
backgroundColor: 'canvas',
|
||||||
display: 'flex',
|
display: 'flex',
|
||||||
|
alignItems: 'center',
|
||||||
flexDirection: 'column',
|
flexDirection: 'column',
|
||||||
gap: '1rem'
|
gap: '1rem'
|
||||||
}}>
|
}}>
|
||||||
|
|||||||
Reference in New Issue
Block a user