-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathchat_draft.html
156 lines (145 loc) · 8.48 KB
/
chat_draft.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Chat</title>
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.15.3/css/all.min.css">
</link>
<link rel="stylesheet" href="/assets/dist/tailwind.css">
<!-- <link rel="stylesheet" href="/assets/css/chat_draft.css"> -->
<script src="/assets/dist/tailwind.js"></script>
<link href="https://cdnjs.cloudflare.com/ajax/libs/flowbite/2.2.1/flowbite.min.css" rel="stylesheet" />
<meta name="description"
content="Engage in real-time conversations with professionals in your network on Constellation Networking.">
<meta name="keywords" content="Constellation Networking, chat, real-time conversation, professional communication">
<meta name="author" content="Constellation Networking Team">
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link
href="https://fonts.googleapis.com/css2?family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&display=swap"
rel="stylesheet">
<!-- Google tag (gtag.js) -->
<script async src="https://www.googletagmanager.com/gtag/js?id=G-FTXQ5HF0C5"></script>
<script>
window.dataLayer = window.dataLayer || [];
function gtag() { dataLayer.push(arguments); }
gtag('js', new Date());
gtag('config', 'G-FTXQ5HF0C5');
</script>
<!-- Firebase -->
<script src="https://www.gstatic.com/firebasejs/8.10.0/firebase-app.js"></script>
<script src="https://www.gstatic.com/firebasejs/8.10.0/firebase-firestore.js"></script>
<script src="https://www.gstatic.com/firebasejs/8.10.0/firebase-auth.js"></script>
<script src="assets/js/firebase_init.js"></script>
</head>
<body class="bg-[#161616] text-white font-inter">
<div class="container mx-auto px-4 py-6">
<div class="flex justify-between items-center">
<a href="/index.html">
<div class="text-[#9CA3AF] text-sm tracking-widest">
CONSTELLATION.
</div>
</a>
<div class="flex items-center space-x-6">
<a href="/missions.html">
<div class="text-[#D1D5DB] text-xs tracking-widest">MISSION</div>
</a>
<a href="/connections.html">
<div class="text-[#D1D5DB] text-xs tracking-widest">CONNECTIONS</div>
</a>
<a href="chat.html">
<div class="text-[#D1D5DB] text-xs tracking-widest">CHAT</div>
</a>
<a href="rewards.html">
<div class="text-[#D1D5DB] text-xs tracking-widest">REWARDS</div>
</a>
<div class="relative dropdown" tabindex="0">
<img class="w-10 h-10 rounded-full" src="/assets/img/default_user.jpeg" id="profile-pic"
alt="User Avatar">
<div class="dropdown-menu absolute right-0 mt-2 py-2 w-48 bg-white rounded-md shadow-xl z-20"
style="display: none;">
<a href="/setup_profile.html"
class="block px-4 py-2 text-sm text-gray-700 hover:bg-gray-100">Settings</a>
<a href="#" onclick="signout()"
class="block px-4 py-2 text-sm text-gray-700 hover:bg-gray-100">Sign out</a>
</div>
</div>
</div>
</div>
<div class="container mx-auto px-4 py-6">
<div class="grid grid-cols-1 md:grid-cols-4 gap-6">
<!-- User Info and Recent Contacts -->
<div class="space-y-6 md:col-span-1">
<!-- Recent Contacts -->
<div class="bg-[#1E1E1E] shadow-lg rounded-lg p-4 border border-[#292929]">
<div class="text-lg text-[#D1D5DB] font-semibold mb-4">Recent Contacts</div>
<div class="h-[35px] relative mb-6">
<input type="text"
class="w-full h-[35px] left-0 top-0 absolute bg-[#303030] rounded-[20px] pl-10 pr-4 text-white placeholder:gray-400 placeholder:text-sm placeholder:font-['Inter']"
placeholder="Search for users..." id="user-search-email">
<div
class="w-3.5 h-[17px] left-[12px] top-[7px] absolute text-gray-400 text-sm font-semibold font-['Inter']">
@</div>
</div>
<div class="space-y-6 mb-4 messages-header" id="userHistoryList">
<!-- List for users -->
<li style="list-style-type: none;">
<div class="user-history-item">
<div class="flex items-center space-x-4 rounded-full hover:bg-[#313131]" id="user-ConstellationBot">
<img src="/assets/img/constellation_bot.png" class="w-12 h-12 rounded-full" width="50" height="50">
<div id="found-user-details">
<div class="text-sm">Constellation Bot</div>
<div class="text-[#9CA3AF] text-xs">Active</div>
</div>
</div>
</div>
</li>
</div>
<p class="text-sm text-gray-500 mb-2">Your recent contacts will appear here.</p>
</div>
</div>
<!-- Main Content -->
<div class="md:col-span-3">
<div class="w-[1101px] h-[847px] bg-[#1e1e1e] rounded-xl shadow border-l border-t border-[#292929] flex flex-col"
id="chatwindow">
<div class="w-[1101px] h-[70px] flex-none relative">
<div
class="w-full h-full bg-[#1e1e1e] rounded-xl shadow border-l border-t border-b border-[#292929]">
</div>
<div class="w-[157px] h-[50px] absolute left-[25px] top-[10px]">
<img id="target-user-profile-pic" class="w-[50px] h-[50px] rounded-full" src="/assets/img/default_user.jpeg" />
<div id="target-user-name" class="absolute left-[60px] top-[12px] text-white text-xs font-normal font-['Inter']"> Name
</div>
<div
class="absolute left-[60px] top-[28px] text-gray-400 text-[11px] font-normal font-['Inter']">
Active
</div>
<img class="w-[50px] h-[50px] absolute left-0 top-0 rounded-[25px]"
src="https://via.placeholder.com/50x50" />
</div>
</div>
<!-- This area will grow and shrink as needed -->
<div class="flex-grow overflow-auto p-4" id="message-history">
<!-- Chat messages will go here -->
</div>
<div class="w-full h-[41px] flex-none flex items-center bg-[#1e1e1e] rounded-xl shadow border border-[#292929]"
id="messagebar">
<input type="text" id="message-input"
class="bg-[#1E1E1E] border-0 rounded-[12px] text-white flex-grow placeholder:gray-400 placeholder:text-sm placeholder:font-['Inter']"
placeholder="Enter your message here...">
<button id="send-button"
class="w-[70px] h-[37px] bg-[#0d84ff] rounded-xl flex items-center justify-center text-white text-sm font-semibold font-['Inter']">
Send
</button>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</body>
<script src="https://cdnjs.cloudflare.com/ajax/libs/flowbite/2.2.1/flowbite.min.js"></script>
<script src="/assets/js/chat_draft.js"></script>
</html>