Skip to content

Commit 05cca26

Browse files
committed
Add background
1 parent 50642b8 commit 05cca26

File tree

4 files changed

+5
-3
lines changed

4 files changed

+5
-3
lines changed

.DS_Store

2 KB
Binary file not shown.

clock_demo/.DS_Store

6 KB
Binary file not shown.

clock_demo/background.png

340 KB
Loading

clock_demo/index.html

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,14 +9,14 @@
99
display: flex;
1010
justify-content: center;
1111
align-items: center;
12-
height: 100vh;
12+
height: 90vh;
1313
background: white;
1414
}
1515

1616
.clock {
1717
position: relative;
18-
width: 300px;
19-
height: 300px;
18+
width: 600px;
19+
height: 600px;
2020
}
2121

2222
.hand {
@@ -28,6 +28,7 @@
2828
}
2929

3030
/* Optional sizing */
31+
.background { height: 600px; }
3132
#hours { height: 600px; }
3233
#minutes { height: 600px; }
3334
#seconds { height: 600px; }
@@ -36,6 +37,7 @@
3637

3738
<body>
3839
<div class="clock">
40+
<img src="background.png" class="background" alt="Clock background">
3941
<img src="hours.png" id="hours" class="hand">
4042
<img src="minutes.png" id="minutes" class="hand">
4143
<img src="seconds.png" id="seconds" class="hand">

0 commit comments

Comments
 (0)