6
6
< link rel ="stylesheet " href ="/css/styles.min.css ">
7
7
</ head >
8
8
< body >
9
- < div class ="chat ">
10
- < div class ="chat__sidebar ">
11
-
12
- </ div >
13
- < div class ="chat__main ">
14
- < div id ="messages " class ="chat__messages "> </ div >
15
-
16
- < div class ="compose ">
17
- < form id ="message-form ">
18
- < input name ="message " placeholder ="Message ">
19
- < button > Send</ button >
20
- </ form >
21
- < button id ="send-location "> Send location</ button >
22
- </ div >
9
+ < div class ="centered-form ">
10
+ < div class ="centered-form__box ">
11
+ < h1 > Join</ h1 >
12
+ < form action ="/chat.html ">
13
+ < label > Display name</ label >
14
+ < input type ="text " name ="username " placeholder ="Display name " required >
15
+ < label > Room</ label >
16
+ < input type ="text " name ="room " placeholder ="Room " required >
17
+ < button > Join</ button >
18
+ </ form >
23
19
</ div >
24
20
</ div >
25
-
26
- < script id ="message-template " type ="text/html ">
27
- < div class = "message" >
28
- < p >
29
- < span class = "message__name" > Some User Name</ span >
30
- < span class = "message__meta" > { { createdAt} } </ span >
31
- </ p >
32
- < p > { { message} } </ p >
33
- </ div >
34
- </ script >
35
-
36
- < script id ="location-message-template " type ="text/html ">
37
- < div class = "message" >
38
- < p >
39
- < span class = "message__name" > Some User Name</ span >
40
- < span class = "message__meta" > { { createdAt} } </ span >
41
- </ p >
42
- < p > < a href = "{{url}}" target = "_blank" > My current location</ a > </ p >
43
- </ div >
44
- </ script >
45
-
46
- < script src ="https://cdnjs.cloudflare.com/ajax/libs/mustache.js/3.0.1/mustache.min.js "> </ script >
47
- < script src ="https://cdnjs.cloudflare.com/ajax/libs/moment.js/2.22.2/moment.min.js "> </ script >
48
- < script src ="https://cdnjs.cloudflare.com/ajax/libs/qs/6.6.0/qs.min.js "> </ script >
49
- < script src ="/socket.io/socket.io.js "> </ script >
50
- < script src ="/js/chat.js "> </ script >
51
21
</ body >
52
22
</ html >
0 commit comments