diff --git a/views/home_page.ejs b/views/home_page.ejs index dcd3f7c..f7cdb47 100644 --- a/views/home_page.ejs +++ b/views/home_page.ejs @@ -115,21 +115,51 @@ position: absolute; bottom: 0; } - #demo { - font-size: 4rem; + + #time { + display: flex; + font-size: default; + width: 18rem; + height: 2rem; + justify-content: space-around; + /* font-family: 'Courier New', Courier, monospace; */ + } + + #clock { + display: flex; + font-size: 2.5rem; + font-family: 'Courier New', Courier, monospace; + font-weight: bold; + height: 3rem; + line-height: 3rem; + overflow: hidden; + position: relative; } - @media only screen and (max-width: 600px) { + .move{ + animation: move ease-in-out 1s infinite; + } + + @keyframes move { + from{ + transform: translateY(0); + } + to{ + transform: translateY(-5rem); + } + } + + /* @media only screen and (max-width: 600px) { .mobile_counters { font-size: 1rem; } - #demo { + #clock { font-size: 2rem; } .mobile_countdown { display: none; } - } + } */ /* BUTTON */ .glow-on-hover { @@ -359,8 +389,29 @@
-
-

+
+
+
0
+
0
+
:
+
0
+
0
+
:
+
0
+
0
+
:
+
0
+
0
+
+
+
Days
+
Hours
+
Mins
+
Secs
+
+ +
@@ -470,13 +521,13 @@
- + @@ -514,14 +565,13 @@ + + var first = true; + + function animateTime(last, now){ + if (first){ + for (var i = 0; i