diff --git a/src/content/about.rs b/src/content/about.rs new file mode 100644 index 0000000..14be94e --- /dev/null +++ b/src/content/about.rs @@ -0,0 +1,18 @@ +use yew::prelude::*; + +#[function_component] +pub fn About() -> Html { + html! { +
+

{"About Us"}

+
+

{ + "Nerdcult is a platform for Open Source development. \ + We focus on forging a friendly community of developers. \ + Nerdcult is completely free to use, we don't collect personal data and are non-profit. \ + All of our backend and frontend code is open source. " + }

+
+
+ } +} diff --git a/src/content/mod.rs b/src/content/mod.rs index d914dc4..caa9ce4 100644 --- a/src/content/mod.rs +++ b/src/content/mod.rs @@ -1,2 +1,3 @@ +pub mod about; pub mod home; pub mod error; \ No newline at end of file diff --git a/src/main.rs b/src/main.rs index 70e8aea..f6b13de 100644 --- a/src/main.rs +++ b/src/main.rs @@ -4,7 +4,7 @@ mod topbar; use anyhow::Result; use backend::Session; -use content::{error, home::Home}; +use content::{about::About, error, home::Home}; use std::ops::Deref; use topbar::TopBar; use yew::prelude::*; @@ -30,7 +30,7 @@ fn switch(routes: Route) -> Html { Route::Home => html! { }, Route::Services => html! {

{ "Services" }

}, Route::Community => html! {

{ "Community" }

}, - Route::About => html! {

{ "About" }

}, + Route::About => html! {}, Route::NotFound => html! { }, } } diff --git a/style/home.css b/style/home.css index 6340fb9..5c8bc95 100644 --- a/style/home.css +++ b/style/home.css @@ -37,22 +37,18 @@ main { position: relative; display: inline-block; padding: 16px; + text-align: center; } .content-box-heading { - font-family: Roboto; - font-weight: bold; - font-size: 24px; + font: bold 24px Roboto; color: #FFFFFF; - text-align: center; width: 100%; } .content-box-data { - font-family: Roboto; - font-size: 18px; + font: normal 18px Roboto; color: #FFFFFF; - text-align: center; width: 100%; }