defmodule LivebookWeb.NotebookCardComponent do
use LivebookWeb, :live_component
@impl true
def render(assigns) do
~L"""
<%= 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 %>

<% 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.description %>
"""
end
end