{# @description A wide card in two panes: the brand in the theme's primary colour, and beside it the one-press ways in. The form waits behind a disclosure. #} {# @prop title:text | default:"Sign in" | description:"The heading, in the brand pane. Use the title slot instead when it contains markup." #} {# @prop lead:text | description:"The sentence under the heading" #} {# @prop level:select['1', '2', '3', '4', '5', '6'] | default:"1" | description:"Heading level. 1 is right when this is the whole page." #} {# @prop disclosure:text | description:"The line that opens the form. Left empty, it is a translated Use your email and password." #} {# @prop open:boolean | default:False | description:"Start with the form showing. Set it when the form comes back with errors." #} {# @prop surface:text | default:"bg-primary text-primary-content" | description:"Surface and text colour of the brand pane" #} {# @prop class:text | description:"Extra classes on the outer section. A plain surface colour goes here: bg-base-200." #} {# @slot:background — A background block, rendered into a layer behind the card #} {# @slot:logo — The application's logo, at the top of the brand pane. It needs to read on the pane's colour. #} {# @slot:aside — The foot of the brand pane. One line of reassurance. #} {# @slot:providers — The buttons this layout is for: third-party providers, a passkey, an emailed code #} {# @slot:footer — Under the disclosure. The link to the sign-up page, usually. #} {# @slot The form — The application's own sign-in form. Folded away until asked for. #} {% load i18n %}
{% if background %} {% endif %}
{% if logo %}
{{ logo }}
{% endif %}
{# djlint:off #} {% if title %}{{ title }}{% endif %} {# djlint:on #} {% if lead %}

{{ lead }}

{% endif %}
{% if aside %}{% endif %}
{% if providers %}
{{ providers }}
{% endif %} {% if slot.strip %} {% comment %} A plain disclosure, styled with utilities. daisyUI's own disclosure class shares its name with a Tailwind utility, which this package's stylesheet would emit over it. {% endcomment %}
{% if disclosure %}{{ disclosure }}{% else %}{% translate "Use your email and password" %}{% endif %}
{{ slot }}
{% endif %} {% if footer %}
{{ footer }}
{% endif %}