hyaenidae/server/templates/profiles/create/handle.rs.html

26 lines
980 B
HTML
Raw Normal View History

@use crate::{templates::layouts::home, nav::NavState};
2021-01-08 04:44:43 +00:00
@use hyaenidae_toolkit::{templates::{button_group, card, card_body, card_title, text_input, statics::button_js}, Button, Card, TextInput};
2021-01-06 08:21:37 +00:00
@(handle_input: &TextInput, nav_state: &NavState)
2021-01-06 08:21:37 +00:00
@:home("Create Profile", "Create a new profile on Hyaenidae", nav_state, {
2021-01-08 04:44:43 +00:00
<script src="/toolkit/@button_js.name"></script>
}, {
@:card(&Card::full_width().dark(nav_state.dark()), {
2021-01-06 08:21:37 +00:00
<form method="POST" action="/profiles/create/handle">
2021-01-08 04:44:43 +00:00
@:card_title({ Create a Handle })
2021-01-06 08:21:37 +00:00
@:card_body({
<p>
A handle is how people on Hyaenidae will find your account. You can make this the
same as your username, but it isn't required.
</p>
@:text_input(handle_input)
})
@:card_body({
@:button_group(&[&Button::primary("Next").dark(nav_state.dark())])
2021-01-06 08:21:37 +00:00
})
</form>
})
})