Commit 39d69237 authored by Alexander Kotov's avatar Alexander Kotov

move disks to app state

parent 065dc0ab
......@@ -9,14 +9,15 @@ class App extends Component {
this.state = {
towers: {
left: [
{ color: '#669BBC', width: 20 },
{ color: '#A8C686', width: 40 },
{ color: '#F3A712', width: 60 },
{ color: '#29335C', width: 80 },
{ color: '#E4572E', width: 100 }
],
center: [],
right: []
center: [
{ color: '#669BBC', width: 20 }],
right: [
{ color: '#A8C686', width: 40 }
]
}
}
}
......
.Tower {
flex-grow: 1;
height: 16vw;
margin: 0 5vw;
display: flex;
flex-direction: column;
justify-content: flex-end;
align-items: center;
border-bottom: 2px solid black;
}
.Disk {
margin: auto;
height: 2vw;
border-radius: .3vw;
}
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment