Skip to content

Commit 8a9d0f1

Browse files
committed
done
1 parent c47d429 commit 8a9d0f1

File tree

3 files changed

+63
-16
lines changed

3 files changed

+63
-16
lines changed

My projects/Digital Clock/home.html

Lines changed: 16 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -13,21 +13,22 @@ <h1>Digital Clock</h1>
1313
</header>
1414

1515
<section>
16-
<div>
17-
<span id="hour">00</span>
18-
<span class="text">Hours</span>
19-
</div>
20-
<div>
21-
<span id="minutes">00</span>
22-
<span class="text">Minutes</span>
23-
</div>
24-
<div>
25-
<span id="seconds">00</span>
26-
<span class="text">Seconds</span>
27-
</div>
28-
<div>
29-
<span id="ampm">AM</span>
30-
16+
<div class="container">
17+
<div>
18+
<span id="hour">00</span>
19+
<span class="text">Hours</span>
20+
</div>
21+
<div>
22+
<span id="minutes">00</span>
23+
<span class="text">Minutes</span>
24+
</div>
25+
<div>
26+
<span id="seconds">00</span>
27+
<span class="text">Seconds</span>
28+
</div>
29+
<div>
30+
<span id="ampm">AM</span>
31+
</div>
3132
</div>
3233

3334
</section>
Loading

My projects/Digital Clock/styles.css

Lines changed: 47 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,5 +10,51 @@ body {
1010
align-items: center;
1111
height: 100vh;
1212
justify-content: center;
13-
background-image: url();
13+
background-image: url(images/shot-by-cerqueira-8qH4GSYBiSA-unsplash.jpg);
14+
background-repeat: no-repeat;
15+
background-size: cover;
16+
}
17+
.container{
18+
display: flex;
19+
}
20+
.heading{
21+
text-transform: uppercase;
22+
letter-spacing: 4px;
23+
text-align: center;
24+
font-size: 8px;
25+
color: rgb(243, 235, 235);
26+
text-shadow: 3px 2px 3px black;
27+
}
28+
.container div{
29+
margin: 5px;
30+
position:relative;
31+
color: aliceblue;
32+
}
33+
.container span{
34+
display: flex;
35+
align-items: center;
36+
justify-content: center;
37+
width: 100px;
38+
height: 80px;
39+
background-color: goldenrod;
40+
opacity: .8;
41+
font-size: 42px;
42+
text-shadow: 2px 2px 3px rgba(0,0,0,.6);
43+
}
44+
45+
.container .text{
46+
height: 30px;
47+
font-size: 15px;
48+
text-transform: uppercase;
49+
letter-spacing: 2px;
50+
background: rgb(93, 79, 184);
51+
opacity:.8;
52+
}
53+
.container #ampm{
54+
width: 50px;
55+
height: 30px;
56+
font-size: 20px;
57+
position: absolute;
58+
bottom: 0;
59+
background: goldenrod;
1460
}

0 commit comments

Comments
 (0)