UnquieCoder commited on
Commit
5bde3d5
·
verified ·
1 Parent(s): 52a9e15

undefined - Initial Deployment

Browse files
Files changed (2) hide show
  1. README.md +7 -5
  2. index.html +194 -19
README.md CHANGED
@@ -1,10 +1,12 @@
1
  ---
2
- title: Login
3
- emoji: 🏢
4
- colorFrom: purple
5
- colorTo: red
6
  sdk: static
7
  pinned: false
 
 
8
  ---
9
 
10
- Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference
 
1
  ---
2
+ title: login
3
+ emoji: 🐳
4
+ colorFrom: gray
5
+ colorTo: purple
6
  sdk: static
7
  pinned: false
8
+ tags:
9
+ - deepsite
10
  ---
11
 
12
+ Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference
index.html CHANGED
@@ -1,19 +1,194 @@
1
- <!doctype html>
2
- <html>
3
- <head>
4
- <meta charset="utf-8" />
5
- <meta name="viewport" content="width=device-width" />
6
- <title>My static Space</title>
7
- <link rel="stylesheet" href="style.css" />
8
- </head>
9
- <body>
10
- <div class="card">
11
- <h1>Welcome to your static Space!</h1>
12
- <p>You can modify this app directly by editing <i>index.html</i> in the Files and versions tab.</p>
13
- <p>
14
- Also don't forget to check the
15
- <a href="https://huggingface.co/docs/hub/spaces" target="_blank">Spaces documentation</a>.
16
- </p>
17
- </div>
18
- </body>
19
- </html>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <!DOCTYPE html>
2
+ <html lang="en">
3
+ <head>
4
+ <meta charset="UTF-8">
5
+ <meta name="viewport" content="width=device-width, initial-scale=1.0">
6
+ <title>MediCare ERP | Login</title>
7
+ <script src="https://cdn.tailwindcss.com"></script>
8
+ <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css">
9
+ <style>
10
+ @import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');
11
+
12
+ body {
13
+ font-family: 'Poppins', sans-serif;
14
+ background: linear-gradient(135deg, #f0f9ff 0%, #e6f7ff 100%);
15
+ }
16
+
17
+ .medical-bg {
18
+ background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100" viewBox="0 0 100 100" fill="none" opacity="0.05"><path d="M50 0L60 20L80 30L60 40L50 60L40 40L20 30L40 20L50 0Z" fill="%23007BFF"/><path d="M20 70L30 50L50 40L70 50L80 70L60 80L50 100L40 80L20 70Z" fill="%23007BFF"/></svg>');
19
+ background-size: 200px;
20
+ }
21
+
22
+ .login-card {
23
+ box-shadow: 0 10px 25px -5px rgba(0, 123, 255, 0.1);
24
+ transition: all 0.3s ease;
25
+ }
26
+
27
+ .login-card:hover {
28
+ box-shadow: 0 15px 30px -5px rgba(0, 123, 255, 0.2);
29
+ }
30
+
31
+ .btn-login {
32
+ background: linear-gradient(135deg, #007BFF 0%, #00BFFF 100%);
33
+ transition: all 0.3s ease;
34
+ box-shadow: 0 4px 6px -1px rgba(0, 123, 255, 0.2);
35
+ }
36
+
37
+ .btn-login:hover {
38
+ transform: translateY(-2px);
39
+ box-shadow: 0 10px 15px -3px rgba(0, 123, 255, 0.3);
40
+ }
41
+
42
+ .input-field:focus {
43
+ box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.2);
44
+ }
45
+
46
+ .error-message {
47
+ animation: fadeIn 0.3s ease;
48
+ }
49
+
50
+ @keyframes fadeIn {
51
+ from { opacity: 0; transform: translateY(-5px); }
52
+ to { opacity: 1; transform: translateY(0); }
53
+ }
54
+ </style>
55
+ </head>
56
+ <body class="medical-bg min-h-screen flex items-center justify-center p-4">
57
+ <div class="login-card bg-white rounded-2xl overflow-hidden w-full max-w-md">
58
+ <div class="bg-gradient-to-r from-blue-500 to-teal-500 p-6 text-white text-center">
59
+ <div class="flex justify-center mb-4">
60
+ <i class="fas fa-hospital text-4xl"></i>
61
+ </div>
62
+ <h1 class="text-2xl font-bold">MediCare ERP</h1>
63
+ <p class="text-blue-100 mt-1">Secure Healthcare Management System</p>
64
+ </div>
65
+
66
+ <div class="p-8">
67
+ <form id="loginForm" class="space-y-6">
68
+ <div>
69
+ <label for="username" class="block text-sm font-medium text-gray-700 mb-1">Username</label>
70
+ <div class="relative">
71
+ <div class="absolute inset-y-0 left-0 pl-3 flex items-center pointer-events-none">
72
+ <i class="fas fa-user text-gray-400"></i>
73
+ </div>
74
+ <input type="text" id="username" name="username"
75
+ class="input-field pl-10 block w-full rounded-md border-gray-300 shadow-sm focus:border-blue-500 focus:ring-blue-500 py-3 px-4 border"
76
+ placeholder="Enter your username">
77
+ </div>
78
+ <div id="usernameError" class="error-message text-red-500 text-xs mt-1 hidden">Please enter your username</div>
79
+ </div>
80
+
81
+ <div>
82
+ <label for="password" class="block text-sm font-medium text-gray-700 mb-1">Password</label>
83
+ <div class="relative">
84
+ <div class="absolute inset-y-0 left-0 pl-3 flex items-center pointer-events-none">
85
+ <i class="fas fa-lock text-gray-400"></i>
86
+ </div>
87
+ <input type="password" id="password" name="password"
88
+ class="input-field pl-10 block w-full rounded-md border-gray-300 shadow-sm focus:border-blue-500 focus:ring-blue-500 py-3 px-4 border"
89
+ placeholder="Enter your password">
90
+ </div>
91
+ <div id="passwordError" class="error-message text-red-500 text-xs mt-1 hidden">Please enter your password</div>
92
+ </div>
93
+
94
+ <div class="flex items-center justify-between">
95
+ <div class="flex items-center">
96
+ <input id="remember-me" name="remember-me" type="checkbox" class="h-4 w-4 text-blue-600 focus:ring-blue-500 border-gray-300 rounded">
97
+ <label for="remember-me" class="ml-2 block text-sm text-gray-700">Remember me</label>
98
+ </div>
99
+
100
+ <div class="text-sm">
101
+ <a href="#" class="font-medium text-blue-600 hover:text-blue-500">Forgot password?</a>
102
+ </div>
103
+ </div>
104
+
105
+ <div>
106
+ <button type="submit" class="btn-login w-full flex justify-center py-3 px-4 border border-transparent rounded-md shadow-sm text-sm font-medium text-white focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-blue-500">
107
+ <i class="fas fa-sign-in-alt mr-2"></i> Login
108
+ </button>
109
+ </div>
110
+ </form>
111
+
112
+ <div class="mt-6 text-center">
113
+ <p class="text-sm text-gray-600">
114
+ New to MediCare ERP?
115
+ <a href="#" class="font-medium text-blue-600 hover:text-blue-500">Request access</a>
116
+ </p>
117
+ </div>
118
+ </div>
119
+ </div>
120
+
121
+ <script>
122
+ document.getElementById('loginForm').addEventListener('submit', function(e) {
123
+ e.preventDefault();
124
+
125
+ // Reset error messages
126
+ document.getElementById('usernameError').classList.add('hidden');
127
+ document.getElementById('passwordError').classList.add('hidden');
128
+
129
+ // Get input values
130
+ const username = document.getElementById('username').value.trim();
131
+ const password = document.getElementById('password').value.trim();
132
+
133
+ // Validate inputs
134
+ let isValid = true;
135
+
136
+ if (!username) {
137
+ document.getElementById('usernameError').classList.remove('hidden');
138
+ document.getElementById('username').classList.add('border-red-500');
139
+ isValid = false;
140
+ } else {
141
+ document.getElementById('username').classList.remove('border-red-500');
142
+ }
143
+
144
+ if (!password) {
145
+ document.getElementById('passwordError').classList.remove('hidden');
146
+ document.getElementById('password').classList.add('border-red-500');
147
+ isValid = false;
148
+ } else {
149
+ document.getElementById('password').classList.remove('border-red-500');
150
+ }
151
+
152
+ // If valid, proceed with login (simulated)
153
+ if (isValid) {
154
+ // Simulate login process
155
+ const loginBtn = document.querySelector('.btn-login');
156
+ loginBtn.innerHTML = '<i class="fas fa-spinner fa-spin mr-2"></i> Authenticating...';
157
+ loginBtn.disabled = true;
158
+
159
+ // Simulate API call
160
+ setTimeout(() => {
161
+ // This is just for demo - in a real app you would handle actual authentication
162
+ alert('Login successful! Redirecting to dashboard...');
163
+ loginBtn.innerHTML = '<i class="fas fa-sign-in-alt mr-2"></i> Login';
164
+ loginBtn.disabled = false;
165
+
166
+ // Here you would typically redirect to the dashboard
167
+ // window.location.href = '/dashboard';
168
+ }, 1500);
169
+ }
170
+ });
171
+
172
+ // Add input validation on blur
173
+ document.getElementById('username').addEventListener('blur', function() {
174
+ if (!this.value.trim()) {
175
+ document.getElementById('usernameError').classList.remove('hidden');
176
+ this.classList.add('border-red-500');
177
+ } else {
178
+ document.getElementById('usernameError').classList.add('hidden');
179
+ this.classList.remove('border-red-500');
180
+ }
181
+ });
182
+
183
+ document.getElementById('password').addEventListener('blur', function() {
184
+ if (!this.value.trim()) {
185
+ document.getElementById('passwordError').classList.remove('hidden');
186
+ this.classList.add('border-red-500');
187
+ } else {
188
+ document.getElementById('passwordError').classList.add('hidden');
189
+ this.classList.remove('border-red-500');
190
+ }
191
+ });
192
+ </script>
193
+ <p style="border-radius: 8px; text-align: center; font-size: 12px; color: #fff; margin-top: 16px;position: fixed; left: 8px; bottom: 8px; z-index: 10; background: rgba(0, 0, 0, 0.8); padding: 4px 8px;">Made with <img src="https://enzostvs-deepsite.hf.space/logo.svg" alt="DeepSite Logo" style="width: 16px; height: 16px; vertical-align: middle;display:inline-block;margin-right:3px;filter:brightness(0) invert(1);"><a href="https://enzostvs-deepsite.hf.space" style="color: #fff;text-decoration: underline;" target="_blank" >DeepSite</a> - 🧬 <a href="https://enzostvs-deepsite.hf.space?remix=UnquieCoder/login" style="color: #fff;text-decoration: underline;" target="_blank" >Remix</a></p></body>
194
+ </html>