Skip to content

Commit 6f629ff

Browse files
committed
background
1 parent 30d64f7 commit 6f629ff

File tree

6 files changed

+48
-58
lines changed

6 files changed

+48
-58
lines changed

css/components/clock.css

+4-4
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
position: relative;
88
width: 80px;
99
height: 80px;
10-
border: 2px solid #dfdfdf;
10+
border: 2px solid #858585;
1111
border-radius: 50%;
1212
margin-bottom: 1rem;
1313
}
@@ -40,15 +40,15 @@
4040
left: 9.25px;
4141
height: 2px;
4242
width: 31px;
43-
background-color: #a78277;
43+
background-color: #6f6f6f;
4444
}
4545
.second-hand {
4646
top: 39.25px;
4747
left: 6px;
4848
height: 1.5px;
4949
width: 34px;
50-
background-color: #a28282;
50+
background-color: #414141;
5151
}
5252
#electronic-watch {
53-
color: #ebebeb;
53+
color: #616161;
5454
}

css/components/components.css

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
body {
1+
.background {
22
width: 100vw;
33
display: flex;
44
justify-content: center;

css/components/login-form.css

+5-15
Original file line numberDiff line numberDiff line change
@@ -3,40 +3,30 @@
33
opacity: 1;
44
}
55
to {
6-
display: none;
7-
box-shadow: none;
86
opacity: 0;
97
}
108
}
119
@keyframes blur {
1210
from {
13-
filter: blur(10px);
11+
filter: blur(1rem);
1412
}
1513
to {
1614
filter: blur(0);
1715
}
1816
}
19-
.border {
20-
animation: border-off 1.5s ease-in-out forwards;
17+
.blur {
18+
filter: blur(1rem);
2119
}
2220
.disappear {
2321
animation: disappear 1.5s ease-in-out forwards;
2422
}
25-
.hidden {
26-
display: none;
27-
box-shadow: none;
28-
opacity: 0;
29-
}
30-
.blur {
31-
filter: blur(10px);
32-
}
3323
.blur-off {
3424
animation: blur 1.5s ease-in-out forwards;
3525
}
3626
#login-div {
3727
position: absolute;
38-
height: 98vh;
39-
width: 98vw;
28+
height: 100vh;
29+
width: 100vw;
4030
display: flex;
4131
justify-content: center;
4232
align-items: center;

css/style.css

+1-3
Original file line numberDiff line numberDiff line change
@@ -4,14 +4,12 @@
44
@import "components/quote.css";
55
@import "components/day.css";
66
@import "components/greeting.css";
7-
@import "img/images.css";
87
@import "components/todo.css";
98
@import "components/weather.css";
9+
@import "img/images.css";
1010

1111
* {
1212
font-family: "SamsungOne 400", "SamsungOne 700";
13-
}
14-
body {
1513
margin: 0;
1614
}
1715
body::-webkit-scrollbar {

index.html

+34-32
Original file line numberDiff line numberDiff line change
@@ -16,40 +16,42 @@
1616
<input type="submit" value="Log In" />
1717
</form>
1818
</div>
19-
<main class="blur">
20-
<section class="component watch">
21-
<div id="clock">
22-
<div id="watch-dot"></div>
23-
<div class="hand hour-hand"></div>
24-
<div class="hand minute-hand"></div>
25-
<div class="hand second-hand"></div>
26-
</div>
27-
<span id="electronic-watch"></span>
28-
</section>
29-
<section class="component day">
30-
<span id="dayOfWeek"></span>
31-
<span id="day"></span>
32-
</section>
33-
<section class="component greet">
34-
<span id="greeting"></span>
35-
</section>
36-
<section class="component todo">
37-
<div id="todo-list"></div>
38-
<form autocomplete="off" id="todo-form">
39-
<input id="todo-input" type="text" placeholder="Write a To Do here" required />
40-
</form>
41-
</section>
42-
<section class="component weather">
43-
<span></span>
44-
<span></span>
45-
</section>
46-
<section class="component quotes">
47-
<div id="quote">
19+
<div class="background blur">
20+
<main>
21+
<section class="component watch">
22+
<div id="clock">
23+
<div id="watch-dot"></div>
24+
<div class="hand hour-hand"></div>
25+
<div class="hand minute-hand"></div>
26+
<div class="hand second-hand"></div>
27+
</div>
28+
<span id="electronic-watch"></span>
29+
</section>
30+
<section class="component day">
31+
<span id="dayOfWeek"></span>
32+
<span id="day"></span>
33+
</section>
34+
<section class="component greet">
35+
<span id="greeting"></span>
36+
</section>
37+
<section class="component todo">
38+
<div id="todo-list"></div>
39+
<form autocomplete="off" id="todo-form">
40+
<input id="todo-input" type="text" placeholder="Write a To Do here" required />
41+
</form>
42+
</section>
43+
<section class="component weather">
4844
<span></span>
4945
<span></span>
50-
</div>
51-
</section>
52-
</main>
46+
</section>
47+
<section class="component quotes">
48+
<div id="quote">
49+
<span></span>
50+
<span></span>
51+
</div>
52+
</section>
53+
</main>
54+
</div>
5355
<script src="js/greetings.js"></script>
5456
<script src="js/clock.js"></script>
5557
<script src="js/quotes.js"></script>

js/background.js

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
const images = ["img1", "img2", "img3", "img4", "img5", "img6", "img7", "img8", "img9", "img10", "img11", "img12", "img13", "img14", "img15", "img16", "img17", "img18"];
22

33
const chosenImage = images[Math.floor(Math.random() * images.length)];
4-
5-
document.body.classList.add("bg");
6-
document.body.classList.add(chosenImage);
4+
const main = document.querySelector(".background");
5+
main.classList.add("bg");
6+
main.classList.add(chosenImage);

0 commit comments

Comments
 (0)