<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1">
  <title>Chat - {{COLLECTION_NAME}}</title>
  <link rel="stylesheet" href="styles.css">
</head>
<body>
<div class="container">
  <header class="header">
    <div class="header__inner">
      <div class="header__logo">
        <a href="{{HOME_URL}}" style="text-decoration: none;">
          <div class="logo">{{COLLECTION_NAME}}</div>
        </a>
      </div>
    </div>
    <nav class="menu">
      <ul class="menu__inner">
        {{MENU_ITEMS}}
      </ul>
    </nav>
  </header>

  <div class="content">
    <div class="chat-layout">
      <!-- Channels sidebar -->
      <aside class="channels-sidebar" id="channels">
        <div class="channels-header">Channels</div>
        {{CHANNELS_LIST}}
      </aside>

      <!-- Messages area -->
      <div class="messages-area">
        <div class="messages-header">
          <span class="room-name">#<span id="current-room">main</span></span>
          <span class="read-only-badge">read-only</span>
        </div>
        <div class="messages-list" id="messages">
          {{CONTENT}}
        </div>
      </div>
    </div>
  </div>

  <footer class="footer">
    <div class="footer__inner">
      <div class="copyright">
        <span>published via geogram</span>
      </div>
    </div>
  </footer>
</div>

<script>
  window.GEOGRAM_DATA = {{DATA_JSON}};
  {{SCRIPTS}}
</script>
</body>
</html>
