Skip to content

Commit b9c6eec

Browse files
committed
add banner
1 parent 9e5dfaf commit b9c6eec

File tree

5 files changed

+36
-9
lines changed

5 files changed

+36
-9
lines changed

src/css/style.css

Lines changed: 27 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,32 @@
1313
See the License for the specific language governing permissions and
1414
limitations under the License.
1515
*/
16-
17-
/* layout */
16+
.banner {
17+
width: 100%;
18+
height: 200px;
19+
position: relative;
20+
background-image: url("../images/banner.jpg");
21+
background-size: cover;
22+
background-position: center;
23+
}
24+
.logo {
25+
position: absolute;
26+
left: 50%;
27+
top: 50%;
28+
transform: translate(-50%, -50%);
29+
}
30+
.banner p {
31+
width: 100%;
32+
position: absolute;
33+
left: 0;
34+
top: calc(50% + 50px);
35+
transform: translateY(-50%);
36+
font-family: "Amazon Ember", Arial, Helvetica, Sans-serif;
37+
font-size: x-large;
38+
color: #689a68;
39+
font-weight: bold;
40+
text-align: center;
41+
}
1842
.ribbon {
1943
background-color: #003D06;
2044
overflow: hidden;
@@ -58,7 +82,7 @@ body {
5882
height: 150px;
5983
}
6084
.row.content {
61-
top:150px;
85+
top:200px;
6286
bottom: 0;
6387
}
6488

src/images/banner.jpg

217 KB
Loading

src/images/logo.png

14 KB
Loading

src/index.html

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -44,14 +44,17 @@
4444
</head>
4545
<body ng-cloak>
4646

47-
<div class="ribbon">
47+
<div class="ribbon" style="z-index: 1;">
4848
<a href="https://github.com/Lightstreamer/Lightstreamer-example-ISSLive-client-javascript">Fork me on GitHub</a>
4949
</div>
5050

51-
<div id="header" class="row">
52-
<h1>International Space Station Live!</h1>
53-
<h2>Telemetry Console</h2>
54-
</div>
51+
<div class="banner">
52+
<img src="images/logo.png" alt="Logo" class="logo">
53+
<p>
54+
International Space Station Live!<br>
55+
Telemetry Console
56+
</p>
57+
</div>
5558

5659
<div class="content row">
5760

src/js/lsClient.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616

1717
define(["LightstreamerClient","StatusWidget"],function(LightstreamerClient,StatusWidget) {
1818
var lsClient = new LightstreamerClient("https://push.lightstreamer.com","ISSLIVE");
19-
lsClient.addListener(new StatusWidget("right", "0px", true));
19+
lsClient.addListener(new StatusWidget("left", "0px", true));
2020
lsClient.addListener({
2121
onStatusChange: function(newStatus) {
2222
console.log("Client status:" + newStatus);

0 commit comments

Comments
 (0)