-
Notifications
You must be signed in to change notification settings - Fork 15
/
Copy pathalpha.html
282 lines (251 loc) · 7 KB
/
alpha.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
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
<html>
<head>
<link rel="stylesheet" href="https://fonts.googleapis.com/icon?family=Material+Icons">
<link rel="stylesheet" href="https://unpkg.com/[email protected]/dist/material-components-web.min.css">
<style>
@import url('https://fonts.googleapis.com/css?family=Roboto:300');
body {
margin: 0;
background: white;
font-family: 'Roboto', sans-serif;
}
.messages-container {
display: flex;
width: 100%;
height: 100%;
}
.messages-list {
width: 350px;
height: 100%;
border-right: 1px solid rgba(0, 0, 0, .12);
}
.messages-chat {
flex: 1;
}
.messages-list-header {
display: flex;
align-items: center;
-webkit-justify-content: space-between;
justify-content: space-between;
height: 55px;
margin: 6px 0 0 16px;
padding: 0 0 0 8px;
}
.messages-list-content {
display: flex;
flex-direction: column;
}
.messages-list-content .mdc-list-item__graphic {
margin-right: 16px;
}
.messages-list-content .mdc-list-item__text {
font-weight: 600;
font-size: 14px;
margin: auto 0;
}
.messages-list-content .mdc-list-item__meta {
color: rgba(0, 0, 0, 0.90);
margin-left: auto;
margin-right: 0;
font-size: 12px;
}
.messages-list-content .mdc-list-item__secondary-text {
margin-left: -4px;
}
.messages-list-new {
height: 72px;
}
.messages-list-new button {
background: #fff;
color: #616161;
-webkit-box-shadow: 0 0 2px rgba(0, 0, 0, 0.12), 0 2px 2px rgba(0, 0, 0, 0.24);
box-shadow: 0 0 2px rgba(0, 0, 0, 0.12), 0 2px 2px rgba(0, 0, 0, 0.24);
}
.messages-list-new button:hover {
-webkit-box-shadow: 0 0 2px rgba(0, 0, 0, 0.12), 0 2px 2px rgba(0, 0, 0, 0.24);
box-shadow: 0 0 2px rgba(0, 0, 0, 0.12), 0 2px 2px rgba(0, 0, 0, 0.24);
}
.mdc-list-item__graphic {
width: 40px;
height: 40px;
}
.mdc-list {
cursor: pointer;
padding: 0;
}
.image-circle {
width: 40px;
height: 40px;
border-radius: 50%;
color: rgba(255, 255, 255, .54);
font-size: 22px;
font-weight: 400;
line-height: 40px;
padding-top: .04em;
text-align: center;
text-transform: uppercase;
}
.messages-no-chat {
-webkit-align-items: center;
align-items: center;
display: -webkit-box;
display: -moz-box;
display: -webkit-flex;
display: -ms-flexbox;
display: flex;
-webkit-flex-direction: column;
flex-direction: column;
-webkit-box-flex: 1;
-webkit-flex: 1;
flex: 1;
height: 100%;
-webkit-justify-content: center;
justify-content: center;
margin: 0 24px;
overflow: auto;
}
.messages-no-chat img {
height: 256px;
width: 256px;
}
.messages-no-chat h3 {
color: rgba(0, 0, 0, .87);
margin: 32px auto 8px;
}
.messages-no-chat p {
color: rgba(0, 0, 0, .74);
max-width: 420px;
text-align: center;
}
@media screen and (max-width: 560px) {
.messages-list {
width: 100%;
border-right: 0;
}
.messages-chat {
width: 100%;
display: none;
border-right: 0;
height: 100%;
left: 0;
top: 0;
position: absolute;
}
}
</style>
</head>
<body>
<div class="messages-container">
<div class="messages-list">
<div class="messages-list-header">
<h4>Messages</h4>
<div id="demo-menu" class="mdc-menu-surface--anchor">
<button id="settings" class="mdc-icon-button material-icons">more_vert</button>
<div class="mdc-menu mdc-menu-surface" id="settings-menu" tabindex="-1">
<ul class="mdc-list" role="menu" aria-hidden="true">
<li class="mdc-list-item" role="menuitem" tabindex="0">
Settings
</li>
<li class="mdc-list-item" role="menuitem" tabindex="0">
Archived
</li>
<li class="mdc-list-item" role="menuitem" tabindex="0">
Send feedback
</li>
<li class="mdc-list-item" role="menuitem" tabindex="0">
Help
</li>
<li class="mdc-list-item" role="menuitem" tabindex="0">
Sign out
</li>
</ul>
</div>
</div>
</div>
<div class="messages-list-content">
<ul class="mdc-list">
<li class="mdc-list-item messages-list-new">
<span class="mdc-list-item__graphic" aria-hidden="true">
<button class="mdc-fab mdc-fab--mini" aria-label="New">
<span class="mdc-fab__icon material-icons">add</span>
</button>
</span>
<span class="mdc-list-item__text">New Conversation</span>
</li>
</ul>
<div class="messages-list-conversations">
<ul class="mdc-list mdc-list--two-line">
<li class="mdc-list-item">
<span class="mdc-list-item__graphic" aria-hidden="true">
<div class="image-circle" style="background: #DB4437;">P</div>
</span>
<span class="mdc-list-item__text">
Jake Leichtling
<span class="mdc-list-item__secondary-text">
See you soon.
</span>
</span>
<span class="mdc-list-item__meta">Wed</span>
</li>
<li class="mdc-list-item">
<span class="mdc-list-item__graphic" aria-hidden="true">
<div class="image-circle" style="background: #3c7ae0;">P</div>
</span>
<span class="mdc-list-item__text">
Ayan Daniels
<span class="mdc-list-item__secondary-text">
How are you?
</span>
</span>
<span class="mdc-list-item__meta">Jun 20</span>
</li>
<li class="mdc-list-item">
<span class="mdc-list-item__graphic" aria-hidden="true">
<div class="image-circle" style="background: #E91E63;">P</div>
</span>
<span class="mdc-list-item__text">
Katie Novak
<span class="mdc-list-item__secondary-text">
No Problem 😀
</span>
</span>
<span class="mdc-list-item__meta">Jun 13</span>
</li>
<li class="mdc-list-item">
<span class="mdc-list-item__graphic" aria-hidden="true">
<div class="image-circle" style="background: #3F51B5;">P</div>
</span>
<span class="mdc-list-item__text">
333-333
<span class="mdc-list-item__secondary-text">
Your code is: A4V3CD
</span>
</span>
<span class="mdc-list-item__meta">Jun 12</span>
</li>
</ul>
</div>
</div>
</div>
<div class="messages-chat">
<div class="messages-no-chat">
<img src="https://www.gstatic.com/android-messages-web/images/splash_light.svg">
<h3>Stay connected to your phone</h3>
<p>Messages for web connects to your phone to sync messages. To reduce data usage, connect your phone to Wi-Fi.</p>
</div>
</div>
</div>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/2.2.4/jquery.min.js"></script>
<script src="https://unpkg.com/material-components-web@latest/dist/material-components-web.min.js"></script>
<script>
// Instantiation
var menuEl = document.querySelector('#settings-menu');
var menu = new mdc.menu.MDCMenu(menuEl);
var menuButtonEl = document.querySelector('#settings');
// Toggle menu open
menuButtonEl.addEventListener('click', function () {
menu.open = !menu.open;
});
</script>
</body>
</html>