2021-01-10 01:49:33 +00:00
|
|
|
@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
|
|
|
|
2021-01-10 01:49:33 +00:00
|
|
|
@(profile: &Option<Profile>, nav_state: &NavState)
|
2020-12-16 02:40:41 +00:00
|
|
|
|
2021-01-10 01:49:33 +00:00
|
|
|
@:home("Hyaenidae", "A simple website", nav_state, {}, {
|
2021-01-08 04:44:43 +00:00
|
|
|
@if let Some(profile) = profile {
|
2021-01-10 01:49:33 +00:00
|
|
|
@: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 {
|
2021-01-10 01:49:33 +00:00
|
|
|
@: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
|
|
|
})
|
|
|
|
})
|
|
|
|
}
|
|
|
|
})
|