defmodule LivebookWeb.ExploreLive do
use LivebookWeb, :live_view
import LivebookWeb.SessionHelpers
alias LivebookWeb.{LayoutHelpers, ExploreHelpers, PageHelpers}
alias Livebook.Notebook.Explore
on_mount LivebookWeb.SidebarHook
@impl true
def mount(_params, _session, socket) do
[lead_notebook_info | notebook_infos] = Explore.visible_notebook_infos()
{:ok,
assign(socket,
lead_notebook_info: lead_notebook_info,
notebook_infos: notebook_infos,
page_title: "Livebook - Explore"
)}
end
@impl true
def render(assigns) do
~H"""
Check out a number of examples showcasing various parts of the Elixir ecosystem.
<%= @lead_notebook_info.details.description %>
Click on any notebook you like and start playing around with it!
<%= @lead_notebook_info.title %>
<%= @group_info.description %>