More text

This commit is contained in:
José Valim 2023-03-06 18:25:10 +01:00
parent cd3cc7e61a
commit a6b9b1b330
2 changed files with 15 additions and 3 deletions

View file

@ -593,7 +593,7 @@ defmodule LivebookWeb.CoreComponents do
"""
slot :inner_block, required: true
slot :actions, default: nil
slot :actions
def no_entries(assigns) do
~H"""
@ -605,7 +605,7 @@ defmodule LivebookWeb.CoreComponents do
<div class="text-gray-600">
<%= render_slot(@inner_block) %>
</div>
<%= @actions && render_slot(@actions) %>
<%= render_slot(@actions) %>
</div>
</div>
"""

View file

@ -94,7 +94,19 @@ defmodule LivebookWeb.HomeLive do
</div>
<%= if @starred_notebooks == [] do %>
<.no_entries>
Your starred notebooks will appear here. Check out the notebooks below to get started.
Your starred notebooks will appear here. <br />
First time around? Check out the notebooks below to get started.
<:actions>
<a
href="/learn"
class="flex items-center text-blue-600 pl-5"
data-phx-link="redirect"
data-phx-link-state="push"
>
<span class="font-semibold">Learn more</span>
<i class="ri-arrow-right-line align-middle ml-1" aria-hidden="true"></i>
</a>
</:actions>
</.no_entries>
<div class="mt-4 grid grid-cols-1 md:grid-cols-3 gap-4">
<% # Note: it's fine to use stateless components in this comprehension,