asonix
934ddd76ff
Reorganize files a bit Add a Pagination trait to guide with paging in the future Add extension traits for Profile, Comment, and Submission Async-ify more things, but not all things
41 lines
1.7 KiB
HTML
41 lines
1.7 KiB
HTML
@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;
|
|
@use hyaenidae_toolkit::templates::text_input;
|
|
|
|
@(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()), {
|
|
<form method="POST" action="/profiles/create/bio">
|
|
@:card_title({ Create a Bio })
|
|
@:card_body({
|
|
<p>
|
|
This is where you can talk a bit about yourself. the Display Name is the name
|
|
that will be featured on your profile page, and the Description will appear
|
|
underneath it.
|
|
</p>
|
|
|
|
@:text_input(&profile_state.display_name(nav_state.dark()))
|
|
@:text_input(&profile_state.description(nav_state.dark()))
|
|
})
|
|
@:card_body({
|
|
@:button_group(&[
|
|
Button::primary("Next").dark(nav_state.dark()),
|
|
Button::primary_outline("Skip").href("/profiles/create/icon").dark(nav_state.dark()),
|
|
Button::primary_outline("Skip All").href("/profiles/create/done").dark(nav_state.dark()),
|
|
])
|
|
})
|
|
</form>
|
|
})
|
|
@:card(&Card::full_width().dark(nav_state.dark()), {
|
|
@:card_title({ Preview })
|
|
@:profile(&profile_state.profile().heading().dark(nav_state.dark()))
|
|
})
|
|
})
|