Add 3 files
Browse files- README.md +7 -5
- index.html +219 -19
- prompts.txt +0 -0
README.md
CHANGED
|
@@ -1,10 +1,12 @@
|
|
| 1 |
---
|
| 2 |
-
title:
|
| 3 |
-
emoji:
|
| 4 |
-
colorFrom:
|
| 5 |
-
colorTo:
|
| 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: da
|
| 3 |
+
emoji: 🐳
|
| 4 |
+
colorFrom: yellow
|
| 5 |
+
colorTo: yellow
|
| 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,219 @@
|
|
| 1 |
-
<!
|
| 2 |
-
<html>
|
| 3 |
-
|
| 4 |
-
|
| 5 |
-
|
| 6 |
-
|
| 7 |
-
|
| 8 |
-
|
| 9 |
-
|
| 10 |
-
|
| 11 |
-
|
| 12 |
-
|
| 13 |
-
|
| 14 |
-
|
| 15 |
-
|
| 16 |
-
|
| 17 |
-
|
| 18 |
-
|
| 19 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 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 |
+
<style>
|
| 10 |
+
.form-container {
|
| 11 |
+
perspective: 1000px;
|
| 12 |
+
}
|
| 13 |
+
.form-flip {
|
| 14 |
+
transform-style: preserve-3d;
|
| 15 |
+
transition: transform 0.6s;
|
| 16 |
+
}
|
| 17 |
+
.form-flip.flipped {
|
| 18 |
+
transform: rotateY(180deg);
|
| 19 |
+
}
|
| 20 |
+
.form-front, .form-back {
|
| 21 |
+
backface-visibility: hidden;
|
| 22 |
+
position: absolute;
|
| 23 |
+
width: 100%;
|
| 24 |
+
}
|
| 25 |
+
.form-back {
|
| 26 |
+
transform: rotateY(180deg);
|
| 27 |
+
}
|
| 28 |
+
.input-effect {
|
| 29 |
+
transition: all 0.3s;
|
| 30 |
+
}
|
| 31 |
+
.input-effect:focus {
|
| 32 |
+
transform: translateY(-2px);
|
| 33 |
+
box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
|
| 34 |
+
}
|
| 35 |
+
.btn-hover {
|
| 36 |
+
transition: all 0.3s;
|
| 37 |
+
}
|
| 38 |
+
.btn-hover:hover {
|
| 39 |
+
transform: translateY(-2px);
|
| 40 |
+
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
|
| 41 |
+
}
|
| 42 |
+
.pulse {
|
| 43 |
+
animation: pulse 2s infinite;
|
| 44 |
+
}
|
| 45 |
+
@keyframes pulse {
|
| 46 |
+
0% { transform: scale(1); }
|
| 47 |
+
50% { transform: scale(1.05); }
|
| 48 |
+
100% { transform: scale(1); }
|
| 49 |
+
}
|
| 50 |
+
</style>
|
| 51 |
+
</head>
|
| 52 |
+
<body class="bg-gradient-to-br from-blue-50 to-purple-50 min-h-screen flex items-center justify-center p-4">
|
| 53 |
+
<div class="w-full max-w-md">
|
| 54 |
+
<div class="text-center mb-8">
|
| 55 |
+
<h1 class="text-3xl font-bold text-gray-800 mb-2">Добро пожаловать!</h1>
|
| 56 |
+
<p class="text-gray-600">Войдите или зарегистрируйтесь, чтобы продолжить</p>
|
| 57 |
+
</div>
|
| 58 |
+
|
| 59 |
+
<div class="bg-white rounded-xl shadow-xl overflow-hidden relative form-container h-96">
|
| 60 |
+
<div class="form-flip relative w-full h-full">
|
| 61 |
+
<!-- Форма входа -->
|
| 62 |
+
<div class="form-front p-8 h-full flex flex-col">
|
| 63 |
+
<div class="text-center mb-6">
|
| 64 |
+
<i class="fas fa-user-circle text-5xl text-blue-500 mb-2"></i>
|
| 65 |
+
<h2 class="text-2xl font-semibold text-gray-800">Вход в аккаунт</h2>
|
| 66 |
+
</div>
|
| 67 |
+
|
| 68 |
+
<form id="loginForm" class="flex-1 flex flex-col">
|
| 69 |
+
<div class="mb-4">
|
| 70 |
+
<label for="loginEmail" class="block text-gray-700 text-sm font-medium mb-1">Email</label>
|
| 71 |
+
<div class="relative">
|
| 72 |
+
<div class="absolute inset-y-0 left-0 pl-3 flex items-center pointer-events-none">
|
| 73 |
+
<i class="fas fa-envelope text-gray-400"></i>
|
| 74 |
+
</div>
|
| 75 |
+
<input type="email" id="loginEmail" class="input-effect w-full pl-10 pr-3 py-2 border border-gray-300 rounded-lg focus:outline-none focus:ring-2 focus:ring-blue-500 focus:border-transparent" placeholder="Ваш email" required>
|
| 76 |
+
</div>
|
| 77 |
+
</div>
|
| 78 |
+
|
| 79 |
+
<div class="mb-4">
|
| 80 |
+
<label for="loginPassword" class="block text-gray-700 text-sm font-medium mb-1">Пароль</label>
|
| 81 |
+
<div class="relative">
|
| 82 |
+
<div class="absolute inset-y-0 left-0 pl-3 flex items-center pointer-events-none">
|
| 83 |
+
<i class="fas fa-lock text-gray-400"></i>
|
| 84 |
+
</div>
|
| 85 |
+
<input type="password" id="loginPassword" class="input-effect w-full pl-10 pr-3 py-2 border border-gray-300 rounded-lg focus:outline-none focus:ring-2 focus:ring-blue-500 focus:border-transparent" placeholder="Ваш пароль" required>
|
| 86 |
+
</div>
|
| 87 |
+
</div>
|
| 88 |
+
|
| 89 |
+
<div class="flex items-center justify-between mb-6">
|
| 90 |
+
<div class="flex items-center">
|
| 91 |
+
<input type="checkbox" id="rememberMe" class="h-4 w-4 text-blue-600 focus:ring-blue-500 border-gray-300 rounded">
|
| 92 |
+
<label for="rememberMe" class="ml-2 block text-sm text-gray-700">Запомнить меня</label>
|
| 93 |
+
</div>
|
| 94 |
+
<a href="#" class="text-sm text-blue-600 hover:text-blue-800">Забыли пароль?</a>
|
| 95 |
+
</div>
|
| 96 |
+
|
| 97 |
+
<button type="submit" class="btn-hover bg-blue-600 hover:bg-blue-700 text-white font-medium py-2 px-4 rounded-lg transition duration-300 mb-4 pulse">
|
| 98 |
+
Войти
|
| 99 |
+
</button>
|
| 100 |
+
|
| 101 |
+
<div class="text-center mt-auto">
|
| 102 |
+
<p class="text-gray-600 text-sm">Ещё нет аккаунта?
|
| 103 |
+
<button type="button" onclick="flipForm()" class="text-blue-600 hover:text-blue-800 font-medium">Зарегистрироваться</button>
|
| 104 |
+
</p>
|
| 105 |
+
</div>
|
| 106 |
+
</form>
|
| 107 |
+
</div>
|
| 108 |
+
|
| 109 |
+
<!-- Форма регистрации -->
|
| 110 |
+
<div class="form-back p-8 h-full flex flex-col">
|
| 111 |
+
<div class="text-center mb-6">
|
| 112 |
+
<i class="fas fa-user-plus text-5xl text-purple-500 mb-2"></i>
|
| 113 |
+
<h2 class="text-2xl font-semibold text-gray-800">Создать аккаунт</h2>
|
| 114 |
+
</div>
|
| 115 |
+
|
| 116 |
+
<form id="registerForm" class="flex-1 flex flex-col">
|
| 117 |
+
<div class="mb-4">
|
| 118 |
+
<label for="registerName" class="block text-gray-700 text-sm font-medium mb-1">Имя</label>
|
| 119 |
+
<div class="relative">
|
| 120 |
+
<div class="absolute inset-y-0 left-0 pl-3 flex items-center pointer-events-none">
|
| 121 |
+
<i class="fas fa-user text-gray-400"></i>
|
| 122 |
+
</div>
|
| 123 |
+
<input type="text" id="registerName" class="input-effect w-full pl-10 pr-3 py-2 border border-gray-300 rounded-lg focus:outline-none focus:ring-2 focus:ring-purple-500 focus:border-transparent" placeholder="Ваше имя" required>
|
| 124 |
+
</div>
|
| 125 |
+
</div>
|
| 126 |
+
|
| 127 |
+
<div class="mb-4">
|
| 128 |
+
<label for="registerEmail" class="block text-gray-700 text-sm font-medium mb-1">Email</label>
|
| 129 |
+
<div class="relative">
|
| 130 |
+
<div class="absolute inset-y-0 left-0 pl-3 flex items-center pointer-events-none">
|
| 131 |
+
<i class="fas fa-envelope text-gray-400"></i>
|
| 132 |
+
</div>
|
| 133 |
+
<input type="email" id="registerEmail" class="input-effect w-full pl-10 pr-3 py-2 border border-gray-300 rounded-lg focus:outline-none focus:ring-2 focus:ring-purple-500 focus:border-transparent" placeholder="Ваш email" required>
|
| 134 |
+
</div>
|
| 135 |
+
</div>
|
| 136 |
+
|
| 137 |
+
<div class="mb-4">
|
| 138 |
+
<label for="registerPassword" class="block text-gray-700 text-sm font-medium mb-1">Пароль</label>
|
| 139 |
+
<div class="relative">
|
| 140 |
+
<div class="absolute inset-y-0 left-0 pl-3 flex items-center pointer-events-none">
|
| 141 |
+
<i class="fas fa-lock text-gray-400"></i>
|
| 142 |
+
</div>
|
| 143 |
+
<input type="password" id="registerPassword" class="input-effect w-full pl-10 pr-3 py-2 border border-gray-300 rounded-lg focus:outline-none focus:ring-2 focus:ring-purple-500 focus:border-transparent" placeholder="Придумайте пароль" required>
|
| 144 |
+
</div>
|
| 145 |
+
</div>
|
| 146 |
+
|
| 147 |
+
<div class="mb-6">
|
| 148 |
+
<label for="registerConfirmPassword" class="block text-gray-700 text-sm font-medium mb-1">Подтвердите пароль</label>
|
| 149 |
+
<div class="relative">
|
| 150 |
+
<div class="absolute inset-y-0 left-0 pl-3 flex items-center pointer-events-none">
|
| 151 |
+
<i class="fas fa-lock text-gray-400"></i>
|
| 152 |
+
</div>
|
| 153 |
+
<input type="password" id="registerConfirmPassword" class="input-effect w-full pl-10 pr-3 py-2 border border-gray-300 rounded-lg focus:outline-none focus:ring-2 focus:ring-purple-500 focus:border-transparent" placeholder="Повторите пароль" required>
|
| 154 |
+
</div>
|
| 155 |
+
</div>
|
| 156 |
+
|
| 157 |
+
<button type="submit" class="btn-hover bg-purple-600 hover:bg-purple-700 text-white font-medium py-2 px-4 rounded-lg transition duration-300 mb-4">
|
| 158 |
+
Зарегистрироваться
|
| 159 |
+
</button>
|
| 160 |
+
|
| 161 |
+
<div class="text-center mt-auto">
|
| 162 |
+
<p class="text-gray-600 text-sm">Уже есть аккаунт?
|
| 163 |
+
<button type="button" onclick="flipForm()" class="text-purple-600 hover:text-purple-800 font-medium">Войти</button>
|
| 164 |
+
</p>
|
| 165 |
+
</div>
|
| 166 |
+
</form>
|
| 167 |
+
</div>
|
| 168 |
+
</div>
|
| 169 |
+
</div>
|
| 170 |
+
|
| 171 |
+
<div class="mt-6 text-center">
|
| 172 |
+
<p class="text-gray-600 text-sm">Или войдите с помощью</p>
|
| 173 |
+
<div class="flex justify-center space-x-4 mt-3">
|
| 174 |
+
<button class="btn-hover bg-red-500 hover:bg-red-600 text-white p-2 rounded-full">
|
| 175 |
+
<i class="fab fa-google"></i>
|
| 176 |
+
</button>
|
| 177 |
+
<button class="btn-hover bg-blue-600 hover:bg-blue-700 text-white p-2 rounded-full">
|
| 178 |
+
<i class="fab fa-facebook-f"></i>
|
| 179 |
+
</button>
|
| 180 |
+
<button class="btn-hover bg-gray-800 hover:bg-gray-900 text-white p-2 rounded-full">
|
| 181 |
+
<i class="fab fa-github"></i>
|
| 182 |
+
</button>
|
| 183 |
+
</div>
|
| 184 |
+
</div>
|
| 185 |
+
</div>
|
| 186 |
+
|
| 187 |
+
<script>
|
| 188 |
+
function flipForm() {
|
| 189 |
+
document.querySelector('.form-flip').classList.toggle('flipped');
|
| 190 |
+
}
|
| 191 |
+
|
| 192 |
+
document.getElementById('loginForm').addEventListener('submit', function(e) {
|
| 193 |
+
e.preventDefault();
|
| 194 |
+
const email = document.getElementById('loginEmail').value;
|
| 195 |
+
const password = document.getElementById('loginPassword').value;
|
| 196 |
+
|
| 197 |
+
// Здесь должна быть логика авторизации
|
| 198 |
+
alert(`Вход выполнен для: ${email}`);
|
| 199 |
+
});
|
| 200 |
+
|
| 201 |
+
document.getElementById('registerForm').addEventListener('submit', function(e) {
|
| 202 |
+
e.preventDefault();
|
| 203 |
+
const name = document.getElementById('registerName').value;
|
| 204 |
+
const email = document.getElementById('registerEmail').value;
|
| 205 |
+
const password = document.getElementById('registerPassword').value;
|
| 206 |
+
const confirmPassword = document.getElementById('registerConfirmPassword').value;
|
| 207 |
+
|
| 208 |
+
if (password !== confirmPassword) {
|
| 209 |
+
alert('Пароли не совпадают!');
|
| 210 |
+
return;
|
| 211 |
+
}
|
| 212 |
+
|
| 213 |
+
// Здесь должна быть логика регистрации
|
| 214 |
+
alert(`Регистрация успешна для: ${name} (${email})`);
|
| 215 |
+
flipForm(); // Переключаем обратно на форму входа
|
| 216 |
+
});
|
| 217 |
+
</script>
|
| 218 |
+
<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=FrOsTiKoO/da" style="color: #fff;text-decoration: underline;" target="_blank" >Remix</a></p></body>
|
| 219 |
+
</html>
|
prompts.txt
ADDED
|
File without changes
|