aboutsummaryrefslogblamecommitdiff
path: root/views/layouts/main.handlebars
blob: 41585e56df5a4519fba5db4c51ff7f172d69aa38 (plain) (tree)
1
2
3
4
5
6
7
8
9
10






                                                                                                                                                                                                                            


                                                                                                      

         
                                                             



















                                                                                                                                                                                                                    
















                                                                                            










                                                                                                                                                                                                                   
<!DOCTYPE html>
<html>
  <head>
    <meta charset="UTF-8" />
    <meta name="viewport" content="width=device-width" />
    <title>{{ title }}</title>
    <link href="https://cdn.jsdelivr.net/npm/bootstrap@5.0.0-beta3/dist/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-eOJMYsd53ii+scO/bJGFsiCZc+5NDVN2yr8+0RDqr0Ql0h+rP48ckxlpbzKgwra6" crossorigin="anonymous">
    <link rel="preconnect" href="https://fonts.gstatic.com">
    <link href="https://fonts.googleapis.com/css2?family=Lato:wght@400&display=swap" rel="stylesheet">
    <link rel="stylesheet" href="/css/style.css">
  </head>
  <body>
    <nav class="navbar navbar-expand-lg navbar-dark bg-dark">
      <div class="container-fluid">
        <button class="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target="#navbarSupportedContent" aria-controls="navbarSupportedContent" aria-expanded="false" aria-label="Toggle navigation">
          <span class="navbar-toggler-icon"></span>
        </button>
        <div class="collapse navbar-collapse" id="navbarSupportedContent">
          <ul class="navbar-nav me-auto mb-2 mb-lg-0">
            <li class="nav-item">
              {{#if home}}
                <a class="nav-link active" aria-current="page" href="/">Home</a>
              {{else}}
                <a class="nav-link" href="/">Home</a>
              {{/if}}
            </li>
            <li class="nav-item">
              {{#if newPost}}
                <a class="nav-link active" aria-current="page" href="/new-post">New Post</a>
              {{else}}
                <a class="nav-link" href="/new-post">New Post</a>
              {{/if}}
            </li>
            <li class="nav-item">
              {{#if login}}
                <a class="nav-link active" aria-current="page" href="/login">Login</a>
              {{else}}
                <a class="nav-link" href="/login">Login</a>
              {{/if}}
            </li>
            <li class="nav-item">
              {{#if register}}
                <a class="nav-link active" aria-current="page" href="/register">Register</a>
              {{else}}
                <a class="nav-link" href="/register">Register</a>
              {{/if}}
            </li>
            <li class="nav-item">
                <a class="nav-link" href="/logout">Logout</a>
            </li>
          </ul>
        </div>
      </div>
    </nav>

    {{{ body }}}

    <script src="https://cdn.jsdelivr.net/npm/@popperjs/core@2.9.1/dist/umd/popper.min.js" integrity="sha384-SR1sx49pcuLnqZUnnPwx6FCym0wLsk5JZuNx2bPPENzswTNFaQU1RDvt3wT4gWFG" crossorigin="anonymous"></script>
    <script src="https://cdn.jsdelivr.net/npm/bootstrap@5.0.0-beta3/dist/js/bootstrap.min.js" integrity="sha384-j0CNLUeiqtyaRmlzUHCPZ+Gy5fQu0dQ6eZ/xAww941Ai1SxSY+0EQqNXNE6DZiVc" crossorigin="anonymous"></script>
  </body>
</html>