aboutsummaryrefslogtreecommitdiff
path: root/static
diff options
context:
space:
mode:
authorVidhu Kant Sharma <bokuwakanojogahoshii@yahoo.com>2021-04-20 15:46:06 +0530
committerVidhu Kant Sharma <bokuwakanojogahoshii@yahoo.com>2021-04-20 15:46:06 +0530
commitaa15d59e35523c7210e962ab367e56f68467317b (patch)
treea1dbaeeb4b1d803d3fc9a6de3637f90de89daf79 /static
parent9b9875c34b336fac5932d514746be7c1470dce54 (diff)
styled the form and completed the mechanism to only render page on midnightHEADmaster
Diffstat (limited to 'static')
-rw-r--r--static/css/old/style.css5
-rw-r--r--static/css/style.css43
-rw-r--r--static/scripts/CheckTime.js4
3 files changed, 50 insertions, 2 deletions
diff --git a/static/css/old/style.css b/static/css/old/style.css
index 281322d..d7326bf 100644
--- a/static/css/old/style.css
+++ b/static/css/old/style.css
@@ -27,6 +27,10 @@ input[type=text] {
margin: 0;
box-sizing: border-box;
color: red;
+
+ border-radius: 3px;
+ border: none;
+ outline: none;
}
input[type=submit] {
@@ -39,4 +43,5 @@ input[type=submit] {
input[type=submit]:hover {
background-color: #A0A8C8;
+ border: none;
}
diff --git a/static/css/style.css b/static/css/style.css
index fa54eee..5b367d6 100644
--- a/static/css/style.css
+++ b/static/css/style.css
@@ -12,6 +12,27 @@ body {
margin-bottom: 2.5rem;
background-color: #222526;
overflow: hidden;
+
+ display: flex;
+ flex-direction: row;
+ justify-content: space-between;
+ align-items: center;
+}
+
+.navbar p,
+.navbar nav {
+ display: inline-block;
+ margin: auto 2rem;
+}
+
+.navbar p {
+ font-size: 2rem;
+}
+
+nav a {
+ color: pink;
+ text-decoration: none;
+ padding: 0.5rem;
}
.root {
@@ -45,6 +66,13 @@ form input {
input[type=text] {
height: 2rem;
box-sizing: border-box;
+ outline: none;
+
+ color: #FF0000;
+}
+
+input[type=text]:hover {
+ outline-color: red;
}
#submit-button {
@@ -79,9 +107,20 @@ h1, h3 {
@media only screen and (max-device-width: 480px) {
.content {
- margin: auto;
+ margin: auto;
}
form {
- width: 100%;
+ width: 100%;
}
+ .navbar p,
+ .navbar nav {
+ display: inline-block;
+ margin: auto 0.5rem;
+ }
+ nav a {
+ margin: 0;
+ }
+ .navbar p {
+ font-size: 2rem;
+ }
}
diff --git a/static/scripts/CheckTime.js b/static/scripts/CheckTime.js
new file mode 100644
index 0000000..7c806c5
--- /dev/null
+++ b/static/scripts/CheckTime.js
@@ -0,0 +1,4 @@
+var timeHours = new Date().getHours();
+if (timeHours != 00) {
+ window.location = "about:blank"
+}