-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
139 lines (123 loc) · 3.3 KB
/
index.html
File metadata and controls
139 lines (123 loc) · 3.3 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Login | SPORTSMART</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<style>
body {
margin: 0;
font-family: 'Segoe UI', sans-serif;
height: 100vh;
display: flex;
justify-content: center;
align-items: center;
background: linear-gradient(135deg,#5575c0, rgb(197, 40, 40));
}
/* Brand Name */
.brand-name {
position: absolute;
top: 40px;
font-size: 38px;
font-weight: bold;
color: #2fbae4;
padding: 10px 30px;
border: 1px solid #741f68;
border-radius: 12px;
text-align: center;
animation: float 6s ease-in-out infinite;
transition: transform 0.3s, box-shadow 0.3s, color 0.3s;
cursor: pointer;
margin-right: 10px;
}
.brand-name:hover {
transform: scale(1.1);
color: #22d3ee;
box-shadow: 0 0 25px rgba(345,211,238,0.8);
}
@keyframes float {
0%,100% { transform: translateY(0); }
50% { transform: translateY(-8px); }
}
/* Login Box */
.login-box {
background: rgba(255,255,255,0.95);
padding: 40px 30px;
border-radius: 16px;
width: 350px;
box-shadow: 0 20px 40px rgba(0,0,0,0.3);
animation: zoomIn 0.6s ease;
transition: transform 0.3s, box-shadow 0.3s;
margin-top: 100px;
}
.login-box:hover {
transform: translateY(-5px) scale(1.02);
box-shadow: 0 25px 50px rgba(167, 33, 33, 0.4);
}
@keyframes zoomIn {
from { transform: scale(0.8); opacity: 0; }
to { transform: scale(1); opacity: 1; }
}
.login-box h2 {
text-align: center;
margin-bottom: 20px;
color: #201c1a;
}
/* Inputs */
.login-box input {
width: 100%;
padding: 12px;
margin-bottom: 15px;
border-radius: 8px;
border: 1px solid #cbd5e1;
outline: none;
font-size: 14px;
transition: 0.3s;
}
.login-box input:focus {
border-color: #19ec06;
box-shadow: 0 0 10px rgba(18, 104, 141, 0.6);
}
/* Button */
.login-box button {
width: 100%;
padding: 12px;
background: #f54803;
color: white;
border: none;
border-radius: 8px;
cursor: pointer;
font-size: 16px;
transition: all 0.3s ease;
}
.login-box button:hover {
transform: translateY(-3px) scale(1.02);
background: #06ce20;
box-shadow: 0 10px 25px rgba(29, 156, 216, 0.4);
}
</style>
</head>
<body>
<div class="brand-name">SPORTSMART</div>
<div class="login-box">
<h2>Login</h2>
<input type="text" id="username" placeholder="Username">
<input type="email" id="email" placeholder="Email">
<input type="password" id="password" placeholder="Password">
<button onclick="login()">Login</button>
</div>
<script>
function login(){
const user = document.getElementById("username").value.trim();
const email = document.getElementById("email").value.trim();
const pass = document.getElementById("password").value.trim();
if(user && email && pass){
localStorage.setItem("login","true");
window.location.href = "home.html";
} else {
alert("Enter all fields");
}
}
</script>
</body>
</html>