<!DOCTYPE html>
<html lang="ee">
  <head>
    <meta charset="UTF-8">
    <link rel="stylesheet" href="/style.css">
    <title>phpNotes</title>
  </head>
  <body>
    <nav>
      <a href="/index.php"><span class="title">phpNotes</span></a>
      <?php if (isset($_COOKIE['auth'])): ?>
        <a href="/create.php">Create a note</a>
        <div class="sep"></div>
        <form action="/logout.php" method="POST">
          <input type="submit" value="Log out" />
        </form>
      <?php else: ?>
        <div class="sep"></div>
        <a href="/login.php">Log in</a>
        <a href="/register.php">Register</a>
      <?php endif ?>
    </nav>
    <main>
