Spaces:
Running
Running
создай дизайн как я нарисовал в фигме
Browse filesвот ссылка
https://www.figma.com/proto/rdw3C7P1CzAKcAQkGvyRbq/new-forms?node-id=562-5862&t=xc5EHVWdKJbrJZKQ-0&scaling=min-zoom&content-scaling=fixed&page-id=0%3A1&starting-point-node-id=562%3A5862
- README.md +7 -4
- components/footer.js +50 -0
- components/header.js +52 -0
- index.html +121 -19
- script.js +24 -0
- style.css +26 -19
README.md
CHANGED
|
@@ -1,10 +1,13 @@
|
|
| 1 |
---
|
| 2 |
-
title:
|
| 3 |
-
|
| 4 |
-
colorFrom: blue
|
| 5 |
colorTo: blue
|
|
|
|
| 6 |
sdk: static
|
| 7 |
pinned: false
|
|
|
|
|
|
|
| 8 |
---
|
| 9 |
|
| 10 |
-
|
|
|
|
|
|
| 1 |
---
|
| 2 |
+
title: FormFusion Pro 🎨
|
| 3 |
+
colorFrom: purple
|
|
|
|
| 4 |
colorTo: blue
|
| 5 |
+
emoji: 🐳
|
| 6 |
sdk: static
|
| 7 |
pinned: false
|
| 8 |
+
tags:
|
| 9 |
+
- deepsite-v3
|
| 10 |
---
|
| 11 |
|
| 12 |
+
# Welcome to your new DeepSite project!
|
| 13 |
+
This project was created with [DeepSite](https://huggingface.co/deepsite).
|
components/footer.js
ADDED
|
@@ -0,0 +1,50 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
class CustomFooter extends HTMLElement {
|
| 2 |
+
connectedCallback() {
|
| 3 |
+
this.attachShadow({ mode: 'open' });
|
| 4 |
+
this.shadowRoot.innerHTML = `
|
| 5 |
+
<style>
|
| 6 |
+
footer {
|
| 7 |
+
background-color: #F9FAFB;
|
| 8 |
+
color: #6B7280;
|
| 9 |
+
}
|
| 10 |
+
.container {
|
| 11 |
+
max-width: 1200px;
|
| 12 |
+
margin: 0 auto;
|
| 13 |
+
padding: 2rem 1rem;
|
| 14 |
+
}
|
| 15 |
+
.links {
|
| 16 |
+
display: flex;
|
| 17 |
+
justify-content: center;
|
| 18 |
+
gap: 2rem;
|
| 19 |
+
flex-wrap: wrap;
|
| 20 |
+
}
|
| 21 |
+
.links a {
|
| 22 |
+
color: #4B5563;
|
| 23 |
+
transition: color 0.2s;
|
| 24 |
+
}
|
| 25 |
+
.links a:hover {
|
| 26 |
+
color: #4F46E5;
|
| 27 |
+
}
|
| 28 |
+
.copyright {
|
| 29 |
+
text-align: center;
|
| 30 |
+
margin-top: 2rem;
|
| 31 |
+
font-size: 0.875rem;
|
| 32 |
+
}
|
| 33 |
+
</style>
|
| 34 |
+
<footer class="mt-12">
|
| 35 |
+
<div class="container">
|
| 36 |
+
<div class="links">
|
| 37 |
+
<a href="#">Terms</a>
|
| 38 |
+
<a href="#">Privacy</a>
|
| 39 |
+
<a href="#">Cookies</a>
|
| 40 |
+
<a href="#">Contact</a>
|
| 41 |
+
</div>
|
| 42 |
+
<div class="copyright">
|
| 43 |
+
© ${new Date().getFullYear()} FormFusion Pro. All rights reserved.
|
| 44 |
+
</div>
|
| 45 |
+
</div>
|
| 46 |
+
</footer>
|
| 47 |
+
`;
|
| 48 |
+
}
|
| 49 |
+
}
|
| 50 |
+
customElements.define('custom-footer', CustomFooter);
|
components/header.js
ADDED
|
@@ -0,0 +1,52 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
class CustomHeader extends HTMLElement {
|
| 2 |
+
connectedCallback() {
|
| 3 |
+
this.attachShadow({ mode: 'open' });
|
| 4 |
+
this.shadowRoot.innerHTML = `
|
| 5 |
+
<style>
|
| 6 |
+
header {
|
| 7 |
+
background-color: white;
|
| 8 |
+
box-shadow: 0 1px 3px rgba(0,0,0,0.1);
|
| 9 |
+
}
|
| 10 |
+
.container {
|
| 11 |
+
max-width: 1200px;
|
| 12 |
+
margin: 0 auto;
|
| 13 |
+
padding: 1rem;
|
| 14 |
+
}
|
| 15 |
+
.logo {
|
| 16 |
+
font-weight: 700;
|
| 17 |
+
font-size: 1.5rem;
|
| 18 |
+
color: #4F46E5;
|
| 19 |
+
}
|
| 20 |
+
nav a {
|
| 21 |
+
color: #4B5563;
|
| 22 |
+
transition: color 0.2s;
|
| 23 |
+
}
|
| 24 |
+
nav a:hover {
|
| 25 |
+
color: #4F46E5;
|
| 26 |
+
}
|
| 27 |
+
@media (max-width: 640px) {
|
| 28 |
+
.container {
|
| 29 |
+
flex-direction: column;
|
| 30 |
+
gap: 1rem;
|
| 31 |
+
}
|
| 32 |
+
}
|
| 33 |
+
</style>
|
| 34 |
+
<header>
|
| 35 |
+
<div class="container mx-auto px-4 flex justify-between items-center">
|
| 36 |
+
<a href="#" class="logo">FormFusion</a>
|
| 37 |
+
<nav class="flex gap-6">
|
| 38 |
+
<a href="#" class="flex items-center gap-1">
|
| 39 |
+
<i data-feather="home"></i>
|
| 40 |
+
<span>Home</span>
|
| 41 |
+
</a>
|
| 42 |
+
<a href="#" class="flex items-center gap-1">
|
| 43 |
+
<i data-feather="help-circle"></i>
|
| 44 |
+
<span>Help</span>
|
| 45 |
+
</a>
|
| 46 |
+
</nav>
|
| 47 |
+
</div>
|
| 48 |
+
</header>
|
| 49 |
+
`;
|
| 50 |
+
}
|
| 51 |
+
}
|
| 52 |
+
customElements.define('custom-header', CustomHeader);
|
index.html
CHANGED
|
@@ -1,19 +1,121 @@
|
|
| 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="en">
|
| 3 |
+
<head>
|
| 4 |
+
<meta charset="UTF-8">
|
| 5 |
+
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
| 6 |
+
<title>FormFusion Pro</title>
|
| 7 |
+
<link rel="stylesheet" href="style.css">
|
| 8 |
+
<script src="https://cdn.tailwindcss.com"></script>
|
| 9 |
+
<script>
|
| 10 |
+
tailwind.config = {
|
| 11 |
+
theme: {
|
| 12 |
+
extend: {
|
| 13 |
+
colors: {
|
| 14 |
+
primary: '#4F46E5',
|
| 15 |
+
secondary: '#10B981',
|
| 16 |
+
}
|
| 17 |
+
}
|
| 18 |
+
}
|
| 19 |
+
}
|
| 20 |
+
</script>
|
| 21 |
+
<script src="https://cdn.jsdelivr.net/npm/feather-icons/dist/feather.min.js"></script>
|
| 22 |
+
<script src="https://unpkg.com/feather-icons"></script>
|
| 23 |
+
</head>
|
| 24 |
+
<body class="bg-gray-50 min-h-screen">
|
| 25 |
+
<custom-header></custom-header>
|
| 26 |
+
|
| 27 |
+
<main class="container mx-auto px-4 py-8">
|
| 28 |
+
<div class="max-w-2xl mx-auto bg-white rounded-xl shadow-md overflow-hidden p-6">
|
| 29 |
+
<div class="text-center mb-8">
|
| 30 |
+
<h1 class="text-3xl font-bold text-gray-800 mb-2">Welcome Back</h1>
|
| 31 |
+
<p class="text-gray-600">Please enter your details to sign in</p>
|
| 32 |
+
</div>
|
| 33 |
+
|
| 34 |
+
<form class="space-y-6">
|
| 35 |
+
<div class="space-y-4">
|
| 36 |
+
<div>
|
| 37 |
+
<label for="email" class="block text-sm font-medium text-gray-700 mb-1">Email Address</label>
|
| 38 |
+
<div class="relative">
|
| 39 |
+
<div class="absolute inset-y-0 left-0 pl-3 flex items-center pointer-events-none">
|
| 40 |
+
<i data-feather="mail" class="text-gray-400"></i>
|
| 41 |
+
</div>
|
| 42 |
+
<input id="email" name="email" type="email" required
|
| 43 |
+
class="pl-10 block w-full rounded-lg border-gray-300 shadow-sm focus:border-primary focus:ring-primary"
|
| 44 |
+
placeholder="your@email.com">
|
| 45 |
+
</div>
|
| 46 |
+
</div>
|
| 47 |
+
|
| 48 |
+
<div>
|
| 49 |
+
<label for="password" class="block text-sm font-medium text-gray-700 mb-1">Password</label>
|
| 50 |
+
<div class="relative">
|
| 51 |
+
<div class="absolute inset-y-0 left-0 pl-3 flex items-center pointer-events-none">
|
| 52 |
+
<i data-feather="lock" class="text-gray-400"></i>
|
| 53 |
+
</div>
|
| 54 |
+
<input id="password" name="password" type="password" required
|
| 55 |
+
class="pl-10 block w-full rounded-lg border-gray-300 shadow-sm focus:border-primary focus:ring-primary"
|
| 56 |
+
placeholder="••••••••">
|
| 57 |
+
</div>
|
| 58 |
+
</div>
|
| 59 |
+
</div>
|
| 60 |
+
|
| 61 |
+
<div class="flex items-center justify-between">
|
| 62 |
+
<div class="flex items-center">
|
| 63 |
+
<input id="remember-me" name="remember-me" type="checkbox"
|
| 64 |
+
class="h-4 w-4 text-primary focus:ring-primary border-gray-300 rounded">
|
| 65 |
+
<label for="remember-me" class="ml-2 block text-sm text-gray-700">Remember me</label>
|
| 66 |
+
</div>
|
| 67 |
+
|
| 68 |
+
<div class="text-sm">
|
| 69 |
+
<a href="#" class="font-medium text-primary hover:text-primary-dark">Forgot password?</a>
|
| 70 |
+
</div>
|
| 71 |
+
</div>
|
| 72 |
+
|
| 73 |
+
<div>
|
| 74 |
+
<button type="submit"
|
| 75 |
+
class="w-full flex justify-center py-2 px-4 border border-transparent rounded-md shadow-sm text-sm font-medium text-white bg-primary hover:bg-primary-dark focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-primary">
|
| 76 |
+
Sign In
|
| 77 |
+
</button>
|
| 78 |
+
</div>
|
| 79 |
+
</form>
|
| 80 |
+
|
| 81 |
+
<div class="mt-6">
|
| 82 |
+
<div class="relative">
|
| 83 |
+
<div class="absolute inset-0 flex items-center">
|
| 84 |
+
<div class="w-full border-t border-gray-300"></div>
|
| 85 |
+
</div>
|
| 86 |
+
<div class="relative flex justify-center text-sm">
|
| 87 |
+
<span class="px-2 bg-white text-gray-500">Or continue with</span>
|
| 88 |
+
</div>
|
| 89 |
+
</div>
|
| 90 |
+
|
| 91 |
+
<div class="mt-6 grid grid-cols-2 gap-3">
|
| 92 |
+
<div>
|
| 93 |
+
<a href="#" class="w-full inline-flex justify-center py-2 px-4 border border-gray-300 rounded-md shadow-sm bg-white text-sm font-medium text-gray-500 hover:bg-gray-50">
|
| 94 |
+
<i data-feather="github" class="h-5 w-5"></i>
|
| 95 |
+
</a>
|
| 96 |
+
</div>
|
| 97 |
+
<div>
|
| 98 |
+
<a href="#" class="w-full inline-flex justify-center py-2 px-4 border border-gray-300 rounded-md shadow-sm bg-white text-sm font-medium text-gray-500 hover:bg-gray-50">
|
| 99 |
+
<i data-feather="twitter" class="h-5 w-5"></i>
|
| 100 |
+
</a>
|
| 101 |
+
</div>
|
| 102 |
+
</div>
|
| 103 |
+
|
| 104 |
+
<p class="mt-6 text-center text-sm text-gray-600">
|
| 105 |
+
Don't have an account? <a href="#" class="font-medium text-primary hover:text-primary-dark">Sign up</a>
|
| 106 |
+
</p>
|
| 107 |
+
</div>
|
| 108 |
+
</div>
|
| 109 |
+
</main>
|
| 110 |
+
|
| 111 |
+
<custom-footer></custom-footer>
|
| 112 |
+
|
| 113 |
+
<script src="components/header.js"></script>
|
| 114 |
+
<script src="components/footer.js"></script>
|
| 115 |
+
<script src="script.js"></script>
|
| 116 |
+
<script>
|
| 117 |
+
feather.replace();
|
| 118 |
+
</script>
|
| 119 |
+
<script src="https://huggingface.co/deepsite/deepsite-badge.js"></script>
|
| 120 |
+
</body>
|
| 121 |
+
</html>
|
script.js
ADDED
|
@@ -0,0 +1,24 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
document.addEventListener('DOMContentLoaded', function() {
|
| 2 |
+
// Form validation
|
| 3 |
+
const form = document.querySelector('form');
|
| 4 |
+
if (form) {
|
| 5 |
+
form.addEventListener('submit', function(e) {
|
| 6 |
+
e.preventDefault();
|
| 7 |
+
|
| 8 |
+
// Simple validation
|
| 9 |
+
const email = document.getElementById('email').value;
|
| 10 |
+
const password = document.getElementById('password').value;
|
| 11 |
+
|
| 12 |
+
if (!email || !password) {
|
| 13 |
+
alert('Please fill in all fields');
|
| 14 |
+
return;
|
| 15 |
+
}
|
| 16 |
+
|
| 17 |
+
// Simulate form submission
|
| 18 |
+
console.log('Form submitted', { email, password });
|
| 19 |
+
alert('Login successful! (demo)');
|
| 20 |
+
});
|
| 21 |
+
}
|
| 22 |
+
|
| 23 |
+
// Add any additional interactive elements here
|
| 24 |
+
});
|
style.css
CHANGED
|
@@ -1,28 +1,35 @@
|
|
| 1 |
-
|
| 2 |
-
|
| 3 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 4 |
}
|
| 5 |
|
| 6 |
-
|
| 7 |
-
|
| 8 |
-
margin-top: 0;
|
| 9 |
}
|
| 10 |
|
| 11 |
-
|
| 12 |
-
|
| 13 |
-
|
| 14 |
-
margin-bottom: 10px;
|
| 15 |
-
margin-top: 5px;
|
| 16 |
}
|
| 17 |
|
| 18 |
-
|
| 19 |
-
|
| 20 |
-
margin: 0 auto;
|
| 21 |
-
padding: 16px;
|
| 22 |
-
border: 1px solid lightgray;
|
| 23 |
-
border-radius: 16px;
|
| 24 |
}
|
| 25 |
|
| 26 |
-
|
| 27 |
-
|
|
|
|
| 28 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');
|
| 2 |
+
|
| 3 |
+
html {
|
| 4 |
+
font-family: 'Inter', sans-serif;
|
| 5 |
+
}
|
| 6 |
+
|
| 7 |
+
/* Custom scrollbar */
|
| 8 |
+
::-webkit-scrollbar {
|
| 9 |
+
width: 8px;
|
| 10 |
+
height: 8px;
|
| 11 |
}
|
| 12 |
|
| 13 |
+
::-webkit-scrollbar-track {
|
| 14 |
+
background: #f1f1f1;
|
|
|
|
| 15 |
}
|
| 16 |
|
| 17 |
+
::-webkit-scrollbar-thumb {
|
| 18 |
+
background: #888;
|
| 19 |
+
border-radius: 4px;
|
|
|
|
|
|
|
| 20 |
}
|
| 21 |
|
| 22 |
+
::-webkit-scrollbar-thumb:hover {
|
| 23 |
+
background: #555;
|
|
|
|
|
|
|
|
|
|
|
|
|
| 24 |
}
|
| 25 |
|
| 26 |
+
/* Animation for form elements */
|
| 27 |
+
input, button {
|
| 28 |
+
transition: all 0.3s ease;
|
| 29 |
}
|
| 30 |
+
|
| 31 |
+
/* Focus styles */
|
| 32 |
+
input:focus, button:focus {
|
| 33 |
+
outline: none;
|
| 34 |
+
box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.2);
|
| 35 |
+
}
|