40 lines
995 B
Rust
40 lines
995 B
Rust
use yew::prelude::*;
|
|
use yew::Component;
|
|
use yew::ShouldRender;
|
|
|
|
pub struct PageNotFound;
|
|
|
|
impl Component for PageNotFound {
|
|
type Message = ();
|
|
type Properties = ();
|
|
|
|
fn create(_props: Self::Properties, _link: ComponentLink<Self>) -> Self {
|
|
Self
|
|
}
|
|
|
|
fn view(&self) -> Html {
|
|
html! {
|
|
<section class="hero is-danger is-bold is-large">
|
|
<div class="hero-body">
|
|
<div class="container">
|
|
<h1 class="title">
|
|
{ "Page not found" }
|
|
</h1>
|
|
<h2 class="subtitle">
|
|
{ "Page page does not seem to exist" }
|
|
</h2>
|
|
</div>
|
|
</div>
|
|
</section>
|
|
}
|
|
}
|
|
|
|
fn update(&mut self, _msg: Self::Message) -> ShouldRender {
|
|
false
|
|
}
|
|
|
|
fn change(&mut self, _props: Self::Properties) -> ShouldRender {
|
|
false
|
|
}
|
|
}
|