SergTsn commited on
Commit
15a2191
·
verified ·
1 Parent(s): 99d8e7d

темно синий фон с анимированнывми лучами лазера - Initial Deployment

Browse files
Files changed (2) hide show
  1. README.md +6 -4
  2. index.html +212 -19
README.md CHANGED
@@ -1,10 +1,12 @@
1
  ---
2
- title: My Prototype
3
- emoji: 🔥
4
- colorFrom: indigo
5
  colorTo: blue
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: my-prototype
3
+ emoji: 🐳
4
+ colorFrom: purple
5
  colorTo: blue
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,212 @@
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>Responsive Header with Contact Icons</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
+ @media (max-width: 1400px) {
11
+ .mobile-menu {
12
+ display: none;
13
+ }
14
+ .mobile-menu.active {
15
+ display: flex;
16
+ flex-direction: column;
17
+ position: absolute;
18
+ top: 100%;
19
+ left: 0;
20
+ right: 0;
21
+ background: white;
22
+ padding: 1rem;
23
+ border-top: 1px solid #e5e7eb;
24
+ z-index: 10;
25
+ }
26
+ }
27
+ .contact-icon {
28
+ transition: all 0.3s ease;
29
+ }
30
+ .contact-icon:hover {
31
+ transform: translateY(-3px);
32
+ }
33
+ .logo-text {
34
+ background: linear-gradient(90deg, #3b82f6, #8b5cf6);
35
+ -webkit-background-clip: text;
36
+ background-clip: text;
37
+ color: transparent;
38
+ }
39
+ </style>
40
+ <style>
41
+ .laser-ray {
42
+ position: absolute;
43
+ height: 1px;
44
+ background: linear-gradient(90deg, rgba(0,255,255,0), cyan, rgba(0,255,255,0));
45
+ box-shadow: 0 0 10px cyan;
46
+ transform-origin: left center;
47
+ animation: laser 3s infinite linear;
48
+ opacity: 0.7;
49
+ }
50
+
51
+ @keyframes laser {
52
+ 0% { transform: rotate(0deg) translateX(0); width: 0; }
53
+ 50% { width: 100vw; }
54
+ 100% { transform: rotate(360deg) translateX(0); width: 0; }
55
+ }
56
+
57
+ .wave {
58
+ position: absolute;
59
+ bottom: 0;
60
+ left: 0;
61
+ width: 200%;
62
+ height: 100%;
63
+ background-repeat: repeat-x;
64
+ background-position: 0 bottom;
65
+ transform-origin: center bottom;
66
+ animation: wave 12s linear infinite;
67
+ }
68
+
69
+ .wave:nth-child(2) {
70
+ animation-delay: -3s;
71
+ opacity: 0.5;
72
+ }
73
+
74
+ .wave:nth-child(3) {
75
+ animation-delay: -6s;
76
+ opacity: 0.3;
77
+ }
78
+
79
+ @keyframes wave {
80
+ 0% { transform: translateX(0) translateZ(0) scaleY(1); }
81
+ 50% { transform: translateX(-25%) translateZ(0) scaleY(0.5); }
82
+ 100% { transform: translateX(-50%) translateZ(0) scaleY(1); }
83
+ }
84
+ </style>
85
+ </head>
86
+ <body class="bg-gray-50 relative overflow-hidden">
87
+ <div id="waves" class="absolute inset-0 -z-10 opacity-20"></div>
88
+ <header class="bg-white shadow-sm">
89
+ <div class="container mx-auto px-4 py-4">
90
+ <div class="flex items-center justify-between">
91
+ <!-- Mobile menu button -->
92
+ <button class="md:hidden text-gray-700 focus:outline-none" aria-label="Toggle menu">
93
+ <i class="fas fa-bars text-xl"></i>
94
+ </button>
95
+ <!-- Logo and Company Name -->
96
+ <div class="flex items-center space-x-3">
97
+ <div class="w-10 h-10 rounded-full bg-blue-500 flex items-center justify-center">
98
+ <span class="text-white font-bold text-xl">C</span>
99
+ </div>
100
+ <h1 class="text-2xl font-bold logo-text">ConnectHub</h1>
101
+ </div>
102
+
103
+ <!-- Contact Icons -->
104
+ <div class="flex items-center space-x-4 md:space-x-6">
105
+ <a href="tel:+1234567890" class="contact-icon group">
106
+ <div class="flex items-center space-x-2">
107
+ <div class="w-10 h-10 rounded-full bg-blue-100 flex items-center justify-center group-hover:bg-blue-200">
108
+ <i class="fas fa-phone text-blue-600"></i>
109
+ </div>
110
+ <span class="hidden md:inline-block text-gray-700 font-medium">+1 (234) 567-890</span>
111
+ </div>
112
+ </a>
113
+
114
+ <a href="https://wa.me/1234567890" target="_blank" class="contact-icon group">
115
+ <div class="flex items-center space-x-2">
116
+ <div class="w-10 h-10 rounded-full bg-green-100 flex items-center justify-center group-hover:bg-green-200">
117
+ <i class="fab fa-whatsapp text-green-600"></i>
118
+ </div>
119
+ <span class="hidden md:inline-block text-gray-700 font-medium">WhatsApp</span>
120
+ </div>
121
+ </a>
122
+
123
+ <a href="https://t.me/username" target="_blank" class="contact-icon group">
124
+ <div class="flex items-center space-x-2">
125
+ <div class="w-10 h-10 rounded-full bg-blue-100 flex items-center justify-center group-hover:bg-blue-200">
126
+ <i class="fab fa-telegram text-blue-500"></i>
127
+ </div>
128
+ <span class="hidden md:inline-block text-gray-700 font-medium">Telegram</span>
129
+ </div>
130
+ </a>
131
+
132
+ </div>
133
+ </div>
134
+ </div>
135
+ </header>
136
+
137
+ <!-- Main Navigation Menu -->
138
+ <nav class="bg-white shadow-sm">
139
+ <div class="container mx-auto px-4">
140
+ <div class="hidden md:flex justify-center space-x-8 py-4">
141
+ <a href="#" class="text-gray-700 hover:text-blue-600 font-medium py-2">О нас</a>
142
+ <a href="#" class="text-gray-700 hover:text-blue-600 font-medium py-2">Услуги</a>
143
+ <a href="#" class="text-gray-700 hover:text-blue-600 font-medium py-2">Наши работы</a>
144
+ <a href="#" class="text-gray-700 hover:text-blue-600 font-medium py-2">Поддержка</a>
145
+ <a href="#" class="text-gray-700 hover:text-blue-600 font-medium py-2">Помощь</a>
146
+ <a href="#" class="text-gray-700 hover:text-blue-600 font-medium py-2">Контакты</a>
147
+ </div>
148
+ </div>
149
+ </nav>
150
+
151
+ <!-- Mobile Menu (hidden by default) -->
152
+ <div class="mobile-menu md:hidden">
153
+ <a href="#" class="py-2 px-4 text-gray-700 hover:bg-gray-100">О нас</a>
154
+ <a href="#" class="py-2 px-4 text-gray-700 hover:bg-gray-100">Услуги</a>
155
+ <a href="#" class="py-2 px-4 text-gray-700 hover:bg-gray-100">Наши работы</a>
156
+ <a href="#" class="py-2 px-4 text-gray-700 hover:bg-gray-100">Поддержка</a>
157
+ <a href="#" class="py-2 px-4 text-gray-700 hover:bg-gray-100">Помощь</a>
158
+ <a href="#" class="py-2 px-4 text-gray-700 hover:bg-gray-100">Контакты</a>
159
+ </div>
160
+
161
+ <main class="container mx-auto px-4 py-12 bg-blue-900 relative overflow-hidden">
162
+ <div id="lasers"></div>
163
+ <div class="text-center relative z-10">
164
+ <h2 class="text-3xl font-bold text-white mb-4">Welcome to ConnectHub</h2>
165
+ <p class="text-gray-300 max-w-2xl mx-auto">This responsive header features a logo on the left and contact options on the right. On mobile devices, only the icons are shown to save space.</p>
166
+ </div>
167
+ </main>
168
+
169
+ <script>
170
+ // Create laser rays
171
+ document.addEventListener('DOMContentLoaded', function() {
172
+ const lasersContainer = document.getElementById('lasers');
173
+ const rayCount = 8;
174
+
175
+ for (let i = 0; i < rayCount; i++) {
176
+ const ray = document.createElement('div');
177
+ ray.className = 'laser-ray';
178
+ ray.style.top = `${Math.random() * 100}%`;
179
+ ray.style.left = '50%';
180
+ ray.style.animationDelay = `${i * 0.5}s`;
181
+ lasersContainer.appendChild(ray);
182
+ }
183
+ });
184
+
185
+ // Create animated waves
186
+ document.addEventListener('DOMContentLoaded', function() {
187
+ const wavesContainer = document.getElementById('waves');
188
+ const colors = ['#3b82f6', '#8b5cf6', '#6366f1'];
189
+
190
+ colors.forEach((color, i) => {
191
+ const wave = document.createElement('div');
192
+ wave.className = 'wave';
193
+ wave.style.backgroundImage = `linear-gradient(to right, transparent, ${color}, transparent)`;
194
+ wave.style.animationDuration = `${12 + i*2}s`;
195
+ wavesContainer.appendChild(wave);
196
+ });
197
+ });
198
+
199
+ // Toggle mobile menu
200
+ document.querySelector('header button').addEventListener('click', function() {
201
+ document.querySelector('.mobile-menu').classList.toggle('active');
202
+ });
203
+
204
+ // Contact icons functionality
205
+ document.querySelectorAll('.contact-icon').forEach(icon => {
206
+ icon.addEventListener('click', function() {
207
+ console.log('Contact method clicked:', this.querySelector('span').textContent);
208
+ });
209
+ });
210
+ </script>
211
+ <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=SergTsn/my-prototype" style="color: #fff;text-decoration: underline;" target="_blank" >Remix</a></p></body>
212
+ </html>