Improve upgrade message for SSO feature (#5751)
- Create more visually appealing upgrade message - Add upgrade component so it can be used in other places
This commit is contained in:
parent
0c2e93e9e9
commit
36030b4bf7
|
|
@ -3,22 +3,16 @@
|
|||
<:title>
|
||||
<a id="sso-config">Single Sign-On</a>
|
||||
</:title>
|
||||
<:subtitle>
|
||||
Configure and manage Single Sign-On for your team
|
||||
</:subtitle>
|
||||
|
||||
<p class="text-sm">
|
||||
Single Sign-On (SSO) is available on our Enterprise plans.
|
||||
</p>
|
||||
|
||||
<p class="text-sm mt-4">
|
||||
It lets you restrict access so only team members signing in via SSO can access your account.
|
||||
</p>
|
||||
|
||||
<p class="text-sm mt-4">
|
||||
Contact us at
|
||||
<.styled_link href="mailto:hello@plausible.io">hello@plausible.io</.styled_link>
|
||||
to learn more.
|
||||
</p>
|
||||
<.upgrade title="Available on our Enterprise plan">
|
||||
<:icon>
|
||||
<Heroicons.cloud solid class="size-6" />
|
||||
</:icon>
|
||||
Restrict access so only team members signing in via SSO can access your account. <br />Email
|
||||
<.styled_link href="mailto:hello@plausible.io" class="font-medium">
|
||||
hello@plausible.io
|
||||
</.styled_link>
|
||||
to upgrade.
|
||||
</.upgrade>
|
||||
</.tile>
|
||||
</.settings_tiles>
|
||||
|
|
|
|||
|
|
@ -149,6 +149,32 @@ defmodule PlausibleWeb.Components.Generic do
|
|||
"""
|
||||
end
|
||||
|
||||
attr(:title, :any, default: "")
|
||||
attr(:class, :string, default: "")
|
||||
attr(:rest, :global)
|
||||
slot(:icon, required: true)
|
||||
slot(:inner_block)
|
||||
|
||||
def upgrade(assigns) do
|
||||
~H"""
|
||||
<div class={["rounded-md p-5 bg-gray-100 dark:bg-gray-700/50", @class]} {@rest}>
|
||||
<div class="flex flex-col gap-y-4">
|
||||
<div class="flex-shrink-0 bg-white dark:bg-gray-700 max-w-max rounded-md p-2 border border-gray-200 dark:border-gray-600 text-indigo-500 dark:text-indigo-400">
|
||||
{render_slot(@icon)}
|
||||
</div>
|
||||
<div class="flex flex-col gap-y-2">
|
||||
<h3 class="font-medium text-gray-900 dark:text-gray-100">
|
||||
{@title}
|
||||
</h3>
|
||||
<p class="mb-1 text-sm text-gray-600 dark:text-gray-100/60 leading-normal">
|
||||
{render_slot(@inner_block)}
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
"""
|
||||
end
|
||||
|
||||
attr(:title, :any, default: nil)
|
||||
attr(:theme, :atom, default: :yellow)
|
||||
attr(:dismissable_id, :any, default: nil)
|
||||
|
|
|
|||
Loading…
Reference in New Issue