defmodule LivebookWeb.ExploreHelpers do use Phoenix.Component alias LivebookWeb.Router.Helpers, as: Routes @doc """ Renders an explore notebook card. """ def notebook_card(assigns) do ~H"""
<%= live_redirect to: Routes.explore_path(@socket, :notebook, @notebook_info.slug), class: "flex items-center justify-center p-6 border-2 border-gray-100 rounded-t-2xl h-[150px]" do %> {"#{@notebook_info.title} <% end %>
<%= live_redirect(@notebook_info.title, to: Routes.explore_path(@socket, :notebook, @notebook_info.slug), class: "text-gray-800 font-semibold cursor-pointer" ) %>

<%= @notebook_info.details.description %>

""" end end