<?php
require_once __DIR__ . '/../includes/layout.php';
$user = current_user();
page_header("Home", $user);
?>
<div class="card">
  <h2>Room Projects</h2>
  <p class="muted">Guests can join without login via a join link + join code. Producers and co-producers manage rooms after login.</p>
  <p>
    <?php if($user): ?>
      <a href="/dashboard.php">Go to Dashboard</a>
    <?php else: ?>
      <a href="/register.php">Create Producer Account</a> · <a href="/login.php">Login</a>
    <?php endif; ?>
  </p>
</div>
<?php page_footer(); ?>
