File tree Expand file tree Collapse file tree 1 file changed +30
-20
lines changed Expand file tree Collapse file tree 1 file changed +30
-20
lines changed Original file line number Diff line number Diff line change 4
4
box-sizing : border-box;
5
5
}
6
6
7
- body {
8
-
7
+ body {
8
+ /* Use a background image that covers the whole body */
9
9
background-image : url (./ deepavali.jpg);
10
- background-size : contain;
10
+ background-size : cover; /* Changed to cover for better responsiveness */
11
11
background-position : center center;
12
+
13
+ /* Center content and provide a minimum height for the viewport */
12
14
display : flex;
13
15
flex-direction : column;
14
16
align-items : center;
15
17
min-height : 100vh ;
18
+
19
+ /* Set the font family and color for the text */
16
20
font-family : 'Roboto' , sans-serif;
17
- margin-top : 4 rem ;
18
- color : # ffae42 ;
21
+ margin : 0 ; /* Reset margin to remove default body margin */
22
+ color : # ffae42 ; /* Set the text color */
19
23
}
20
- .countdown-container {
24
+
25
+ /* Countdown container layout */
26
+ .countdown-container {
21
27
display : flex;
22
-
23
28
}
24
- h1 {
29
+
30
+ /* Main heading style */
31
+ h1 {
25
32
font-size : 4rem ;
26
- margin-top : 100 rem;
27
-
33
+ margin-top : 2rem ; /* Adjusted for a more reasonable top margin */
28
34
}
29
- .big-text {
35
+
36
+ /* Big text for countdown numbers */
37
+ .big-text {
30
38
font-weight : bold;
31
39
font-size : 8rem ;
32
- line-height : 0.5 ;
33
- margin : 1rem 2rem ;
34
-
40
+ line-height : 0.5 ; /* Adjusted for spacing between lines */
41
+ margin : 1rem 2rem ; /* Consistent margin around each number */
35
42
}
36
- .countdown-el {
43
+
44
+ /* Individual countdown element styling */
45
+ .countdown-el {
37
46
text-align : center;
38
- margin-left : 2rem ;
47
+ margin : 0 2rem ; /* Center text and space elements evenly */
39
48
}
40
- .countdown-el span {
41
- margin-left : -1 rem;
42
- margin-top : 50 rem;
49
+
50
+ /* Span styling for countdown labels */
51
+ .countdown-el span {
52
+ margin-top : 1rem ; /* Adjusted to provide proper spacing above the label */
43
53
font-size : 2rem ;
44
- }
54
+ }
You can’t perform that action at this time.
0 commit comments