sergotsev commited on
Commit
8ef7238
·
verified ·
1 Parent(s): 31e1095

Add 2 files

Browse files
Files changed (2) hide show
  1. README.md +7 -5
  2. index.html +334 -19
README.md CHANGED
@@ -1,10 +1,12 @@
1
  ---
2
- title: Addcalendar
3
- emoji: 📈
4
- colorFrom: gray
5
- colorTo: yellow
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: addcalendar
3
+ emoji: 🐳
4
+ colorFrom: blue
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,334 @@
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>TimeSync - Умное планирование</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
+ /* Кастомные стили */
11
+ .ios-scroll {
12
+ -webkit-overflow-scrolling: touch;
13
+ }
14
+ .btn-press {
15
+ transition: all 0.1s ease;
16
+ }
17
+ .btn-press:active {
18
+ transform: scale(0.95);
19
+ opacity: 0.8;
20
+ }
21
+ .event-dot {
22
+ width: 8px;
23
+ height: 8px;
24
+ border-radius: 50%;
25
+ position: absolute;
26
+ top: 3px;
27
+ left: 50%;
28
+ transform: translateX(-50%);
29
+ }
30
+ .time-slot {
31
+ height: 60px;
32
+ border-bottom: 1px solid #e5e7eb;
33
+ position: relative;
34
+ }
35
+ .calendar-grid {
36
+ display: grid;
37
+ grid-template-columns: repeat(7, 1fr);
38
+ }
39
+ .day-cell {
40
+ aspect-ratio: 1/1;
41
+ }
42
+ .slide-up {
43
+ animation: slideUp 0.3s ease-out;
44
+ }
45
+ @keyframes slideUp {
46
+ from { transform: translateY(100%); }
47
+ to { transform: translateY(0); }
48
+ }
49
+ </style>
50
+ </head>
51
+ <body class="bg-gray-50 font-sans text-gray-900 max-w-md mx-auto relative" style="height: 100vh; overflow: hidden;">
52
+ <!-- Главный экран с табами -->
53
+ <div class="h-full flex flex-col">
54
+ <!-- Шапка -->
55
+ <div class="bg-white px-4 pt-12 pb-3 shadow-sm z-10">
56
+ <div class="flex justify-between items-center mb-4">
57
+ <h1 class="text-2xl font-bold">TimeSync</h1>
58
+ <div class="flex space-x-3">
59
+ <button class="btn-press w-8 h-8 rounded-full bg-gray-100 flex items-center justify-center">
60
+ <i class="fas fa-search text-gray-500"></i>
61
+ </button>
62
+ <button class="btn-press w-8 h-8 rounded-full bg-gray-100 flex items-center justify-center">
63
+ <i class="fas fa-cog text-gray-500"></i>
64
+ </button>
65
+ </div>
66
+ </div>
67
+
68
+ <!-- Табы -->
69
+ <div class="flex border-b border-gray-200">
70
+ <button class="btn-press flex-1 py-2 font-medium text-blue-500 border-b-2 border-blue-500">Сегодня</button>
71
+ <button class="btn-press flex-1 py-2 font-medium text-gray-500">Календари</button>
72
+ <button class="btn-press flex-1 py-2 font-medium text-gray-500">Встречи</button>
73
+ </div>
74
+ </div>
75
+
76
+ <!-- Контент -->
77
+ <div class="flex-1 overflow-hidden">
78
+ <!-- Экран "Сегодня" -->
79
+ <div class="h-full ios-scroll overflow-y-auto bg-white">
80
+ <!-- Дата и переключение дней -->
81
+ <div class="sticky top-0 bg-white z-10 px-4 py-3 border-b border-gray-200 flex justify-between items-center">
82
+ <button class="btn-press px-3 py-1 rounded-full bg-gray-100">
83
+ <i class="fas fa-chevron-left text-gray-500"></i>
84
+ </button>
85
+ <div class="text-center">
86
+ <div class="font-medium">Сегодня</div>
87
+ <div class="text-sm text-gray-500">15 июня, пятница</div>
88
+ </div>
89
+ <button class="btn-press px-3 py-1 rounded-full bg-gray-100">
90
+ <i class="fas fa-chevron-right text-gray-500"></i>
91
+ </button>
92
+ </div>
93
+
94
+ <!-- Быстрое добавление -->
95
+ <div class="px-4 py-3 border-b border-gray-200">
96
+ <button id="addEventBtn" class="btn-press w-full py-2 px-4 bg-blue-500 text-white rounded-full flex items-center justify-center space-x-2">
97
+ <i class="fas fa-plus"></i>
98
+ <span>Добавить событие</span>
99
+ </button>
100
+ </div>
101
+
102
+ <!-- Список событий -->
103
+ <div class="divide-y divide-gray-200">
104
+ <!-- Событие 1 -->
105
+ <div class="px-4 py-3">
106
+ <div class="flex items-start">
107
+ <div class="w-12 flex-shrink-0">
108
+ <div class="text-sm text-gray-500">09:00</div>
109
+ <div class="text-xs text-gray-400">10:00</div>
110
+ </div>
111
+ <div class="ml-2 flex-1">
112
+ <div class="font-medium">Совещание по проекту</div>
113
+ <div class="text-sm text-gray-500">Рабочая группа</div>
114
+ <div class="mt-1 flex items-center text-xs text-gray-400">
115
+ <i class="fas fa-users mr-1"></i>
116
+ <span>Алексей, Мария, Иван</span>
117
+ </div>
118
+ </div>
119
+ <div class="w-3 h-3 rounded-full bg-blue-500 mt-1"></div>
120
+ </div>
121
+ </div>
122
+
123
+ <!-- Событие 2 -->
124
+ <div class="px-4 py-3">
125
+ <div class="flex items-start">
126
+ <div class="w-12 flex-shrink-0">
127
+ <div class="text-sm text-gray-500">12:30</div>
128
+ <div class="text-xs text-gray-400">13:30</div>
129
+ </div>
130
+ <div class="ml-2 flex-1">
131
+ <div class="font-medium">Обеденный перерыв</div>
132
+ <div class="text-sm text-gray-500">Личное</div>
133
+ </div>
134
+ <div class="w-3 h-3 rounded-full bg-green-500 mt-1"></div>
135
+ </div>
136
+ </div>
137
+
138
+ <!-- Событие 3 -->
139
+ <div class="px-4 py-3">
140
+ <div class="flex items-start">
141
+ <div class="w-12 flex-shrink-0">
142
+ <div class="text-sm text-gray-500">15:00</div>
143
+ <div class="text-xs text-gray-400">16:30</div>
144
+ </div>
145
+ <div class="ml-2 flex-1">
146
+ <div class="font-medium">Презентация клиенту</div>
147
+ <div class="text-sm text-gray-500">Важные встречи</div>
148
+ <div class="mt-1 flex items-center text-xs text-gray-400">
149
+ <i class="fas fa-map-marker-alt mr-1"></i>
150
+ <span>Офис клиента</span>
151
+ </div>
152
+ </div>
153
+ <div class="w-3 h-3 rounded-full bg-purple-500 mt-1"></div>
154
+ </div>
155
+ </div>
156
+ </div>
157
+ </div>
158
+ </div>
159
+
160
+ <!-- Нижнее меню -->
161
+ <div class="bg-white border-t border-gray-200 py-2 px-4 flex justify-around">
162
+ <button class="btn-press flex flex-col items-center text-blue-500">
163
+ <i class="fas fa-calendar-day text-lg"></i>
164
+ <span class="text-xs mt-1">Сегодня</span>
165
+ </button>
166
+ <button class="btn-press flex flex-col items-center text-gray-500">
167
+ <i class="fas fa-calendar-alt text-lg"></i>
168
+ <span class="text-xs mt-1">Календарь</span>
169
+ </button>
170
+ <button class="btn-press flex flex-col items-center text-gray-500">
171
+ <i class="fas fa-users text-lg"></i>
172
+ <span class="text-xs mt-1">Группы</span>
173
+ </button>
174
+ <button class="btn-press flex flex-col items-center text-gray-500">
175
+ <i class="fas fa-user text-lg"></i>
176
+ <span class="text-xs mt-1">Профиль</span>
177
+ </button>
178
+ </div>
179
+ </div>
180
+
181
+ <!-- Модальное окно добавления события -->
182
+ <div id="eventModal" class="fixed inset-0 bg-black bg-opacity-50 z-20 hidden">
183
+ <div class="absolute bottom-0 w-full bg-white rounded-t-3xl slide-up" style="height: 85vh;">
184
+ <div class="px-4 py-3 border-b border-gray-200 flex justify-between items-center">
185
+ <button id="closeModalBtn" class="btn-press text-gray-500">
186
+ <i class="fas fa-times"></i>
187
+ </button>
188
+ <div class="font-medium">Новое событие</div>
189
+ <button class="btn-press text-blue-500 font-medium">Готово</button>
190
+ </div>
191
+
192
+ <div class="ios-scroll overflow-y-auto" style="height: calc(85vh - 50px);">
193
+ <div class="px-4 py-3">
194
+ <input type="text" placeholder="Название события" class="w-full text-xl font-medium border-0 focus:ring-0 px-0">
195
+ </div>
196
+
197
+ <div class="px-4 py-3 border-t border-gray-200">
198
+ <div class="flex items-center">
199
+ <i class="fas fa-clock text-gray-400 mr-3"></i>
200
+ <div class="flex-1">
201
+ <div class="text-sm text-gray-500">Время</div>
202
+ <div class="flex space-x-3 mt-1">
203
+ <div class="flex-1">
204
+ <div class="text-sm font-medium">15 июня</div>
205
+ <select class="w-full mt-1 border border-gray-200 rounded-md px-2 py-1 text-sm">
206
+ <option>09:00</option>
207
+ <option>09:30</option>
208
+ <option>10:00</option>
209
+ <option selected>10:30</option>
210
+ <option>11:00</option>
211
+ </select>
212
+ </div>
213
+ <div class="flex-1">
214
+ <div class="text-sm font-medium">До</div>
215
+ <select class="w-full mt-1 border border-gray-200 rounded-md px-2 py-1 text-sm">
216
+ <option>10:00</option>
217
+ <option>10:30</option>
218
+ <option selected>11:00</option>
219
+ <option>11:30</option>
220
+ <option>12:00</option>
221
+ </select>
222
+ </div>
223
+ </div>
224
+ </div>
225
+ </div>
226
+ </div>
227
+
228
+ <div class="px-4 py-3 border-t border-gray-200">
229
+ <div class="flex items-center">
230
+ <i class="fas fa-calendar-alt text-gray-400 mr-3"></i>
231
+ <div class="flex-1">
232
+ <div class="text-sm text-gray-500">Календарь</div>
233
+ <select class="w-full mt-1 border border-gray-200 rounded-md px-2 py-1 text-sm">
234
+ <option>Личный</option>
235
+ <option>Рабочая группа</option>
236
+ <option>Важные встречи</option>
237
+ <option>Семья</option>
238
+ </select>
239
+ </div>
240
+ </div>
241
+ </div>
242
+
243
+ <div class="px-4 py-3 border-t border-gray-200">
244
+ <div class="flex items-center">
245
+ <i class="fas fa-bell text-gray-400 mr-3"></i>
246
+ <div class="flex-1">
247
+ <div class="text-sm text-gray-500">Напоминание</div>
248
+ <select class="w-full mt-1 border border-gray-200 rounded-md px-2 py-1 text-sm">
249
+ <option>Нет</option>
250
+ <option>За 5 минут</option>
251
+ <option selected>За 15 минут</option>
252
+ <option>За 30 минут</option>
253
+ <option>За 1 час</option>
254
+ </select>
255
+ </div>
256
+ </div>
257
+ </div>
258
+
259
+ <div class="px-4 py-3 border-t border-gray-200">
260
+ <div class="flex items-center">
261
+ <i class="fas fa-map-marker-alt text-gray-400 mr-3"></i>
262
+ <div class="flex-1">
263
+ <div class="text-sm text-gray-500">Место</div>
264
+ <input type="text" placeholder="Добавить место" class="w-full mt-1 border-0 focus:ring-0 px-0">
265
+ </div>
266
+ </div>
267
+ </div>
268
+
269
+ <div class="px-4 py-3 border-t border-gray-200">
270
+ <div class="flex items-center">
271
+ <i class="fas fa-users text-gray-400 mr-3"></i>
272
+ <div class="flex-1">
273
+ <div class="text-sm text-gray-500">Участники</div>
274
+ <div class="mt-2 flex flex-wrap gap-2">
275
+ <div class="flex items-center bg-gray-100 rounded-full px-3 py-1">
276
+ <div class="w-5 h-5 rounded-full bg-blue-500 mr-2"></div>
277
+ <span class="text-sm">Алексей</span>
278
+ <button class="ml-2 text-gray-400">
279
+ <i class="fas fa-times text-xs"></i>
280
+ </button>
281
+ </div>
282
+ <button class="btn-press w-8 h-8 rounded-full bg-gray-100 flex items-center justify-center">
283
+ <i class="fas fa-plus text-gray-500"></i>
284
+ </button>
285
+ </div>
286
+ </div>
287
+ </div>
288
+ </div>
289
+
290
+ <div class="px-4 py-3 border-t border-gray-200">
291
+ <div class="flex items-center">
292
+ <i class="fas fa-align-left text-gray-400 mr-3"></i>
293
+ <div class="flex-1">
294
+ <div class="text-sm text-gray-500">Заметки</div>
295
+ <textarea placeholder="Добавить описание" class="w-full mt-1 border-0 focus:ring-0 px-0 h-20 resize-none"></textarea>
296
+ </div>
297
+ </div>
298
+ </div>
299
+
300
+ <div class="px-4 py-3 border-t border-gray-200">
301
+ <button class="btn-press w-full py-2 bg-red-100 text-red-500 rounded-md flex items-center justify-center">
302
+ <i class="fas fa-trash-alt mr-2"></i>
303
+ <span>Удалить событие</span>
304
+ </button>
305
+ </div>
306
+ </div>
307
+ </div>
308
+ </div>
309
+
310
+ <script>
311
+ // Обработчики для модального окна
312
+ document.getElementById('addEventBtn').addEventListener('click', function() {
313
+ document.getElementById('eventModal').classList.remove('hidden');
314
+ });
315
+
316
+ document.getElementById('closeModalBtn').addEventListener('click', function() {
317
+ document.getElementById('eventModal').classList.add('hidden');
318
+ });
319
+
320
+ // Эффект нажатия для всех кнопок
321
+ document.querySelectorAll('.btn-press').forEach(button => {
322
+ button.addEventListener('mousedown', function() {
323
+ this.classList.add('opacity-80', 'scale-95');
324
+ });
325
+ button.addEventListener('mouseup', function() {
326
+ this.classList.remove('opacity-80', 'scale-95');
327
+ });
328
+ button.addEventListener('mouseleave', function() {
329
+ this.classList.remove('opacity-80', 'scale-95');
330
+ });
331
+ });
332
+ </script>
333
+ <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=sergotsev/addcalendar" style="color: #fff;text-decoration: underline;" target="_blank" >🧬 Remix</a></p></body>
334
+ </html>