Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
N
nrp-frontend
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Wiki
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Neurorobotics Platform
nrp-frontend
Commits
a2001ab8
Commit
a2001ab8
authored
3 years ago
by
Sandro Weber
Browse files
Options
Downloads
Patches
Plain Diff
some basic layout and buttons
parent
4879bdad
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/components/simulation-view/simulation-view.css
+33
-3
33 additions, 3 deletions
src/components/simulation-view/simulation-view.css
src/components/simulation-view/simulation-view.js
+24
-1
24 additions, 1 deletion
src/components/simulation-view/simulation-view.js
with
57 additions
and
4 deletions
src/components/simulation-view/simulation-view.css
+
33
−
3
View file @
a2001ab8
.simulation-view-wrapper
{
display
:
grid
;
grid-template-rows
:
100px
auto
;
grid-template-rows
:
auto
auto
;
grid-template-columns
:
100px
auto
;
grid-template-areas
:
"simulation-view-header simulation-view-header"
...
...
@@ -9,8 +9,12 @@
.simulation-view-header
{
grid-area
:
simulation-view-header
;
display
:
flex
;
flex-direction
:
row
;
align-items
:
center
;
justify-content
:
space-between
;
background-color
:
yellow
;
min-height
:
100
px
;
padding
:
3
px
;
}
.simulation-view-sidebar
{
...
...
@@ -26,5 +30,31 @@
.simulation-view-flexlayout
{
position
:
relative
;
height
:
100%
;
height
:
100vh
;
}
.simulation-view-controls
{
display
:
flex
;
flex-direction
:
row
;
align-items
:
center
;
}
.simulation-view-control-buttons
{
padding
:
0px
10px
0px
10px
;
}
.simulation-view-time-info
{
display
:
grid
;
gap
:
3px
;
grid-template-rows
:
repeat
(
3
,
1
fr
);
grid-template-columns
:
repeat
(
2
,
1
fr
);
padding
:
0px
10px
0px
10px
;
font-size
:
0.7em
;
}
.simulation-view-experiment-title
{
padding
:
0px
10px
0px
10px
;
font-weight
:
bold
;
}
\ No newline at end of file
This diff is collapsed.
Click to expand it.
src/components/simulation-view/simulation-view.js
+
24
−
1
View file @
a2001ab8
import
React
from
'
react
'
;
import
FlexLayout
from
'
flexlayout-react
'
;
import
{
RiPlayFill
,
RiLayout6Line
}
from
'
react-icons/ri
'
;
import
{
GiExitDoor
}
from
'
react-icons/gi
'
;
import
{
TiMediaRecord
}
from
'
react-icons/ti
'
;
import
{
VscDebugRestart
}
from
'
react-icons/vsc
'
;
import
'
../../../node_modules/flexlayout-react/style/light.css
'
;
import
'
./simulation-view.css
'
;
...
...
@@ -69,7 +73,26 @@ export default class SimulationView extends React.Component {
return
(
<
div
className
=
'
simulation-view-wrapper
'
>
<
div
className
=
'
simulation-view-header
'
>
header
<
div
className
=
'
simulation-view-controls
'
>
<
div
className
=
'
simulation-view-control-buttons
'
>
<
button
className
=
'
nrp-btn btn-default
'
><
GiExitDoor
className
=
'
icon
'
/><
/button
>
<
button
className
=
'
nrp-btn btn-default
'
><
VscDebugRestart
className
=
'
icon
'
/><
/button
>
<
button
className
=
'
nrp-btn btn-default
'
><
RiPlayFill
className
=
'
icon
'
/><
/button
>
<
button
className
=
'
nrp-btn btn-default
'
><
TiMediaRecord
className
=
'
icon
'
/><
/button
>
<
/div
>
<
div
className
=
'
simulation-view-time-info
'
>
<
div
>
Simulation
time
:
<
/div
>
<
div
>
{
'
00 00:00:00
'
}
<
/div
>
<
div
>
Real
time
:
<
/div
>
<
div
>
{
'
11 11:11:11
'
}
<
/div
>
<
div
>
Real
timeout
:
<
/div
>
<
div
>
{
'
22 22:22:22
'
}
<
/div
>
<
/div
>
<
/div
>
<
div
className
=
'
simulation-view-experiment-title
'
>
experiment
title
placeholder
<
/div
>
<
button
className
=
'
nrp-btn btn-default
'
><
RiLayout6Line
className
=
'
icon
'
/><
/button
>
<
/div
>
<
div
className
=
'
simulation-view-sidebar
'
>
sidebar
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment