From 84b8803e8c29b22d5b240506bd68f40ae62888f1 Mon Sep 17 00:00:00 2001 From: kittykat Date: Thu, 25 Jan 2024 07:46:28 +0530 Subject: [PATCH] initial round countdown --- assets/css/style.css | 158 ++++++++++++++++++++++++++++++- assets/css/test.html | 61 ++++++++++++ assets/js/main.js | 44 +++++++++ index.html | 220 ++++++++++--------------------------------- 4 files changed, 309 insertions(+), 174 deletions(-) create mode 100644 assets/css/test.html diff --git a/assets/css/style.css b/assets/css/style.css index 66efbd8..d86bd88 100644 --- a/assets/css/style.css +++ b/assets/css/style.css @@ -408,9 +408,19 @@ h6 { vertical-align: middle; } .glitch-container { - display: flex; - align-items: center; + max-width: 1200px; + margin: 0 auto; /* Center the container horizontally */ + font-size: 35px; + text-transform: uppercase; /* Convert text to uppercase */ + color: #38BEA6; /* Set the font color to a blue shade (you can change the color as needed) */ +} + +@media (max-width: 600px) { + .glitch-container { + padding: 10px; + } } + .background-image { width: 90%; height: auto; @@ -2332,7 +2342,149 @@ filter: blur(2px); */ } } +/* styles for newly added hero section before initial round */ + +#countdown { + position: center; + font-size: 3em; + color: #00FFED; /* Change the font color */ +} + +@media (max-width: 768px) { + #countdown { + font-size: 2em; + position: center; + } +} + +@media (max-width: 480px) { + #countdown { + font-size: 1.5em; + position: center; + } +} + +.buttonContainer { + position: absolute; + bottom: 40px; /* Adjust the distance from the bottom */ + left: 50%; /* Center the button horizontally */ + transform: translateX(-50%); + display: flex; + +} + +.buttonContainer .inner-border { + margin-right: 35px; /* Adjust the margin between buttons */ + position: relative; + +} + +.buttonContainer .inner-border:hover .button { + background-color: #00FFED; + color: #000000; + border-color: #00FFED; +} + +.buttonContainer .inner-border:hover { + border-color: #00FFED; +} + +.buttonContainer .inner-border:hover .text-container { + color: #00FFED; +} + +.inner-border { + width: 150px; + height: 150px; + padding: 16px 18px; + border: 2px solid #ADADAD; + border-radius: 10px; + color: #ADADAD; + transition: border-color 0.3s ease, color 0.3s ease; +} + +.button { + position: absolute; + right: 18px; + bottom: 18px; + width: 35px; + height: 35px; + background-color: #ADADAD; + padding: 2px; + border: 2px solid #ADADAD; + border-radius: 5px; + transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease; +} + +.arrow { + font-size: 1em; + color: transparent; +} + +/* Media Query for Mobile Responsiveness */ +@media (max-width: 767px) { + .buttonContainer { + flex-direction: row; + position: absolute; + bottom: -5px; + left: 50%; /* Center the button horizontally */ + transform: translateX(-50%); /* Adjust to center the button */ + display: flex; + + } + + .buttonContainer .inner-border { + margin-right: 0; + margin-right: 35px; + } +} + +/* Existing Styles */ + +/* Additional Styles for Larger Border */ +.inner-border.large-border { + width: 200px; /* Adjust the width as needed */ + height: 150px; + margin-left: 550px; + +} + +/* Media Query for Mobile Responsiveness */ +@media (max-width: 767px) { + .buttonContainer { + position: absolute; + left: 50%; /* Center the button horizontally */ + transform: translateX(-50%); /* Adjust to center the button */ + display: flex; + + } + + /* Existing Styles */ + +/* Additional Styles for Larger Border */ + .inner-border { + width: auto; /* Adjust the width as needed */ + height: 120px; /* Adjust the height as needed */ + margin-right: 5px; + margin-bottom: 15px; + font-size: 0.78em; + } + .inner-border.large-border { + width: auto; /* Adjust the width as needed */ + height: 120px; /* Adjust the height as needed */ + margin-right: 5px; + margin-bottom: 15px; + margin-left: 0px; + font-size: 0.78em; + } + .button { + width: 28px; /* Adjust the width as needed for mobile */ + height: 28px; /* Adjust the height as needed for mobile */ + padding: 1px; /* Adjust the padding as needed for mobile */ + } + +} +/* end of styles for newly added hero section before initial round */ -/* form */ \ No newline at end of file diff --git a/assets/css/test.html b/assets/css/test.html new file mode 100644 index 0000000..c41479b --- /dev/null +++ b/assets/css/test.html @@ -0,0 +1,61 @@ + + + + + + Countdown Timer + + + + +
+ + + + + diff --git a/assets/js/main.js b/assets/js/main.js index 96bdc1a..7bd50f9 100644 --- a/assets/js/main.js +++ b/assets/js/main.js @@ -294,5 +294,49 @@ * Initiate Pure Counter */ new PureCounter(); + + + //countDown + + const countDownDate = new Date("Jan 31, 2024 00:00:00").getTime(); + + // Update the countdown every 1 second + const x = setInterval(function() { + + // Get the current date and time + const now = new Date().getTime(); + + // Calculate the remaining time + const distance = countDownDate - now; + + // Calculate days, hours, minutes, and seconds + const days = Math.floor(distance / (1000 * 60 * 60 * 24)); + const hours = Math.floor((distance % (1000 * 60 * 60 * 24)) / (1000 * 60 * 60)); + const minutes = Math.floor((distance % (1000 * 60 * 60)) / (1000 * 60)); + const seconds = Math.floor((distance % (1000 * 60)) / 1000); + + // Specify the multiplier for spaces + const spaceMultiplier = 7; + + // Generate the non-breaking spaces based on the multiplier + const spaces = " ".repeat(spaceMultiplier); + + // Set the countdown with increased spaces + document.getElementById("countdown").innerHTML = `${days} DAYS${spaces} + ${hours} HOURS${spaces} + ${minutes} MINUTES${spaces} + ${seconds} SECONDS`; + + // If the countdown is over, display a message + if (distance < 0) { + clearInterval(x); + document.getElementById("countdown").innerHTML = "EXPIRED"; + } + }, 1000); + + function handleButtonClick(buttonName) { + // Handle button click event (customize as needed) + alert(`You clicked ${buttonName}`); + } })() \ No newline at end of file diff --git a/index.html b/index.html index f608e76..3792c29 100644 --- a/index.html +++ b/index.html @@ -54,6 +54,8 @@ + + @@ -100,11 +102,51 @@
- + +

Initial round Design challenge drops in

+

+
+ +
+ +
+
+
REVOLUX
+
STORE
+
+ + + +
+ + +
+
+
DELEGATE
+
BOOKLET
+
+ + + +
+ + +
+
+
WORKSHOP 2
+
PARTICIPATION CONFIRMATION
+
+ + + +
+
+ +

@@ -201,133 +243,7 @@

What is RevolUX ?

- - - - - - - - - - - - - -
@@ -464,21 +380,7 @@

- - +
@@ -723,7 +625,7 @@
Dinu Jayatissa
Didulanka Gamage

AIESEC in University of Colombo

- +
@@ -740,7 +642,7 @@
Didulanka Gamage
Ayeshini Kulathunga

The IEEE Student Branch of UCSC

- +
@@ -772,34 +674,7 @@
Chanuli Indigahawela
- - -
@@ -868,5 +743,8 @@

Call Us

+ + +