RED243 commited on
Commit
0402e84
·
verified ·
1 Parent(s): f763d61

une application come telegrame

Browse files
Files changed (2) hide show
  1. README.md +8 -5
  2. index.html +207 -18
README.md CHANGED
@@ -1,10 +1,13 @@
1
  ---
2
- title: Chatnimbus
3
- emoji: 🏃
4
- colorFrom: indigo
5
- colorTo: purple
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: ChatNimbus ☁️
3
+ colorFrom: yellow
4
+ colorTo: green
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://deepsite.hf.co).
index.html CHANGED
@@ -1,19 +1,208 @@
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>ChatNimbus - Telegram-like Messaging</title>
7
+ <link rel="icon" type="image/x-icon" href="/static/favicon.ico">
8
+ <script src="https://cdn.tailwindcss.com"></script>
9
+ <script src="https://unpkg.com/feather-icons"></script>
10
+ <script src="https://cdn.jsdelivr.net/npm/feather-icons/dist/feather.min.js"></script>
11
+ <style>
12
+ .message-input {
13
+ resize: none;
14
+ scrollbar-width: none;
15
+ }
16
+ .message-input::-webkit-scrollbar {
17
+ display: none;
18
+ }
19
+ .chat-container {
20
+ height: calc(100vh - 128px);
21
+ }
22
+ @media (max-width: 768px) {
23
+ .sidebar {
24
+ transform: translateX(-100%);
25
+ transition: transform 0.3s ease;
26
+ }
27
+ .sidebar.active {
28
+ transform: translateX(0);
29
+ }
30
+ }
31
+ </style>
32
+ </head>
33
+ <body class="bg-gray-100 font-sans flex">
34
+ <!-- Sidebar -->
35
+ <div class="sidebar w-64 md:w-80 bg-white border-r border-gray-200 fixed h-full z-10">
36
+ <!-- Header -->
37
+ <div class="flex items-center justify-between p-4 border-b border-gray-200">
38
+ <div class="flex items-center">
39
+ <div class="w-10 h-10 rounded-full bg-blue-500 flex items-center justify-center text-white font-bold">CN</div>
40
+ <span class="ml-2 font-semibold">ChatNimbus</span>
41
+ </div>
42
+ <button id="menu-toggle" class="md:hidden">
43
+ <i data-feather="x"></i>
44
+ </button>
45
+ </div>
46
+
47
+ <!-- Search -->
48
+ <div class="p-3 border-b border-gray-200">
49
+ <div class="relative">
50
+ <input type="text" placeholder="Search..." class="w-full pl-10 pr-4 py-2 rounded-full bg-gray-100 focus:outline-none focus:ring-2 focus:ring-blue-500">
51
+ <i data-feather="search" class="absolute left-3 top-2.5 text-gray-400"></i>
52
+ </div>
53
+ </div>
54
+
55
+ <!-- Chats List -->
56
+ <div class="overflow-y-auto h-[calc(100%-120px)]">
57
+ <div class="p-3 hover:bg-gray-100 cursor-pointer flex items-center border-b border-gray-100">
58
+ <div class="relative">
59
+ <img src="http://static.photos/people/200x200/1" class="w-12 h-12 rounded-full object-cover">
60
+ <span class="w-3 h-3 bg-green-500 rounded-full absolute bottom-0 right-0 border-2 border-white"></span>
61
+ </div>
62
+ <div class="ml-3 flex-1">
63
+ <div class="flex justify-between items-center">
64
+ <span class="font-semibold">Alex Johnson</span>
65
+ <span class="text-xs text-gray-500">12:30 PM</span>
66
+ </div>
67
+ <p class="text-sm text-gray-500 truncate">Hey, how are you doing?</p>
68
+ </div>
69
+ </div>
70
+ <div class="p-3 hover:bg-gray-100 cursor-pointer flex items-center border-b border-gray-100">
71
+ <div class="relative">
72
+ <img src="http://static.photos/people/200x200/2" class="w-12 h-12 rounded-full object-cover">
73
+ <span class="w-3 h-3 bg-gray-400 rounded-full absolute bottom-0 right-0 border-2 border-white"></span>
74
+ </div>
75
+ <div class="ml-3 flex-1">
76
+ <div class="flex justify-between items-center">
77
+ <span class="font-semibold">Sarah Miller</span>
78
+ <span class="text-xs text-gray-500">10:45 AM</span>
79
+ </div>
80
+ <p class="text-sm text-gray-500 truncate">Meeting at 2 PM</p>
81
+ </div>
82
+ </div>
83
+ <div class="p-3 hover:bg-gray-100 cursor-pointer flex items-center border-b border-gray-100">
84
+ <div class="relative">
85
+ <img src="http://static.photos/people/200x200/3" class="w-12 h-12 rounded-full object-cover">
86
+ <span class="w-3 h-3 bg-green-500 rounded-full absolute bottom-0 right-0 border-2 border-white"></span>
87
+ </div>
88
+ <div class="ml-3 flex-1">
89
+ <div class="flex justify-between items-center">
90
+ <span class="font-semibold">Tech Group</span>
91
+ <span class="text-xs text-gray-500">Yesterday</span>
92
+ </div>
93
+ <p class="text-sm text-gray-500 truncate">Mike: Check out this new framework!</p>
94
+ </div>
95
+ </div>
96
+ </div>
97
+ </div>
98
+
99
+ <!-- Main Chat Area -->
100
+ <div class="flex-1 md:ml-64 lg:ml-80">
101
+ <!-- Chat Header -->
102
+ <div class="bg-white p-4 border-b border-gray-200 flex items-center">
103
+ <button id="mobile-menu" class="md:hidden mr-2">
104
+ <i data-feather="menu"></i>
105
+ </button>
106
+ <div class="flex items-center">
107
+ <img src="http://static.photos/people/200x200/1" class="w-10 h-10 rounded-full object-cover">
108
+ <div class="ml-3">
109
+ <div class="font-semibold">Alex Johnson</div>
110
+ <div class="text-xs text-gray-500">Online</div>
111
+ </div>
112
+ </div>
113
+ <div class="ml-auto flex space-x-4">
114
+ <button class="text-gray-500 hover:text-gray-700">
115
+ <i data-feather="phone"></i>
116
+ </button>
117
+ <button class="text-gray-500 hover:text-gray-700">
118
+ <i data-feather="video"></i>
119
+ </button>
120
+ <button class="text-gray-500 hover:text-gray-700">
121
+ <i data-feather="search"></i>
122
+ </button>
123
+ <button class="text-gray-500 hover:text-gray-700">
124
+ <i data-feather="more-vertical"></i>
125
+ </button>
126
+ </div>
127
+ </div>
128
+
129
+ <!-- Messages -->
130
+ <div class="chat-container overflow-y-auto bg-gray-50 p-4">
131
+ <div class="flex flex-col space-y-2">
132
+ <!-- Received message -->
133
+ <div class="flex">
134
+ <div class="flex items-end max-w-xs md:max-w-md">
135
+ <img src="http://static.photos/people/200x200/1" class="w-8 h-8 rounded-full mr-2 object-cover">
136
+ <div class="bg-white p-3 rounded-lg shadow-sm">
137
+ <p>Hey there! How's it going?</p>
138
+ <p class="text-xs text-gray-500 mt-1">12:30 PM</p>
139
+ </div>
140
+ </div>
141
+ </div>
142
+
143
+ <!-- Sent message -->
144
+ <div class="flex justify-end">
145
+ <div class="bg-blue-500 text-white p-3 rounded-lg shadow-sm max-w-xs md:max-w-md">
146
+ <p>I'm doing great! Just working on a new project.</p>
147
+ <p class="text-xs text-blue-100 mt-1">12:32 PM <i data-feather="check" class="w-3 h-3 inline"></i></p>
148
+ </div>
149
+ </div>
150
+
151
+ <!-- Received message -->
152
+ <div class="flex">
153
+ <div class="flex items-end max-w-xs md:max-w-md">
154
+ <img src="http://static.photos/people/200x200/1" class="w-8 h-8 rounded-full mr-2 object-cover">
155
+ <div class="bg-white p-3 rounded-lg shadow-sm">
156
+ <p>That sounds interesting. What kind of project?</p>
157
+ <p class="text-xs text-gray-500 mt-1">12:33 PM</p>
158
+ </div>
159
+ </div>
160
+ </div>
161
+
162
+ <!-- Sent message -->
163
+ <div class="flex justify-end">
164
+ <div class="bg-blue-500 text-white p-3 rounded-lg shadow-sm max-w-xs md:max-w-md">
165
+ <p>It's a messaging app like Telegram but with some unique features.</p>
166
+ <p class="text-xs text-blue-100 mt-1">12:35 PM <i data-feather="check" class="w-3 h-3 inline"></i></p>
167
+ </div>
168
+ </div>
169
+ </div>
170
+ </div>
171
+
172
+ <!-- Message Input -->
173
+ <div class="bg-white p-3 border-t border-gray-200">
174
+ <div class="flex items-center">
175
+ <button class="text-gray-500 hover:text-gray-700 mx-2">
176
+ <i data-feather="paperclip"></i>
177
+ </button>
178
+ <div class="flex-1">
179
+ <textarea class="message-input w-full border border-gray-200 rounded-full px-4 py-2 focus:outline-none focus:ring-2 focus:ring-blue-500" placeholder="Write a message..." rows="1"></textarea>
180
+ </div>
181
+ <button class="bg-blue-500 text-white rounded-full p-2 ml-2 hover:bg-blue-600">
182
+ <i data-feather="send"></i>
183
+ </button>
184
+ </div>
185
+ </div>
186
+ </div>
187
+
188
+ <script>
189
+ feather.replace();
190
+
191
+ // Mobile menu toggle
192
+ document.getElementById('mobile-menu').addEventListener('click', function() {
193
+ document.querySelector('.sidebar').classList.toggle('active');
194
+ });
195
+
196
+ document.getElementById('menu-toggle').addEventListener('click', function() {
197
+ document.querySelector('.sidebar').classList.remove('active');
198
+ });
199
+
200
+ // Auto-expand textarea
201
+ const textarea = document.querySelector('.message-input');
202
+ textarea.addEventListener('input', function() {
203
+ this.style.height = 'auto';
204
+ this.style.height = (this.scrollHeight) + 'px';
205
+ });
206
+ </script>
207
+ </body>
208
  </html>