Skip to content

Commit d48b5a5

Browse files
committed
Minor UI Changes(tooltips, positioning,text)
1 parent 9bcc08f commit d48b5a5

File tree

3 files changed

+13
-17
lines changed

3 files changed

+13
-17
lines changed

frontend/src/App.css

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,3 @@
6060
margin: 2px;
6161
}
6262

63-
.cslib{
64-
background-color: red;
65-
}

frontend/src/App.js

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -118,9 +118,9 @@ const tutfunc = (TutorialCode) =>{
118118
{/* Buttons */}
119119
<div className='options'>
120120

121-
<Button className="selector" onClick={resetCode} ><img alt="reset button" src={ResetCode} /></Button>
122-
<Button className="selector" variant="lib" onClick={handleShow}><img alt="libs button" src={Librarylogo} /></Button>
123-
<Button className="selector" variant="run" onClick={handleClick}><img alt="run button" src={RunCode} /></Button>
121+
<Button title="Reset Editor" className="selector" onClick={resetCode} ><img alt="reset button" src={ResetCode} /></Button>
122+
<Button title="Libraries" className="selector" variant="lib" onClick={handleShow}><img alt="libs button" src={Librarylogo} /></Button>
123+
<Button title="Run" className="selector" variant="run" onClick={handleClick}><img alt="run button" src={RunCode} /></Button>
124124
</div>
125125
<div className='run-button'>
126126
{/*Custom theming for bootstrap buttons*/}
@@ -131,10 +131,10 @@ const tutfunc = (TutorialCode) =>{
131131
color: white;
132132
}
133133
.btn-run:hover{
134-
background-color: #009900;
134+
background-color: #009900 !important;
135135
color: white;
136136
}
137-
.btn-run:focus{
137+
.btn-run:active:focus{
138138
background-color: #734f96;
139139
color: white;
140140
}
@@ -143,10 +143,10 @@ const tutfunc = (TutorialCode) =>{
143143
color: white;
144144
}
145145
.btn-lib:hover{
146-
background-color: #FF8E00;
146+
background-color: #FF8E00 !important;
147147
color: white;
148148
}
149-
.btn-lib:focus{
149+
.btn-lib:active:focus{
150150
background-color: #ed8502;
151151
color: white;
152152
}
@@ -159,7 +159,7 @@ const tutfunc = (TutorialCode) =>{
159159
<div className='terminal'>
160160

161161
<Card style={{width:'100%'}} className="overflow-auto">
162-
<Card.Header>Terminal</Card.Header>
162+
<Card.Header>Output</Card.Header>
163163
<Card.Body>
164164

165165
<Card.Text>
@@ -170,7 +170,7 @@ const tutfunc = (TutorialCode) =>{
170170

171171
</Card.Body>
172172
</Card>
173-
<Button onClick={handleInputBox}>Custom Input</Button>
173+
174174

175175
{/*Tutorial Card Component */}
176176
{showTutorial
@@ -198,8 +198,8 @@ const tutfunc = (TutorialCode) =>{
198198
}
199199

200200
{/* Input Box to provide input for program */}
201-
<div>
202-
201+
<br/>
202+
<Button onClick={handleInputBox}>User Input</Button>
203203
{inputOn ? <InputBox value={input} onChange={handleInputChange}/> : null} {/*toggle for input */}
204204

205205

@@ -232,7 +232,7 @@ const tutfunc = (TutorialCode) =>{
232232
</Modal>
233233
</div>
234234

235-
</div>
235+
236236

237237
</div>
238238
</div>

frontend/src/InputBox.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,7 @@ export default function InputBox(props){
88
<>
99
<Form>
1010
<Form.Group>
11-
<Form.Label>Custom Input</Form.Label>
12-
<Form.Control value={props.value} onChange={props.onChange} as="textarea" rows={3} />
11+
<Form.Control placeholder="Enter your input..." value={props.value} onChange={props.onChange} as="textarea" rows={3} />
1312
</Form.Group>
1413
</Form>
1514
</>

0 commit comments

Comments
 (0)