hyaenidae/server/templates/profiles/discover.rs.html

28 lines
860 B
HTML
Raw Normal View History

@use crate::nav::NavState;
@use crate::profile_list::ProfileListState;
@use crate::templates::layouts::home;
@use hyaenidae_toolkit::templates::button_group;
@use hyaenidae_toolkit::{templates::{card, card_body}, Card};
@use hyaenidae_toolkit::templates::profile;
@(state: &ProfileListState, nav_state: &NavState)
@:home("Discover Users", "Find users on Hyaenidae", nav_state, {}, {
@for pview in state.profiles() {
@:card(&Card::full_width().dark(nav_state.dark()), {
@:profile(&pview.heading().dark(nav_state.dark()))
@:card_body({
@:button_group(&state.profile_buttons(pview))
})
})
}
@if state.has_nav() {
@:card(&Card::full_width().dark(nav_state.dark()), {
@:card_body({
@:button_group(&state.nav())
})
})
}
})