@use crate::{templates::{layouts::home, profiles::view}, nav::NavState, profiles::Profile}; @use hyaenidae_toolkit::{templates::{button_group, card, card_body, card_title, file_input, statics::{button_js, file_input_js}}, Button, Card, FileInput}; @(banner_input: &FileInput, 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({ Add a banner }) @:card_body({

This banner will be displayed on your profile behind your icon.

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

@error

}) } @:card_body({ @:file_input(banner_input) }) @:card_body({ @:button_group(&[ &Button::primary("Next").dark(nav_state.dark()), Button::outline("Back").href("/profiles/create/icon").dark(nav_state.dark()), Button::primary_outline("Skip").href("/profiles/create/require-login").dark(nav_state.dark()), Button::primary_outline("Skip All").href("/profiles/create/done").dark(nav_state.dark()), ]) })
}) @:card(&Card::full_width().dark(nav_state.dark()), { @:card_title({ Preview }) @:view(profile, nav_state.dark()) }) })