diff --git a/src/App.css b/src/App.css index a545301..4e34459 100644 --- a/src/App.css +++ b/src/App.css @@ -1,4 +1,5 @@ .App{ width:100%; height:100vh; + background-color: rgb(255, 255, 255); } \ No newline at end of file diff --git a/src/components/tree/tree.component.css b/src/components/tree/tree.component.css index fe9f66d..ce02ab3 100644 --- a/src/components/tree/tree.component.css +++ b/src/components/tree/tree.component.css @@ -1,5 +1,6 @@ .container{ margin:0 auto; + width: 100%; } #emptyTreeMsg { @@ -56,6 +57,7 @@ input{ height: 2em; color:#292929; font-weight: 500; + margin-top: 2em; } .navbar{ @@ -75,20 +77,28 @@ input{ button{ background-color: teal; + position: center; + box-align: center; border: none; - width:12em; - padding:0 2em; + width:20em; + padding: 2em; font-family: 'Montserrat'; /* letter-spacing: 0.1rem; */ font-size: 0.7rem; border-radius: 2px; - padding: 0.5em; + padding: 0.9em; + margin-left: 7%; color:white; + margin-top: 2em; } -input:hover,button:hover{ +input:hover{ cursor: pointer; } +button:hover{ + cursor: pointer; + background-color: #4DB686; + } button:focus{ outline: none !important @@ -103,8 +113,9 @@ input:focus{ position: absolute; left: 3em; border: 2px solid teal; - top:3em; - padding:1em; + top:5em; + padding:2em; margin: 0; color:teal; + background-color: beige; } \ No newline at end of file diff --git a/src/components/tree/tree.component.js b/src/components/tree/tree.component.js index 7e9a55d..9f96d1c 100644 --- a/src/components/tree/tree.component.js +++ b/src/components/tree/tree.component.js @@ -88,8 +88,9 @@ function Tree() {
BINARY SEARCH TREE
+
- Key setKey(e.target.value)} /> + setKey(e.target.value)} />
@@ -98,19 +99,21 @@ function Tree() { Value setValue(e.target.value)}/> */} - - - - - -
setKey(e.target.value)} />
- +
+

+ + + + +

+ +
{ constructTree(treeNode.root) diff --git a/src/index.css b/src/index.css index c35a70d..1b6b2cc 100644 --- a/src/index.css +++ b/src/index.css @@ -1,5 +1,7 @@ body{ - margin: 0; + margin: 0%; font-family: 'Montserrat'; letter-spacing: 0.1rem; + background-image: linear-gradient(to right, teal,#4DB686, #80CF7F); + height: 100%; } \ No newline at end of file