gitea_pages/frontend/src/components/footer.rs

52 lines
1.9 KiB
Rust

use yew::prelude::*;
pub struct Footer;
impl Component for Footer {
type Message = ();
type Properties = ();
fn create(_ctx: &Context<Self>) -> Self {
Self
}
fn view(&self, _ctx: &Context<Self>) -> Html {
html! {
<footer class={classes!("footer")}>
<div class={classes!("columns")}>
<div class={classes!("column", "is-three-quarters")}>
<h3 class={classes!("title", "is-3")}>{ "Gitea Pages" }</h3>
<p>
<a href="https://git.dergrimm.net/dergrimm/gitea_pages"><strong>{ "Gitea Pages" }</strong></a> { " by " }
<a href="https://dergrimm.net">{ "Dominic Grimm" }</a> { ". " }
{ "Source code is licensed under the " } <a href="https://www.gnu.org/licenses/gpl-3.0.en.html">{ "GNU General Public License version 3" }</a> {"."}
</p>
</div>
<div class={classes!("column")}>
<p>
<a href="https://www.rust-lang.org/" target="_blank">
<figure class={classes!("image")}>
<img src="https://forthebadge.com/images/badges/made-with-rust.svg" />
</figure>
</a>
</p>
<p>
<figure class={classes!("image")}>
<img src="https://forthebadge.com/images/badges/no-ragrets.svg" />
</figure>
</p>
</div>
</div>
<hr />
<div>
<p>
{ "©2023 Dominic Grimm" }
</p>
</div>
</footer>
}
}
}