2KKLabs commited on
Commit
f3c432e
·
verified ·
1 Parent(s): ef8fb46

Сделай получше, по красивей, с адаптацией под телефоны. Анимацию плавнее. Курсор печати сделай больше и чтобы он плавно пульсировал - Initial Deployment

Browse files
Files changed (2) hide show
  1. README.md +7 -5
  2. index.html +210 -19
README.md CHANGED
@@ -1,10 +1,12 @@
1
  ---
2
- title: Asdf
3
- emoji: 📚
4
- colorFrom: green
5
- colorTo: indigo
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: asdf
3
+ emoji: 🐳
4
+ colorFrom: yellow
5
+ colorTo: green
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,210 @@
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="ru">
3
+ <head>
4
+ <meta charset="UTF-8">
5
+ <meta name="viewport" content="width=device-width, initial-scale=1.0">
6
+ <title>Вход и регистрация</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
+ <script>
10
+ tailwind.config = {
11
+ theme: {
12
+ extend: {
13
+ keyframes: {
14
+ typing: {
15
+ "0%": { width: "0%" },
16
+ "100%": { width: "100%" }
17
+ },
18
+ blink: {
19
+ "0%": { opacity: 1 },
20
+ "50%": { opacity: 0 },
21
+ "100%": { opacity: 1 }
22
+ },
23
+ fadeOut: {
24
+ "0%": { opacity: 1 },
25
+ "100%": { opacity: 0 }
26
+ },
27
+ slideUp: {
28
+ "0%": { transform: "translateY(100%)", opacity: 0 },
29
+ "100%": { transform: "translateY(0)", opacity: 1 }
30
+ }
31
+ },
32
+ animation: {
33
+ typing: "typing 2s steps(20, end)",
34
+ blink: "blink 1s infinite",
35
+ fadeOut: "fadeOut 1s forwards",
36
+ slideUp: "slideUp 0.8s ease-out forwards"
37
+ }
38
+ }
39
+ }
40
+ }
41
+ </script>
42
+ <style type="text/tailwindcss">
43
+ @layer base {
44
+ body {
45
+ @apply bg-black text-white;
46
+ }
47
+ }
48
+ .form-container {
49
+ transition: transform 0.3s ease, box-shadow 0.3s ease;
50
+ }
51
+ .form-container:hover {
52
+ transform: translateY(-5px);
53
+ box-shadow: 0 10px 25px rgba(255, 255, 255, 0.1);
54
+ }
55
+ .input-field:focus {
56
+ outline: 1px solid white;
57
+ box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.2);
58
+ }
59
+ .social-btn:hover {
60
+ background-color: rgba(255, 255, 255, 0.1);
61
+ }
62
+ .tab-btn.active {
63
+ border-bottom: 2px solid white;
64
+ }
65
+ </style>
66
+ </head>
67
+ <body class="min-h-screen flex items-center justify-center p-4">
68
+ <!-- Экран приветствия -->
69
+ <div id="welcome-screen" class="fixed inset-0 bg-white flex items-center justify-center z-50">
70
+ <div class="text-center">
71
+ <h1 id="welcome-text" class="text-4xl md:text-6xl font-bold text-black overflow-hidden whitespace-nowrap border-r-2 border-black animate-typing">
72
+ добро пожаловать
73
+ </h1>
74
+ </div>
75
+ </div>
76
+
77
+ <!-- Основной контент -->
78
+ <div id="main-content" class="w-full max-w-md hidden">
79
+ <div class="text-center mb-10">
80
+ <h1 class="text-3xl font-bold mb-2">Добро пожаловать</h1>
81
+ <p class="text-gray-400">Войдите или зарегистрируйтесь для продолжения</p>
82
+ </div>
83
+
84
+ <!-- Переключатель форм -->
85
+ <div class="flex border-b border-gray-700 mb-8">
86
+ <button id="login-tab" class="tab-btn flex-1 py-3 font-medium active">Вход</button>
87
+ <button id="register-tab" class="tab-btn flex-1 py-3 font-medium">Регистрация</button>
88
+ </div>
89
+
90
+ <!-- Форма входа -->
91
+ <div id="login-form" class="form-container bg-black border border-white rounded-lg p-8 animate-slideUp">
92
+ <form>
93
+ <div class="mb-6">
94
+ <label for="login-email" class="block mb-2 text-sm">Email</label>
95
+ <input type="email" id="login-email" class="input-field w-full bg-black border border-white rounded px-4 py-3 focus:outline-none">
96
+ </div>
97
+ <div class="mb-6">
98
+ <label for="login-password" class="block mb-2 text-sm">Пароль</label>
99
+ <input type="password" id="login-password" class="input-field w-full bg-black border border-white rounded px-4 py-3 focus:outline-none">
100
+ </div>
101
+ <div class="flex items-center justify-between mb-6">
102
+ <div class="flex items-center">
103
+ <input type="checkbox" id="remember" class="mr-2">
104
+ <label for="remember" class="text-sm">Запомнить меня</label>
105
+ </div>
106
+ <a href="#" class="text-sm hover:underline">Забыли пароль?</a>
107
+ </div>
108
+ <button type="submit" class="w-full bg-white text-black font-bold py-3 rounded hover:bg-gray-200 transition duration-300">
109
+ Войти
110
+ </button>
111
+ </form>
112
+
113
+ <div class="my-6 flex items-center">
114
+ <div class="flex-grow border-t border-gray-700"></div>
115
+ <span class="mx-4 text-gray-500 text-sm">или</span>
116
+ <div class="flex-grow border-t border-gray-700"></div>
117
+ </div>
118
+
119
+ <button class="social-btn w-full border border-white rounded py-3 flex items-center justify-center mb-4">
120
+ <i class="fab fa-google mr-3 text-red-500"></i>
121
+ <span>Войти через Google</span>
122
+ </button>
123
+ </div>
124
+
125
+ <!-- Форма регистрации (скрыта по умолчанию) -->
126
+ <div id="register-form" class="form-container bg-black border border-white rounded-lg p-8 hidden">
127
+ <form>
128
+ <div class="mb-6">
129
+ <label for="register-name" class="block mb-2 text-sm">Имя</label>
130
+ <input type="text" id="register-name" class="input-field w-full bg-black border border-white rounded px-4 py-3 focus:outline-none">
131
+ </div>
132
+ <div class="mb-6">
133
+ <label for="register-email" class="block mb-2 text-sm">Email</label>
134
+ <input type="email" id="register-email" class="input-field w-full bg-black border border-white rounded px-4 py-3 focus:outline-none">
135
+ </div>
136
+ <div class="mb-6">
137
+ <label for="register-password" class="block mb-2 text-sm">Пароль</label>
138
+ <input type="password" id="register-password" class="input-field w-full bg-black border border-white rounded px-4 py-3 focus:outline-none">
139
+ </div>
140
+ <div class="mb-6">
141
+ <label for="register-confirm" class="block mb-2 text-sm">Подтвердите пароль</label>
142
+ <input type="password" id="register-confirm" class="input-field w-full bg-black border border-white rounded px-4 py-3 focus:outline-none">
143
+ </div>
144
+ <button type="submit" class="w-full bg-white text-black font-bold py-3 rounded hover:bg-gray-200 transition duration-300">
145
+ Зарегистрироваться
146
+ </button>
147
+ </form>
148
+
149
+ <div class="my-6 flex items-center">
150
+ <div class="flex-grow border-t border-gray-700"></div>
151
+ <span class="mx-4 text-gray-500 text-sm">или</span>
152
+ <div class="flex-grow border-t border-gray-700"></div>
153
+ </div>
154
+
155
+ <button class="social-btn w-full border border-white rounded py-3 flex items-center justify-center mb-4">
156
+ <i class="fab fa-google mr-3 text-red-500"></i>
157
+ <span>Зарегистрироваться через Google</span>
158
+ </button>
159
+ </div>
160
+ </div>
161
+
162
+ <script>
163
+ document.addEventListener('DOMContentLoaded', function() {
164
+ const welcomeScreen = document.getElementById('welcome-screen');
165
+ const mainContent = document.getElementById('main-content');
166
+ const welcomeText = document.getElementById('welcome-text');
167
+ const loginForm = document.getElementById('login-form');
168
+ const registerForm = document.getElementById('register-form');
169
+ const loginTab = document.getElementById('login-tab');
170
+ const registerTab = document.getElementById('register-tab');
171
+
172
+ // Анимация приветствия
173
+ setTimeout(() => {
174
+ welcomeText.style.animation = 'fadeOut 1s forwards';
175
+ }, 2500);
176
+
177
+ // Скрытие экрана приветствия и показ основного контента
178
+ setTimeout(() => {
179
+ welcomeScreen.style.display = 'none';
180
+ mainContent.style.display = 'block';
181
+ }, 3500);
182
+
183
+ // Переключение между формами
184
+ loginTab.addEventListener('click', () => {
185
+ loginTab.classList.add('active');
186
+ registerTab.classList.remove('active');
187
+ loginForm.classList.remove('hidden');
188
+ registerForm.classList.add('hidden');
189
+ });
190
+
191
+ registerTab.addEventListener('click', () => {
192
+ registerTab.classList.add('active');
193
+ loginTab.classList.remove('active');
194
+ registerForm.classList.remove('hidden');
195
+ loginForm.classList.add('hidden');
196
+ });
197
+
198
+ // Обработка отправки форм
199
+ const forms = document.querySelectorAll('form');
200
+ forms.forEach(form => {
201
+ form.addEventListener('submit', (e) => {
202
+ e.preventDefault();
203
+ // Здесь можно добавить логику обработки формы
204
+ alert('Форма отправлена!');
205
+ });
206
+ });
207
+ });
208
+ </script>
209
+ <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=2KKLabs/asdf" style="color: #fff;text-decoration: underline;" target="_blank" >Remix</a></p></body>
210
+ </html>