-
Notifications
You must be signed in to change notification settings - Fork 8
Expand file tree
/
Copy pathmessages_basic.php
More file actions
274 lines (236 loc) · 6.13 KB
/
messages_basic.php
File metadata and controls
274 lines (236 loc) · 6.13 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
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
<html>
<head>
<style>
body {
height: 100vh;
overflow: hidden;
}
#contents {
display: flex;
height: 90%;
font-family: 'Poppins';
font-style: normal;
font-weight: 500;
font-size: 35px;
}
p {
margin: 0px 0px;
}
#messages {
padding-left: 1.5vw;
height: 100%;
width: 30%;
border-right: 1px solid #EEEEEE;
}
#heading {
margin-top: 5vh;
font-family: 'Poppins';
font-style: normal;
font-weight: 600;
font-size: 23px;
color: #000000;
}
#search {
background: #EEEEEE;
border-radius: 12px;
margin-top: 1vh;
width: 90%;
font-family: 'Poppins';
font-style: normal;
font-weight: 400;
font-size: 14px;
color: rgba(0, 0, 0, 0.45);
}
#sort {
margin-top: 1vh;
font-family: 'Poppins';
font-style: normal;
font-weight: 400;
font-size: 12px;
margin-left: 1vw;
}
#label {
color: rgba(0, 0, 0, 0.65);
}
#sort_by {
color: #0177FD;
margin-left: 1vw;
font-family: 'Poppins';
font-style: normal;
font-weight: 400;
font-size: 12px;
}
#all_messages {
overflow: scroll;
height: 70vh;
font-size: 13px;
}
::-webkit-scrollbar {
width: 0; /* Remove scrollbar space */
background: transparent; /* Optional: just make scrollbar invisible */
}
#all_messages_content {
display: flex;
flex-direction: column;
}
.all_messages_message{
padding-top: 10px;
padding-bottom: 5px;
height: 55px;
display: flex;
}
.all_messages_message:hover{
background-color: #EEEEEE;
}
.all_messages_message p{
margin: 0;
}
.all_messages_message_left{
min-width: fit-content;
width: 15%;
}
.all_messages_message_middle{
width: 60%;
}
.all_messages_message_right{
width: 15%;
display: flex;
flex-direction: column;
align-items: flex-end;
}
.all_messages_message_end{
width: 20%;
}
.all_messages_message_name{
font-family: 'Poppins';
font-style: normal;
font-weight: 500;
font-size: 13px;
color: rgba(0, 0, 0, 0.85);
}
.all_messages_message_message{
font-family: 'Poppins';
font-style: normal;
font-weight: 400;
font-size: 12px;
line-height: 16px;
color: rgba(0, 0, 0, 0.45);
}
.all_messages_message_time{
font-family: 'Poppins';
font-style: normal;
font-weight: 400;
font-size: 12px;
line-height: 16px;
color: rgba(0, 0, 0, 0.65);
}
#one_message {
width: 70%;
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
}
#one_message img {
max-height: 50vh;
max-width: 50vw;
}
#one_message_heading {
font-family: 'Poppins';
font-style: normal;
font-weight: 500;
font-size: 50px;
color: #8D8D8D;
margin: 0;
margin-top: 2vh;
}
.one_message_content {
font-family: 'NATS', 'Poppins';
font-style: normal;
font-weight: 400;
font-size: 20px;
text-align: center;
color: #8D8D8D;
margin: 0;
}
@media (max-width:1440px) {
.all_messages_message_middle{
padding-left: 5px;
}
}
@media (max-width:1023px) {
#contents {
position: fixed;
top: 10%;
width: 100vw;
}
.one_message_content:last-child{
display: none;
}
#heading{
margin-top: 2vh;
}
#messages{
width: 40%;
}
#one_message{
width: 60%;
}
.all_messages_message_left{
min-width: fit-content;
width: 20%;
}
.all_messages_message_middle{
max-width: 50%;
}
.all_messages_message_right{
width: 20%;
}
.all_messages_message_end{
width: 10%;
}
}
@media (max-width:767px) {
.all_messages_message_middle{
padding-left: 5px;
}
}
</style>
</head>
<script>
<?php
$messages = array("John Doe" => "Sodales malesuada", "Travis Barker" => "... is typing", "Robert Parker" => "Awesome!", "Rick Owens" => "Sodales malesuada", "Kate Rose" => "you: See you tomorrow!", "Tom Hardy" => "Sodales malesuada", "Vivienne Westwood" => "Sodales malesuada", "Anthony Paul" => "Sodales malesuada", "Stan Smith" => "Sodales malesuada", "Vivienne Westwood1" => "Sodales malesuada", "Anthony Paul1" => "Sodales malesuada", "Stan Smith1" => "Sodales malesuada", "Vivienne Westwood2" => "Sodales malesuada", "Anthony Paul2" => "Sodales malesuada", "Stan Smith2" => "Sodales malesuada", "Vivienne Westwood3" => "Sodales malesuada", "Anthony Paul3" => "Sodales malesuada", "Stan Smith3" => "Sodales malesuada");
?>
</script>
<body>
<?php include 'event_calendar.php'; ?>
<div id="contents">
<div id="messages">
<p id="heading">Messages</p>
<input class="form-control" id="search" type="text" placeholder="Search">
<p id="sort"><span id="label">Sort by</span> <span id="sort_by">Newest</span> <img src="./icons/dropdown.png"></p>
<div id="all_messages">
<div id="all_messages_content">
<?php
foreach ($messages as $x => $val) {
?>
<div class="all_messages_message">
<div class="all_messages_message_left">
<img src="./icons/profile1.png">
</div>
<div class="all_messages_message_middle">
<p class="all_messages_message_name"><?php echo $x; ?></p>
<p class="all_messages_message_message"><?php echo $val; ?></p>
</div>
<div class="all_messages_message_right">
<p class="all_messages_message_time">16:45</p>
<img src="./icons/read.png" style="margin-top: 5px;"></p>
</div>
<div class="all_messages_message_end">
</div>
</div>
<?php }
?>
</div>
</div>
</div>