@use crate::{templates::{layouts::home, profiles::view}, nav::NavState, profiles::Profile}; @use hyaenidae_toolkit::{templates::{button_group, card, card_body, card_title, statics::button_js}, Button, Card}; @(require_login: bool, error: Option, profile: &Profile, nav_state: &NavState) @:home("Create Profile", "Create a new profile on Hyaenidae", nav_state, { }, { @:card(&Card::full_width().dark(nav_state.dark()), {
@:card_title({ Require Login }) @:card_body({

If you would like to hide your profile from people without accounts, you can check this box to restrict your profile page to logged in users.

}) @if let Some(error) = error { @:card_body({

@error

}) } @:card_body({ }) @:card_body({ @:button_group(&[ &Button::primary("Next").dark(nav_state.dark()), Button::outline("Back").href("/profiles/create/banner").dark(nav_state.dark()), Button::primary_outline("Skip").href("/profiles/create/done").dark(nav_state.dark()), ]) })
}) @:card(&Card::full_width().dark(true), { @:card_title({ Preview }) @:view(profile, nav_state.dark()) }) })