chat.html 2.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. ---
  2. title: Playground
  3. page-header: Chat
  4. menu: extra.chat
  5. ---
  6. {% assign person = people[4] %}
  7. <div class="card">
  8. <div class="row g-0">
  9. <div class="col-12 col-lg-5 col-xl-3 border-end">
  10. <div class="card-header d-none d-md-block">
  11. <div class="input-icon">
  12. <span class="input-icon-addon"> {% include "ui/icon.html" icon="search" %} </span>
  13. <input type="text" value="" class="form-control" placeholder="Search…" aria-label="Search" />
  14. </div>
  15. </div>
  16. <div class="card-body p-0 scrollable" style="max-height: 35rem">
  17. <div class="nav flex-column nav-pills" role="tablist">
  18. {% for person in people limit: 10 %}
  19. <a href="#chat-1" class="nav-link text-start mw-100 p-3{% if forloop.index == 1 %} active{% endif %}" id="chat-1-tab" data-bs-toggle="pill" role="tab" aria-selected="true">
  20. <div class="row align-items-center flex-fill">
  21. <div class="col-auto">{% include "ui/avatar.html" person=person %}</div>
  22. <div class="col text-body">
  23. <div>{{ person.full_name }}</div>
  24. <div class="text-secondary text-truncate w-100">{{ chat[forloop.index].message }}</div>
  25. </div>
  26. {% if forloop.index == 7 %}
  27. <div class="col-auto">🌴</div>
  28. {% endif %}
  29. </div>
  30. </a>
  31. {% endfor %}
  32. </div>
  33. </div>
  34. </div>
  35. <div class="col-12 col-lg-7 col-xl-9 d-flex flex-column">
  36. <div class="card-body scrollable" style="height: 35rem">{% include "ui/chat.html" wide=true %}</div>
  37. <div class="card-footer">
  38. <div class="input-group input-group-flat">
  39. <input type="text" class="form-control" autocomplete="off" placeholder="Type message" />
  40. <span class="input-group-text">
  41. <a href="#" class="link-secondary" data-bs-toggle="tooltip" aria-label="Clear search" title="Clear search"> {% include "ui/icon.html" icon="mood-smile" %} </a>
  42. <a href="#" class="link-secondary ms-2" data-bs-toggle="tooltip" aria-label="Add notification" title="Add notification"> {% include "ui/icon.html" icon="paperclip" %} </a>
  43. </span>
  44. </div>
  45. </div>
  46. </div>
  47. </div>
  48. </div>