@@ -27,21 +27,28 @@ const useStyles = makeStyles({
27
27
textAlign : 'center' ,
28
28
display : 'flex' ,
29
29
alignItems : 'center' ,
30
- justifyContent : 'center ' ,
31
- paddingLeft : '35px' ,
30
+ justifyContent : 'space-between ' ,
31
+ // paddingLeft: '35px',
32
32
marginBottom : '15px'
33
33
} ,
34
+ addComponentWrapper : {
35
+ border : '1px solid rgba(70,131,83)' ,
36
+ padding : '20px' ,
37
+ margin : '20px'
38
+ } ,
34
39
rootCheckBox : { } ,
35
40
rootCheckBoxLabel : {
36
41
color : 'white'
37
42
} ,
38
43
projectTypeWrapper : {
39
- paddingLeft : '35px' ,
40
- marginBottom : '15px'
44
+ paddingLeft : '20px' ,
45
+ paddingRight : '20px' ,
46
+ marginBottom : '15px' ,
47
+ width : '100%'
41
48
} ,
42
49
projectSelector : {
43
50
backgroundColor : 'rgba(255,255,255,0.15)' ,
44
- width : '100% ' ,
51
+ width : '317px ' ,
45
52
color : '#fff'
46
53
} ,
47
54
panelWrapper : {
@@ -84,9 +91,10 @@ const useStyles = makeStyles({
84
91
} ,
85
92
button : {
86
93
fontSize : '1rem' ,
87
- height : '70px ' ,
94
+ height : '40px ' ,
88
95
maginTop : '10px' ,
89
- border : '1px solid rgba(70,131,83)' ,
96
+ width : '100%' ,
97
+ // border: '1px solid rgba(70,131,83)',
90
98
backgroundColor : 'rgba(1,212,109,0.1)'
91
99
} ,
92
100
rootToggle : {
@@ -193,8 +201,8 @@ const ComponentPanel = (): JSX.Element => {
193
201
< div className = { classes . projectTypeWrapper } >
194
202
< FormControl >
195
203
{ /* <InputLabel id="project-type-label" className={classes.inputLabel}>
196
- Project Type
197
- </InputLabel> */ }
204
+ Project Type
205
+ </InputLabel> */ }
198
206
< Select
199
207
variant = "outlined"
200
208
labelId = "project-type-label"
@@ -208,35 +216,42 @@ const ComponentPanel = (): JSX.Element => {
208
216
</ Select >
209
217
</ FormControl >
210
218
</ div >
211
- < div className = { classes . inputWrapper } >
212
- < TextField
213
- color = { 'primary' }
214
- label = "Component Name"
215
- variant = "outlined"
216
- className = { classes . inputField }
217
- InputProps = { { className : classes . input } }
218
- InputLabelProps = { { className : classes . inputLabel } }
219
- value = { compName }
220
- error = { errorStatus }
221
- helperText = { errorStatus ? errorMsg : '' }
222
- onChange = { handleNameInput }
223
- />
224
- < div className = { classes . btnGroup } >
225
- < FormControlLabel
226
- value = "top"
227
- control = { < Checkbox color = "primary" onChange = { toggleRootStatus } /> }
228
- label = { state . projectType === 'Next.js' ? 'Page' : 'Root' }
229
- className = { classes . rootCheckBoxLabel }
230
- labelPlacement = "top"
231
- />
219
+
220
+ < div className = { classes . addComponentWrapper } >
221
+ < div >
222
+ < div className = { classes . inputWrapper } >
223
+ < TextField
224
+ color = { 'primary' }
225
+ label = "Component Name"
226
+ variant = "outlined"
227
+ className = { classes . inputField }
228
+ InputProps = { { className : classes . input } }
229
+ InputLabelProps = { { className : classes . inputLabel } }
230
+ value = { compName }
231
+ error = { errorStatus }
232
+ helperText = { errorStatus ? errorMsg : '' }
233
+ onChange = { handleNameInput }
234
+ />
235
+ < div className = { classes . btnGroup } >
236
+ < FormControlLabel
237
+ value = "top"
238
+ control = {
239
+ < Checkbox color = "primary" onChange = { toggleRootStatus } />
240
+ }
241
+ label = { state . projectType === 'Next.js' ? 'Page' : 'Root' }
242
+ className = { classes . rootCheckBoxLabel }
243
+ labelPlacement = "top"
244
+ />
245
+ </ div >
246
+ </ div >
247
+ < Button
248
+ className = { classes . button }
249
+ color = "primary"
250
+ onClick = { handleNameSubmit }
251
+ >
252
+ ADD
253
+ </ Button >
232
254
</ div >
233
- < Button
234
- className = { classes . button }
235
- color = "primary"
236
- onClick = { handleNameSubmit }
237
- >
238
- ADD
239
- </ Button >
240
255
</ div >
241
256
< div className = { classes . panelWrapperList } >
242
257
< h4 > { state . projectType === 'Next.js' ? 'Pages' : 'Root components' } </ h4 >
0 commit comments