-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathexternal-profile-view.html
More file actions
247 lines (213 loc) · 9.78 KB
/
external-profile-view.html
File metadata and controls
247 lines (213 loc) · 9.78 KB
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
<!-- This is the preview of the External Profile view. Colors are to be modified later. -->
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" name='viewport' content="width=device-width, intial-scale=1.0">
<title>Profile view</title>
<link rel="stylesheet" type='text/css' href="https://cdnjs.cloudflare.com/ajax/libs/bulma/0.7.2/css/bulma.min.css">
<script defer src="https://use.fontawesome.com/releases/v5.3.1/js/all.js"></script>
<!-- Custom styles -->
<style type="text/css">
.Page {
width: 100vw;
min-height: 100vh
}
.page-content {
margin: 0px;
max-width: 868px;
}
.has-round-borders {
border-radius: 25px;
-moz-border-radius: 25px;
-webkit-border-radius: 25px;
}
.h-center {
position: relative;
left: 50%;
transform: translateX(-50%);
/* browser compatibility */
-ms-transform: translateX(-50%);
-sand-transform: translateX(-50%);
-webkit-transform: translateX(-50%);
-moz-transform: translateX(-50%);
-o-transform: translateX(-50%);
-ms-transform: translateX(-50%);
}
.v-center {
position: relative;
top: 50%;
transform: translateY(-50%);
/* browser compatibility */
-ms-transform: translateY(-50%);
-sand-transform: translateY(-50%);
-webkit-transform: translateY(-50%);
-moz-transform: translateY(-50%);
-o-transform: translateY(-50%);
-ms-transform: translateY(-50%);
}
.flex-v-center {
align-items: center;
-webkit-align-items: center;
}
.has-box-shadow {
box-shadow: 1px 1px 1px rgba(0, 0, 0, 0.15);
-webkit-box-shadow: 1px 1px 4px rgba(0, 0, 0, 0.15);
-moz-box-shadow: 1px 1px 1px rgba(0, 0, 0, 0.15);
}
button.no-focus:focus {
outline: none;
border-color: white;
box-shadow: none;
-webkit-box-shadow: none;
-moz-box-shadow: none;
}
/* Prevent user selection */
.no-selection {
-webkit-user-select: none;
-khtml-user-select: none;
-moz-user-select: -moz-none;
-ms-select: none;
-o-user-select: none;
user-select: none;
}
@media only screen and (max-width: 768px) {
#username {
text-align: center;
}
}
</style>
<!-- /Custom styles -->
</head>
<body>
<!-- Custom class Page containing the full page -->
<div class="Page has-background-grey-lighter">
<div class="page-content h-center has-background-light has-box-shadow">
<div class="hero">
<div class="hero-body" style="box-shadow: none">
<!-- Profile info -->
<div class="columns flex-v-center" style="padding:15px 0px 15px 0px">
<!-- Profile pic -->
<div class="column">
<!-- prevent user dragging -->
<figure class="image" ondragstart="return false;">
<img class="is-rounded h-center no-selection" src="images/profile-pic.png" style="max-width:128px;"/>
</figure>
</div>
<!-- /Profile pic -->
<!-- User name & Biography -->
<div class="column is-three-quarters">
<div class="content notification">
<p id="username" class="title has-text-dark-light" style="margin-bottom:15px"> User name </p>
<p>
Perferendis ratione veniam et at. Vero delectus dolorum fugiat ea fugit ut.
Fugit minima molestidignissimos ut blanditiis. Aspernatur similique
velit magnam fuga ne. Aperiam ex et odit est ullam eum. Tempora eaque temporibus
nihil voluptatem similique iusto debitis.
</p>
<div class="content">
<span class="has-text-grey"> Posts written: 132</span>
<span class="has-text-grey" style="float: right"> joined: 23/01/2018 </span>
</div>
</div>
<!-- User name & Biography -->
</div>
</div>
<!-- /Profile info -->
<!-- Chat button -->
<div class="content">
<button class="button subtitle has-round-borders notification is-primary h-center" style="padding: 10px 20px 10px 20px; display:inline-block; font-size:135%"> chat </button>
</div>
<!-- /Chat button -->
</div>
</div>
<!-- Post separator -->
<div class="media is-radiusless has-background-grey notification is-fullwidth flex-v-center">
<div class="media-content">
<p class="has-text-light no-selection" style="display:inline-block"> POSTS: </p>
</div>
<div class="media-right">
<!-- Dropdown -->
<div class="dropdown is-right">
<div class="dropdown-trigger">
<button class="button no-focus has-background-grey has-text-light" aria-haspopup="true" aria-controls="dropdown-menu">
<span>Sort by</span>
<span class="icon is-small">
<i class="fa fa-angle-down" aria-hidden="true"></i>
</span>
</button>
</div>
<div class="dropdown-menu" id="dropdown-menu" role="menu">
<div class="dropdown-content">
<a class="dropdown-item">
time: newer to oldest
</a>
<a class="dropdown-item">
punctuation
</a>
<a class="dropdown-item">
time: oldest to newer
</a>
</div>
</div>
</div>
<!-- Dropdown -->
</div>
</div>
<!-- /Post separator -->
<!-- Posts -->
<div class="content" style="padding: 0px 10px 0px 10px">
<div class="columns">
<section class="column">
<!-- Post -->
<div class="content notification has-background-white has-box-shadow" style="height:240px;overflow: hidden">
<p class="subtitle has-text-dark"> This is the title of this post </p>
<div class="media">
<div class="media-content">
<p style="max-height:120px; overflow:hidden">
Suscipit aspernatur et nostrum ut maiores qui quas. Et voluptatem
alias dolorem. Tenetur eaque delectus qui doloremque praesentium aut
vero. Voluptatibus est cumque et tempora dignissimos.
</p>
</div>
<div class="media-right is-paddingless">
<figure class="image is-marginless" ondragstart="return false;">
<img class="no-selection" src="images/post-preview.png" style="max-width:128px"/>
</figure>
</div>
</div>
</div>
<!-- /Post -->
</section>
<section class="column">
<!-- Post -->
<div class="content notification has-background-white has-box-shadow" style="height:240px; overflow: hidden">
<p class="subtitle"> This is the title of this post </p>
<div class="media">
<div class="media-content">
<p style="max-height:120px; overflow:hidden">
this is a small post
</p>
</div>
<div class="media-right is-paddingless">
<figure class="image is-marginless" ondragstart="return false;">
<img class="no-selection" src="images/post-preview.png" style="max-width:128px"/>
</figure>
</div>
</div>
</div>
<!-- /Post -->
</section>
</div>
</div>
</div>
</div>
<!-- /Page -->
<script type="text/javascript">
var dropdown = document.querySelector('.dropdown');
dropdown.addEventListener('click', function(event) {
event.stopPropagation();
dropdown.classList.toggle('is-active');
});
</script>
</body>
</html>