-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
222 lines (216 loc) · 8.96 KB
/
index.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
209
210
211
212
213
214
215
216
217
218
219
220
221
222
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<link rel="manifest" href="/app.manifest" />
<meta name="apple-mobile-web-app-status-bar-style" content="black-translucent" />
<link rel="icon" type="image/svg+xml" href="src/favicon.svg" />
<script src="https://unpkg.com/[email protected]/dist/smoothscroll.min.js"></script>
<meta
name="viewport"
content="width=device-width, initial-scale=1.0, maximum-scale=1.0,
user-scalable=0"
/>
<title>Native like PWA tech demo</title>
</head>
<body ontouchstart="">
<header id="title">Chats</header>
<section id="scroller">
<div class="search">
<input type="text" placeholder="🔍 Search for messages or users" id="filterInput" />
</div>
<nav>
<div class="item">All Chats</div>
</nav>
<!-- Chat template -->
<template id="chatTemplate">
<li>
<div class="actions">
<div class="actions-left">
<button class="unread">
<div class="button-content">
<svg viewBox="0 0 315 305" fill="none" xmlns="http://www.w3.org/2000/svg">
<path
d="M268.229 36.587C298.39 60.54 315 92.541 315 126.696C315 160.851 298.39 192.852 268.228 216.806C238.576 240.356 199.251 253.325 157.499 253.325C153.761 253.325 149.975 253.215 146.186 252.997C140.749 267.02 131.396 279.506 119.414 288.601C105.339 299.286 88.564 304.933 70.902 304.933C67.876 304.933 65.145 303.113 63.98 300.319C62.815 297.525 63.444 294.304 65.574 292.154C79.404 278.193 86.349 258.579 84.579 238.985C60.36 228.817 39.823 213.751 24.985 195.225C8.64 174.817 0 151.12 0 126.696C0 92.541 16.609 60.54 46.769 36.587C76.42 13.037 115.746 0.0679932 157.5 0.0679932C199.251 0.0679932 238.576 13.037 268.229 36.587Z"
fill="white"
/>
</svg>
Unreads
</div>
</button>
<button class="pin">
<div class="button-content">
<svg
version="1.1"
id="Capa_1"
xmlns="http://www.w3.org/2000/svg"
xmlns:xlink="http://www.w3.org/1999/xlink"
x="0px"
y="0px"
viewBox="0 0 489.493 489.493"
style="enable-background: new 0 0 489.493 489.493"
xml:space="preserve"
>
<path
d="M485.322,117.705c12.204-12.238-3.274-47.577-34.636-78.93c-30.99-30.99-65.76-46.396-78.401-34.941l-0.246-0.236
l-173.715,156.02c-32.117-27.993-80.684-27.038-111.278,3.534c-5.149,5.157-8.051,12.146-8.051,19.437
c0,7.292,2.901,14.283,8.051,19.431l78.808,78.801L3.902,463.627c-5.148,5.799-5.262,14.655,0.015,20.601
c5.689,6.403,15.497,6.992,21.916,1.294l182.575-162.137l7.84,7.829l40.601,40.603l0,0l30.336,30.329
c5.15,5.147,12.139,8.039,19.424,8.039c7.278,0,14.272-2.898,19.419-8.056c30.561-30.573,31.524-79.158,3.539-111.27L484.771,118.03
C484.927,117.892,485.177,117.861,485.322,117.705z"
/>
<g></g>
<g></g>
<g></g>
<g></g>
<g></g>
<g></g>
<g></g>
<g></g>
<g></g>
<g></g>
<g></g>
<g></g>
<g></g>
<g></g>
<g></g>
</svg>
Pin
</div>
</button>
</div>
<div class="actions-right">
<button class="delete">
<div class="button-content">Delete</div>
</button>
</div>
</div>
<div class="content-container">
<div class="content">
<div class="buff-left"></div>
<div class="content-inner">
<div class="content-wrapper">
<div>
<img src="https://i.pravatar.cc/110?1" class="avatar" />
</div>
<div class="channel">
<div class="title"></div>
<div class="sender"></div>
<div class="message"></div>
</div>
</div>
</div>
<div class="buff-right"></div>
</div>
</div>
</li>
</template>
<!-- Chat list -->
<ul class="chats">
<li id="archived">
<div class="actions">
<div class="actions-left">
<button class="unread">
<div class="button-content">
<svg viewBox="0 0 315 305" fill="none" xmlns="http://www.w3.org/2000/svg">
<path
d="M268.229 36.587C298.39 60.54 315 92.541 315 126.696C315 160.851 298.39 192.852 268.228 216.806C238.576 240.356 199.251 253.325 157.499 253.325C153.761 253.325 149.975 253.215 146.186 252.997C140.749 267.02 131.396 279.506 119.414 288.601C105.339 299.286 88.564 304.933 70.902 304.933C67.876 304.933 65.145 303.113 63.98 300.319C62.815 297.525 63.444 294.304 65.574 292.154C79.404 278.193 86.349 258.579 84.579 238.985C60.36 228.817 39.823 213.751 24.985 195.225C8.64 174.817 0 151.12 0 126.696C0 92.541 16.609 60.54 46.769 36.587C76.42 13.037 115.746 0.0679932 157.5 0.0679932C199.251 0.0679932 238.576 13.037 268.229 36.587Z"
fill="white"
/>
</svg>
Unreads
</div>
</button>
<button class="pin">
<div class="button-content">
<svg
version="1.1"
id="Capa_1"
xmlns="http://www.w3.org/2000/svg"
xmlns:xlink="http://www.w3.org/1999/xlink"
x="0px"
y="0px"
viewBox="0 0 489.493 489.493"
style="enable-background: new 0 0 489.493 489.493"
xml:space="preserve"
>
<path
d="M485.322,117.705c12.204-12.238-3.274-47.577-34.636-78.93c-30.99-30.99-65.76-46.396-78.401-34.941l-0.246-0.236
l-173.715,156.02c-32.117-27.993-80.684-27.038-111.278,3.534c-5.149,5.157-8.051,12.146-8.051,19.437
c0,7.292,2.901,14.283,8.051,19.431l78.808,78.801L3.902,463.627c-5.148,5.799-5.262,14.655,0.015,20.601
c5.689,6.403,15.497,6.992,21.916,1.294l182.575-162.137l7.84,7.829l40.601,40.603l0,0l30.336,30.329
c5.15,5.147,12.139,8.039,19.424,8.039c7.278,0,14.272-2.898,19.419-8.056c30.561-30.573,31.524-79.158,3.539-111.27L484.771,118.03
C484.927,117.892,485.177,117.861,485.322,117.705z"
/>
<g></g>
<g></g>
<g></g>
<g></g>
<g></g>
<g></g>
<g></g>
<g></g>
<g></g>
<g></g>
<g></g>
<g></g>
<g></g>
<g></g>
<g></g>
</svg>
Pin
</div>
</button>
</div>
<div class="actions-right">
<button class="delete">
<div class="button-content">Delete</div>
</button>
</div>
</div>
<div class="content-container">
<div class="content">
<div class="buff-left"></div>
<div class="content-inner">
<div class="content-wrapper">
<div>
<img src="https://via.placeholder.com/150" class="avatar" />
</div>
<div class="channel">
<div class="title">Archived Chats</div>
<div class="message">
Hey there, <br />
foo bar baz...
</div>
</div>
</div>
</div>
<div class="buff-right"></div>
</div>
</div>
</li>
</ul>
</section>
<div id="overlay" class="overlay">
<div class="overlay-content">
<div class="chat-preview">
<div class="chat-preview-header">
<div class="chat-preview-title">Rare</div>
<div class="chat-preview-members">11 members</div>
</div>
<div class="chat-preview-content"></div>
</div>
<div class="overlay-actions">
<ul>
<li>Add to Folder</li>
<li>Mark as Unread</li>
<li>Pin</li>
<li>Unmute</li>
<li>Delete</li>
</ul>
</div>
</div>
</div>
<script type="module" src="/src/my-element.ts"></script>
</body>
</html>