File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11import React , { useState , useContext } from 'react' ;
22import { DashboardContext } from '../context/DashboardContext' ;
3- import '../stylesheets/AddModal.css ' ;
3+ import '../stylesheets/AddModal.scss ' ;
44
55interface IFields {
66 database : string ;
@@ -49,7 +49,7 @@ const AddModal: React.FC<AddModalProps> = ({ setOpen }) => {
4949 < h2 > Enter Your Database Information</ h2 >
5050 < form onSubmit = { handleSubmit } >
5151 < div className = "input-field" >
52- < label htmlFor = "db-type" > Type: </ label >
52+ < label htmlFor = "db-type" > Type</ label >
5353 < select id = "db-type" name = "database" value = { database } onChange = { e => handleChange ( e ) } >
5454 < option value = "SQL" > SQL</ option >
5555 < option value = "MongoDB" > MongoDB</ option >
@@ -78,7 +78,7 @@ const AddModal: React.FC<AddModalProps> = ({ setOpen }) => {
7878 required
7979 />
8080 </ div >
81- < button className = "submitBtn" > Submit</ button >
81+ < button > Submit</ button >
8282 </ form >
8383 </ div >
8484 ) ;
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 1+ @import ' ./constants.scss' ;
2+
3+ .add-container {
4+ position : absolute ;
5+ top : 50% ;
6+ left : 50% ;
7+ transform : translate (-50% , -50% );
8+ padding : 50px 40px ;
9+ background-color : #f4f4f4 ;
10+ border-radius : 5px ;
11+ width : 50% ;
12+ max-width : 600px ;
13+
14+ /* Header */
15+ h2 {
16+ margin : 0 auto 35px ;
17+ text-align : center ;
18+ font-weight : 700 ;
19+ font-size : 200% ;
20+ color : #333 ;
21+ }
22+
23+ /* Form */
24+ form {
25+ @include centerWithFlex (center , column );
26+ padding : 0 30px ;
27+
28+ div {
29+ & :first-of-type {
30+ margin-top : 0 ;
31+ }
32+
33+ @include centerWithFlex (space-between );
34+ width : 100% ;
35+ margin : 15px 0 ;
36+
37+ /* Text input */
38+ input {
39+ height : 30px ;
40+ border : thin solid $lightgray ;
41+ border-radius : 3px ;
42+ flex : 1 ;
43+ font-family : inherit ;
44+ font-size : 100% ;
45+ padding : 5px ;
46+ }
47+
48+ /* Select field */
49+ select {
50+ appearance : none ;
51+ cursor : pointer ;
52+ height : 30px ;
53+ border : thin solid $lightgray ;
54+ flex : 1 ;
55+ font-size : 100% ;
56+ }
57+
58+ label {
59+ width : 100px ;
60+ font-size : 135% ;
61+ font-weight : 400 ;
62+ }
63+ }
64+
65+ /* Submit button */
66+ button {
67+ font-size : 115% ;
68+ width : 50% ;
69+ color : #333 ;
70+ background-color : transparent ;
71+ transition : 0.1s ;
72+ margin : 20px 0 ;
73+ font-weight : 400 ;
74+ letter-spacing : 2px ;
75+ border : 2px solid #333 ;
76+ padding : 4px ;
77+ text-transform : uppercase ;
78+
79+ & :hover {
80+ color : #fff ;
81+ background-color : #333 ;
82+ }
83+ }
84+ }
85+ }
86+
87+ ::placeholder {
88+ color : rgb (201 , 201 , 201 );
89+ }
Original file line number Diff line number Diff line change @@ -21,7 +21,7 @@ select {
2121 width : 250px ;
2222 padding : 5px 35px ;
2323 font-size : 100% ;
24- border : 1 px solid #ccc ;
24+ border : thin solid #ccc ;
2525 height : 30px ;
2626 appearance : none ;
2727 cursor : pointer ;
Original file line number Diff line number Diff line change @@ -3,10 +3,11 @@ $sidebarblue: #24262f;
33$headergray : #e8e8e8 ;
44$lightgray : #c3c3c3 ;
55
6- @mixin centerWithFlex ($justify : center ) {
6+ @mixin centerWithFlex ($justify : center , $direction : row ) {
77 display : flex ;
88 align-items : center ;
99 justify-content : $justify ;
10+ flex-direction : $direction ;
1011}
1112
1213@keyframes blink {
Original file line number Diff line number Diff line change 11@import url (' https://fonts.googleapis.com/css?family=Baloo+Bhaijaan&display=swap' );
2- @import url (' https://fonts.googleapis.com/css2?family=Nunito:wght@300;400;700 &family=Quicksand:wght@300&display=swap' );
2+ @import url (' https://fonts.googleapis.com/css2?family=Nunito+Sans :wght@300;400;600 &family=Quicksand:wght@300&display=swap' );
33@import ' ./constants.scss' ;
44
55* {
1515body {
1616 background-color : #f4f4f4 ;
1717 font-size : 16px ;
18- font-family : ' Nunito' , sans-serif ;
18+ font-family : ' Nunito sans ' , sans-serif ;
1919 font-weight : 300 ;
2020 overflow-x : hidden ;
2121}
You can’t perform that action at this time.
0 commit comments