<!-- top start -->
<nav class="navbar navbar-expand-lg fixed-top shadow-sm">
  <div class="container">
    <a class="navbar-brand d-flex align-items-center" href="#">
      <img src="/images/logo-small.png" alt="Logo" height="32" class="me-2">
      <span class="fw-bold text-primary">DAEMON</span>
      <span class="fw-light text-secondary ms-1">IDC</span>
    </a>
    <button class="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target="#mainNav">
      <span class="navbar-toggler-icon"></span>
    </button>
    <div class="collapse navbar-collapse" id="mainNav">
      <ul class="navbar-nav mx-auto mb-2 mb-lg-0">
        <li class="nav-item"><a class="nav-link active" href="#home">홈</a></li>
        <li class="nav-item"><a class="nav-link" href="#servers">서버 호스팅</a></li>
        <li class="nav-item"><a class="nav-link" href="#network">네트워크 & DDoS</a></li>
        <li class="nav-item"><a class="nav-link" href="#datacenter">데이터 센터</a></li>
        <li class="nav-item"><a class="nav-link" href="#solutions">솔루션</a></li>
        <li class="nav-item"><a class="nav-link" href="#support">고객지원</a></li>
      </ul>
      <div class="d-flex align-items-center gap-2">
        <a href="https://telegram.me/daemonidc" class="btn btn-telegram px-3 py-2 rounded-3">
          <i class="fa-brands fa-telegram me-2"></i>Telegram
        </a>
        <a href="https://discord.com/invite/k6nQg84N" class="btn btn-discord px-3 py-2 rounded-3">
          <i class="fa-brands fa-discord me-2"></i>Discord
        </a>
        <!-- <a href="#" class="btn btn-dark btn-sm fw-bold px-3 py-2 rounded-3 ms-lg-2">로그인</a> -->
      </div>
    </div>
  </div>
</nav>
<nav class="navbar navbar-expand-lg">
  <div class="container-fluid">
    <nav class="nav"><a class="navbar-brand" href="#">사용자페이지</a></nav>
    <ul class="nav justify-content-center">
      <li class="nav-item">
        <?= ICONS['LOCK'] ?>
      </li>
    </ul>
    <ul class="nav justify-content-end">
      <li class="nav-item">
        <?php if ($viewDatas['authContext']->isLoggedIn()): ?>
          <div class="btn-group">
            <button type="button" class="btn btn-outline-primary dropdown-toggle" data-bs-toggle="dropdown"
              aria-expanded="false">
              <b><?= ICONS['LOGIN'] . $viewDatas['authContext']->getName() ?></b>
            </button>
            <ul class="dropdown-menu dropdown-menu-end">
              <li><?= form_label(
                ICONS['SETUP'] . "정보수정",
                "modify",
                [
                  "class" => "dropdown-item form-label-sm",
                  "data-src" => "/admin/user/profile/" . $viewDatas['authContext']->getUID(),
                  "data-bs-toggle" => "modal",
                  "data-bs-target" => "#modal_action_form"
                ]
              ) ?></li>
              <li>
                <hr class="dropdown-divider">
              </li>
              <li><a class="dropdown-item" href="<?= URLS['LOGOUT'] ?>"><?= ICONS['LOGOUT'] ?>Logout</a></li>
            </ul>
          </div>
        <?php else: ?>
          <a class="nav-link dropdown-toggle" href="<?= URLS['LOGIN'] ?>" role="button"><?= ICONS['LOGIN'] ?>Login</a>
        <?php endif ?>
      </li>
    </ul>
  </div>
</nav>
<!-- top end -->