hyaenidae/server/templates/index.rs.html

23 lines
672 B
HTML
Raw Normal View History

@use crate::{templates::layouts::home, nav::NavState, profiles::Profile};
2021-01-08 04:44:43 +00:00
@use hyaenidae_toolkit::{templates::{card, card_body, card_title}, Card};
2020-12-16 02:40:41 +00:00
@(profile: &Option<Profile>, nav_state: &NavState)
2020-12-16 02:40:41 +00:00
@:home("Hyaenidae", "A simple website", nav_state, {}, {
2021-01-08 04:44:43 +00:00
@if let Some(profile) = profile {
@:card(&Card::full_width().dark(true), {
2021-01-08 04:44:43 +00:00
@:card_title({ Welcome, @profile.name() })
2020-12-16 02:40:41 +00:00
@:card_body({
2021-01-08 04:44:43 +00:00
<span>e</span>
2020-12-16 02:40:41 +00:00
})
})
} else {
@:card(&Card::full_width().dark(true), {
2021-01-08 04:44:43 +00:00
@:card_title({ Home })
2020-12-16 02:40:41 +00:00
@:card_body({
2021-01-08 04:44:43 +00:00
<span>e</span>
2020-12-16 02:40:41 +00:00
})
})
}
})