Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit e7be0f6

Browse files
improved ui
1 parent 515ceda commit e7be0f6

File tree

3 files changed

+20
-4
lines changed

3 files changed

+20
-4
lines changed

‎src/count.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,10 @@ module.exports = function countdown(tick){
55
let count = 10;
66
var interval = setInterval(_ => {
77
tick(count--);
8-
if(count == 0){
8+
if(count == -1){
99

1010
clearInterval(interval);
1111
}
12-
},1000)
12+
},500)
1313

1414
}

‎src/index.css

Lines changed: 17 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,22 @@
11

2-
h1{
2+
3+
.title{
34

45
font-family: sans-serif;
56
}
67

8+
.container{
9+
10+
display: flex !important;
11+
flex-direction: column !important;
12+
justify-content: center !important;
13+
align-items: center;
14+
height: 100vh;
15+
}
16+
17+
.dispCount{
18+
19+
margin-bottom: 40px;
20+
font-size: 100px;
21+
}
22+

‎src/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
<body>
1212

1313
<div class="container">
14-
<h1> Welcome </h1>
14+
<h1class="title"> Welcome </h1>
1515

1616
<button id = "start" class="btn btn-success custom">click Me !</button>
1717

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /