<h1 class="text-3xl font-bold text-white mb-4">My Projects</h1>

<% if current_user.github_uid.blank? %>
  <div class="notice">
    You can't tie your projects to GitHub until you connect your GitHub account.
    <%= link_to "Sign in with GitHub", github_auth_path, class: "btn btn-primary" %>
  </div>
<% end %>

<%= render "shared/interval_selector" %>

<%= turbo_frame_tag "project_durations", src: project_durations_static_pages_path(interval: params[:interval], from: params[:from], to: params[:to]), target: "_top" do %>
  <div class="loading-indicator">Loading projects...</div>
<% end %>
