1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36
use super::*; /// A 404 not found page component. /// /// # Arguments /// /// - `VirtualNode<PageNotFoundProps>` - The page component node carrying the /// /// # Returns /// /// - `VirtualNode` - The `VirtualNode` value. #[component] pub(crate) fn page_not_found(node: VirtualNode<PageNotFoundProps>) -> VirtualNode { let PageNotFoundProps: PageNotFoundProps = node.try_get_props().unwrap_or_default(); html! { div { class: c_page_container() euv_header { icon: "🔍" title: NOT_FOUND_HEADER_TITLE subtitle: NOT_FOUND_HEADER_SUBTITLE } euv_card { title: NOT_FOUND_NAV_CARD_TITLE div { class: c_button_controls() euv_button { variant: EuvButtonVariant::Primary label: NOT_FOUND_BACK_HOME_LABEL onclick: not_found_on_go_home() } } } } } }