|
| 1 | +<!-- Based on Chat Interface by Florin Pop (2019) |
| 2 | +see: https://www.florin-pop.com/blog/2019/04/chat-interface/ --> |
| 3 | + |
| 4 | +<!DOCTYPE html> |
| 5 | +<html lang="en"> |
| 6 | + <head> |
| 7 | + <meta charset="UTF-8" /> |
| 8 | + <meta name="viewport" content="width=device-width, initial-scale=1.0" /> |
| 9 | + <link rel="stylesheet" href="style.css" /> |
| 10 | + <title>Chat Interface</title> |
| 11 | + </head> |
| 12 | + <body> |
| 13 | + <h2>Sarah</h2> |
| 14 | + <div class="chat-container"> |
| 15 | + <ul class="chat"> |
| 16 | + <li class="message left"> |
| 17 | + <img |
| 18 | + class="avatar" |
| 19 | + src="https://randomuser.me/api/portraits/women/17.jpg" |
| 20 | + alt="" |
| 21 | + /> |
| 22 | + <p>Hello, I've found your friend's phone.</p> |
| 23 | + </li> |
| 24 | + <li class="message right"> |
| 25 | + <img |
| 26 | + class="avatar" |
| 27 | + src="https://randomuser.me/api/portraits/men/67.jpg" |
| 28 | + alt="" |
| 29 | + /> |
| 30 | + <p>Which of my friends are you talking about? :-)</p> |
| 31 | + </li> |
| 32 | + <li class="message left"> |
| 33 | + <img |
| 34 | + class="avatar" |
| 35 | + src="https://randomuser.me/api/portraits/women/17.jpg" |
| 36 | + alt="" |
| 37 | + /> |
| 38 | + <p>The one whose name is at the top of your screen right now.</p> |
| 39 | + </li> |
| 40 | + <li class="message right"> |
| 41 | + <img |
| 42 | + class="avatar" |
| 43 | + src="https://randomuser.me/api/portraits/men/67.jpg" |
| 44 | + alt="" |
| 45 | + /> |
| 46 | + <p>Yes, right, of course :-)</p> |
| 47 | + </li> |
| 48 | + <li class="message left"> |
| 49 | + <img |
| 50 | + class="avatar" |
| 51 | + src="https://randomuser.me/api/portraits/women/17.jpg" |
| 52 | + alt="" |
| 53 | + /> |
| 54 | + <p>Can you tell her that I've found her phone?</p> |
| 55 | + </li> |
| 56 | + <li class="message right"> |
| 57 | + <img |
| 58 | + class="avatar" |
| 59 | + src="https://randomuser.me/api/portraits/men/67.jpg" |
| 60 | + alt="" |
| 61 | + /> |
| 62 | + <p>Sure</p> |
| 63 | + </li> |
| 64 | + <li class="message right"> |
| 65 | + <img |
| 66 | + class="avatar" |
| 67 | + src="https://randomuser.me/api/portraits/men/67.jpg" |
| 68 | + alt="" |
| 69 | + /> |
| 70 | + <p>Some girl says she's got your phone.</p> |
| 71 | + </li> |
| 72 | + </ul> |
| 73 | + <input type="text" class="text_input" placeholder="Message..." /> |
| 74 | + </div> |
| 75 | + </body> |
| 76 | +</html> |
0 commit comments