@use crate::{templates::{layout, profiles::view}, profiles::Profile}; @use hyaenidae_toolkit::{templates::{button_group, card, card_body, file_input}, Button, Card, FileInput}; @(banner_input: &FileInput, error: Option, profile: &Profile) @:layout("Create Profile", "Create a new profile on Hyaenidae", {}, { @:card(&Card::full_width(), { 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"), Button::outline("Back").href("/profiles/create/icon"), Button::primary_outline("Skip").href("/profiles/create/require-login"), Button::primary_outline("Skip All").href("/profiles/create/done"), ]) })
}) @:card(&Card::full_width().classes(&["account-page"]), { Preview }, { @:view(profile) }) })