Skip to content

Commit 9b6ac5f

Browse files
Style header
1 parent 05049a5 commit 9b6ac5f

3 files changed

Lines changed: 39 additions & 38 deletions

File tree

app/components/Header.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@ const Header: React.SFC<HeaderProps> = ({ app, service, setLive, live }) => {
3030
</option>
3131
</select>
3232
<div className="header-btns">
33+
<button onClick={() => history.goBack()}>Return to Applications</button>
3334
<button onClick={() => setLive(!live)}>
3435
{live ? (
3536
<div>
@@ -39,7 +40,6 @@ const Header: React.SFC<HeaderProps> = ({ app, service, setLive, live }) => {
3940
<div>Gather Live Data</div>
4041
)}
4142
</button>
42-
<button onClick={() => history.goBack()}>Return to Applications</button>
4343
</div>
4444
</div>
4545
);

app/stylesheets/Header.scss

Lines changed: 26 additions & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -2,60 +2,50 @@
22

33
.microservice-header {
44
width: 100%;
5-
display: flex;
5+
@include centerWithFlex(center);
66
flex-direction: column;
7-
align-items: center;
8-
justify-self: center;
9-
padding: 30px 0;
10-
background-color: $headerblue;
11-
color: #fff;
7+
padding: 30px 0 50px;
8+
background-color: $headergray;
9+
color: #333;
1210
margin-bottom: 30px;
13-
}
1411

15-
.microservice-header h1 {
16-
font-size: 350%;
17-
margin: 0;
12+
h1 {
13+
font-size: 425%;
14+
font-weight: 700;
15+
letter-spacing: 2px;
16+
margin: 0;
17+
}
1818
}
1919

2020
select {
2121
width: 250px;
22-
text-align: center;
2322
padding: 5px 35px;
2423
font-size: 100%;
2524
border: 1px solid #ccc;
2625
height: 30px;
2726
appearance: none;
27+
cursor: pointer;
2828
margin: 15px auto;
2929
}
3030

3131
.header-btns {
3232
display: flex;
33-
}
3433

35-
.header-btns button {
36-
margin: 0 10px;
37-
font-size: 115%;
38-
padding: 10px;
39-
}
40-
41-
/* Live data dot */
42-
.dot {
43-
background-color: red;
44-
display: inline-block;
45-
height: 10px;
46-
width: 10px;
47-
border-radius: 50%;
48-
margin-right: 5px;
49-
animation: blink 1s infinite;
50-
}
34+
button {
35+
margin: 0 10px;
36+
font-size: 115%;
37+
letter-spacing: 1px;
38+
padding: 10px;
5139

52-
@keyframes blink {
53-
0%,
54-
65% {
55-
background-color: red;
56-
}
57-
66%,
58-
100% {
59-
background-color: rgb(170, 1, 1);
40+
/* Live data dot */
41+
.dot {
42+
background-color: red;
43+
display: inline-block;
44+
height: 10px;
45+
width: 10px;
46+
border-radius: 50%;
47+
margin-right: 5px;
48+
animation: blink 1s infinite;
49+
}
6050
}
6151
}

app/stylesheets/constants.scss

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,20 @@
11
$brandgold: #fce356;
22
$sidebarblue: #24262f;
3-
$headerblue: #484e63;
3+
$headergray: #dedede;
44

55
@mixin centerWithFlex($justify: center) {
66
display: flex;
77
align-items: center;
88
justify-content: $justify;
99
}
10+
11+
@keyframes blink {
12+
0%,
13+
65% {
14+
background-color: red;
15+
}
16+
66%,
17+
100% {
18+
background-color: rgb(170, 1, 1);
19+
}
20+
}

0 commit comments

Comments
 (0)