Compare commits

..

No commits in common. "af1a0454643a49ccb7d97a8d270ef32549dd6ada" and "0d382b6869337f2fb378db23815d02cf8bf625ab" have entirely different histories.

5 changed files with 2 additions and 40 deletions

View File

@ -1,16 +0,0 @@
use yew::prelude::*;
#[function_component]
pub fn Impress() -> Html {
html! {
<div class="content">
<p class="content-box-heading">{"Impress / Impressum"}</p>
<div class="content-box-data">
<p>{
"This website is hosted in germany. By the german law websites that are for private use don't require an impress. \
This is neither a commercial site nor are our non-profit services available to the public at the moment."
}</p>
</div>
</div>
}
}

View File

@ -1,5 +1,3 @@
pub mod about;
pub mod error;
pub mod home;
pub mod impress;
pub mod profile;
pub mod error;

View File

@ -1,13 +0,0 @@
use yew::prelude::*;
#[derive(PartialEq, Properties)]
pub struct Props {
pub username: AttrValue,
}
#[function_component]
pub fn Profile(props: &Props) -> Html {
html! {
<h1>{"User profile: "}{props.username.clone()}</h1>
}
}

View File

@ -3,7 +3,7 @@ mod content;
mod topbar;
use backend::Session;
use content::{about::About, error, home::Home, impress::Impress, profile::Profile};
use content::{about::About, error, home::Home};
use gloo::dialogs::alert;
use gloo_storage::{SessionStorage, Storage};
use std::ops::Deref;
@ -21,10 +21,6 @@ enum Route {
Community,
#[at("/about")]
About,
#[at("/impress")]
Impress,
#[at("/profile/:username")]
Profile { username: String },
#[not_found]
#[at("/404")]
NotFound,
@ -36,8 +32,6 @@ fn switch(routes: Route) -> Html {
Route::Services => html! {<h1>{ "Services" }</h1>},
Route::Community => html! {<h1>{ "Community" }</h1>},
Route::About => html! {<About/>},
Route::Impress => html! { <Impress/>},
Route::Profile { username } => html! { <Profile username={username}/> },
Route::NotFound => html! { <error::NotFound/> },
}
}

View File

@ -77,7 +77,6 @@ pub fn TopBar() -> Html {
<li><a href="/services"><Tab text="Services" /></a></li>
<li><a href="/community"><Tab text="Community" /></a></li>
<li><a href="/about"><Tab text="About" /></a></li>
<li><a href="/impress"><Tab text="Impress" /></a></li>
</ul>
<ul id="tabs-account" class="tabs">