-
Notifications
You must be signed in to change notification settings - Fork 0
/
chat.html
208 lines (150 loc) · 7.13 KB
/
chat.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
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
<!DOCTYPE html>
<html lang="en" style="height: 100%;">
<head>
<meta charset="utf-8">
<title>ForeverYou.com</title>
<meta name="viewport" content="width=device-width, initial-scale=1">
<link href="https://cdn.jsdelivr.net/npm/[email protected]/dist/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-T3c6CoIi6uLrA9TneNEoa7RxnatzjcDSCmG1MXxSR1GAsXEV/Dwwykc2MPK8M2HN" crossorigin="anonymous">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.2/css/all.min.css" integrity="sha512-z3gLpd7yknf1YoNbCzqRKc4qyor8gaKU1qmn+CShxbuBusANI9QpRohGBreCFkKxLhei6S9CQXFEbbKuqLg0DA==" crossorigin="anonymous" />
<link href="css/style.css" rel="stylesheet" />
<style>
#chat1 .form-outline .form-control~.form-notch div {
pointer-events: none;
border: 1px solid;
border-color: #eee;
box-sizing: border-box;
background: transparent;
}
#chat1 .form-outline .form-control~.form-notch .form-notch-leading {
left: 0;
top: 0;
height: 100%;
border-right: none;
border-radius: .65rem 0 0 .65rem;
}
#chat1 .form-outline .form-control~.form-notch .form-notch-middle {
flex: 0 0 auto;
max-width: calc(100% - 1rem);
height: 100%;
border-right: none;
border-left: none;
}
#chat1 .form-outline .form-control~.form-notch .form-notch-trailing {
flex-grow: 1;
height: 100%;
border-left: none;
border-radius: 0 .65rem .65rem 0;
}
#chat1 .form-outline .form-control:focus~.form-notch .form-notch-leading {
border-top: 0.125rem solid #39c0ed;
border-bottom: 0.125rem solid #39c0ed;
border-left: 0.125rem solid #39c0ed;
}
#chat1 .form-outline .form-control:focus~.form-notch .form-notch-leading,
#chat1 .form-outline .form-control.active~.form-notch .form-notch-leading {
border-right: none;
transition: all 0.2s linear;
}
#chat1 .form-outline .form-control:focus~.form-notch .form-notch-middle {
border-bottom: 0.125rem solid;
border-color: #39c0ed;
}
#chat1 .form-outline .form-control:focus~.form-notch .form-notch-middle,
#chat1 .form-outline .form-control.active~.form-notch .form-notch-middle {
border-top: none;
border-right: none;
border-left: none;
transition: all 0.2s linear;
}
#chat1 .form-outline .form-control:focus~.form-notch .form-notch-trailing {
border-top: 0.125rem solid #39c0ed;
border-bottom: 0.125rem solid #39c0ed;
border-right: 0.125rem solid #39c0ed;
}
#chat1 .form-outline .form-control:focus~.form-notch .form-notch-trailing,
#chat1 .form-outline .form-control.active~.form-notch .form-notch-trailing {
border-left: none;
transition: all 0.2s linear;
}
#chat1 .form-outline .form-control:focus~.form-label {
color: #39c0ed;
}
#chat1 .form-outline .form-control~.form-label {
color: #bfbfbf;
}
</style>
</head>
<body id="chat" style="height: 100%; display: flex; flex-flow: column;">
<nav class="navbar navbar-expand-md navbar-dark bg-dark" >
<div class="container-fluid">
<a class="navbar-brand" href="./">ForeverYou.com</a>
<div class="col-md-3 text-end" id="topbar-signup" style="display: none">
<a type="button" class="btn btn-outline-primary me-2" href="./login.html">Login</a>
<a type="button" class="btn btn-primary" href="./signup.html">Sign-up</a>
</div>
<div class="dropdown text-end" id="topbar-user" style="display: none">
<a href="#" class="d-block link-dark text-decoration-none dropdown-toggle" id="dropdownUser1" data-bs-toggle="dropdown" aria-expanded="false">
<img src="https://avatars.dicebear.com/api/adventurer-neutral/mail%40ashallendesign.co.uk.svg" alt="mdo" width="32" height="32" class="rounded-circle">
<!-- https://eu.ui-avatars.com/api/?name=John+Doe&size=25 -->
</a>
<ul class="dropdown-menu text-small dropdown-menu-end" aria-labelledby="dropdownUser1" style="">
<li><a class="dropdown-item" href="./">My profile page</a></li>
<li><a class="dropdown-item disabled" href="./">My chats</a></li>
<li><hr class="dropdown-divider"></li>
<li><a class="dropdown-item" href="./search.html">Search a person</a></li>
<li><hr class="dropdown-divider"></li>
<li><a class="dropdown-item signout-button" href="#">Sign out</a></li>
</ul>
</div>
</div>
</nav>
<main style="display: flex; flex-grow: 1; width: 100%" >
<div class="card shadow-sm" style="height: 100%; width: 100%;">
<section style="background-color: #eee; height: 100%;">
<div class="container py-2" style="height: 100%;">
<div class="row d-flex justify-content-center" style="height: 100%;">
<div class="col-12" style="height: 100%;">
<div class="card" id="chat1" style="border-radius: 15px; height: 100%;">
<div
class="card-header d-flex justify-content-between align-items-center p-3 bg-info text-white border-bottom-0"
style="border-top-left-radius: 15px; border-top-right-radius: 15px;">
<i class="fas fa-angle-left" style="visibility: hidden;"></i>
<p class="mb-0" id="chat-heading">Live chat with <span class="fw-bold" id="title-username">...</span></p>
<i class="fas fa-times" style="visibility: hidden;"></i>
</div>
<div class="card-body" style="display: flex; flex-flow: column;">
<div style="flex-grow: 1; overflow-y: scroll; position: relative;">
<div id="chat-container" style="position: absolute; width: 100%;">
<div id="other-bubble" class="d-flex flex-row justify-content-start mb-4 d-none">
<img src="https://mdbcdn.b-cdn.net/img/Photos/new-templates/bootstrap-chat/ava1-bg.webp"
alt="avatar 1" style="width: 45px; height: 100%;">
<div class="p-3 ms-3" style="border-radius: 15px; background-color: rgba(57, 192, 237,.2);">
<p class="small mb-0 text-content"></p>
</div>
</div>
<div id="my-bubble" class="d-flex flex-row justify-content-end mb-4 d-none">
<div class="p-3 me-3 border" style="border-radius: 15px; background-color: #fbfbfb;">
<p class="small mb-0 text-content"></p>
</div>
<img src="https://mdbcdn.b-cdn.net/img/Photos/new-templates/bootstrap-chat/ava2-bg.webp"
alt="avatar 1" style="width: 45px; height: 100%;">
</div>
</div>
</div>
<div class="form-outline">
<textarea class="form-control" id="message-text" rows="4"></textarea>
<label class="form-label" for="textAreaExample">Type your message</label>
</div>
<button id="send-button" class="btn btn-primary">Send</button>
</div>
</div>
</div>
</div>
</div>
</section>
</main>
<script src="https://code.jquery.com/jquery-3.7.1.min.js" integrity="sha256-/JqT3SQfawRcv/BIHPThkBvs0OEvtFFmqPF/lYI/Cxo=" crossorigin="anonymous"></script>
<script type="module" src="js/main.js"></script>
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/js/bootstrap.bundle.min.js" integrity="sha384-C6RzsynM9kWDrMNeT87bh95OGNyZPhcTNXj1NW7RuBCsyN/o0jlpcV8Qyq46cDfL" crossorigin="anonymous"></script>
</body>
</html>