Skip to content

Commit 2da7b56

Browse files
Restyle the modals
1 parent b375ac5 commit 2da7b56

4 files changed

Lines changed: 32 additions & 10 deletions

File tree

app/modals/AddModal.tsx

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,10 @@ const AddModal: React.FC<AddModalProps> = ({ setOpen }) => {
4646
const { database, URI, name } = fields;
4747
return (
4848
<div className="add-container">
49-
<h2>Enter Your Database Information</h2>
49+
<div className="add-header">
50+
<h2>Add an Application</h2>
51+
<p>Enter the database information used to track the service</p>
52+
</div>
5053
<form onSubmit={handleSubmit}>
5154
<div className="input-field">
5255
<label htmlFor="db-type">Type</label>

app/stylesheets/AddModal.scss

Lines changed: 16 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,17 @@
44
@include centerModal();
55

66
/* Header */
7-
h2 {
8-
@include modalHeader();
7+
.add-header {
8+
padding: 20px 30px;
9+
text-align: center;
10+
border-bottom: thin solid $lightgray;
11+
background-color: $headergray;
12+
border-top-left-radius: 5px;
13+
border-top-right-radius: 5px;
14+
15+
h2 {
16+
@include modalHeader();
17+
}
918
}
1019

1120
/* Form */
@@ -54,19 +63,19 @@
5463
button {
5564
font-size: 115%;
5665
width: 50%;
57-
color: #333;
58-
background-color: transparent;
66+
color: #fff;
67+
background-color: $sidebarblue;
5968
transition: 0.1s;
6069
margin: 20px 0;
6170
font-weight: 400;
6271
letter-spacing: 2px;
63-
border: 2px solid #333;
72+
border: thin solid $sidebarblue;
6473
padding: 4px;
6574
text-transform: uppercase;
6675

6776
&:hover {
68-
color: #fff;
69-
background-color: #333;
77+
color: $sidebarblue;
78+
background-color: lighten($sidebarblue, 65%);
7079
}
7180
}
7281
}

app/stylesheets/ServicesModal.scss

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,29 @@
11
@import './constants.scss';
22

33
.services-container {
4-
@include centerModal(400px);
5-
padding: 20px 20px 30px;
4+
@include centerModal(375px);
65

76
// Header
87
.services-header {
8+
background-color: $headergray;
9+
width: 100%;
10+
padding: 0 0 15px;
911
text-align: center;
1012
margin-bottom: 20px;
13+
border-bottom: thin solid $lightgray;
14+
border-top-left-radius: 5px;
15+
border-top-right-radius: 5px;
16+
1117
h2 {
1218
@include modalHeader();
19+
margin-top: 15px;
20+
margin-bottom: 5px;
1321
}
1422
}
1523

1624
// Buttons
1725
.services-links {
26+
padding: 0 0 30px;
1827
width: 100%;
1928

2029
.link {

app/stylesheets/constants.scss

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ $lightgray: #c3c3c3;
1818
transform: translate(-50%, -50%);
1919
border-radius: 5px;
2020
width: $width;
21+
min-height: 100px;
2122
background-color: #f4f4f4;
2223
}
2324

0 commit comments

Comments
 (0)