defmodule AppWeb.DashboardLive do
  use AppWeb, :live_view

  @impl true
  def mount(_params, _session, socket) do
    {:ok, socket}
  end

  @impl true
  def render(assigns) do
    ~H"""
    <div class="space-y-8">
      <div class="font-semibold">
        Dashboard
      </div>

      <div class="space-y-8">
        <p>
          Metrox is a repository containing a set of components for Phoenix that are commonly used in web applications. These components can be customized according to your needs.
        </p>

        <p>
          So far, these are the components I have created:
        </p>

        <ul class="list-disc ml-4">
          <li>
            Sidebar
            <span class="text-zinc-400 dark:text-zinc-500">
              (The sidebar is the one you see on the left side, it is used in this app to navigate)
            </span>
          </li>

          <li>
            <.link navigate={~p"/typeahead"} class="underline font-semibold dark:text-white">
              Typeahead
            </.link>
          </li>
        </ul>
      </div>
    </div>
    """
  end
end
