@use crate::templates::layouts::home; @use crate::nav::NavState; @use crate::profiles::EditProfileState; @use crate::templates::button_js; @use hyaenidae_toolkit::{templates::button_group, Button}; @use hyaenidae_toolkit::{templates::{card, card_body, card_title}, Card}; @use hyaenidae_toolkit::templates::profile; @(profile_state: &EditProfileState, nav_state: &NavState) @:home("Create Profile", "Create a new profile on Hyaenidae", nav_state, { @:button_js() }, { @: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) = &profile_state.login_required_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 }) @:profile(&profile_state.profile().heading().dark(nav_state.dark())) }) })