Add example pages and remove dead code
All checks were successful
Build Crate / build (push) Successful in 4m41s

This commit is contained in:
2023-09-19 03:27:31 -04:00
parent aaaaf256f4
commit 1b3a6db223
10 changed files with 207 additions and 173 deletions

View File

@@ -12,18 +12,20 @@ pub fn main<G: Html>() -> PerseusApp<G> {
PerseusApp::new()
.template(crate::templates::index::get_template())
.template(crate::templates::long::get_template())
.template(crate::templates::add_game_form::get_template())
.template(crate::templates::one_v_one_board::get_template())
.template(crate::templates::overall_board::get_template())
.error_views(crate::error_views::get_error_views())
.index_view(|cx| {
view! { cx,
html {
html (class = "flex w-full h-full"){
head {
meta(charset = "UTF-8")
meta(name = "viewport", content = "width=device-width, initial-scale=1.0")
// Perseus automatically resolves `/.perseus/static/` URLs to the contents of the `static/` directory at the project root
link(rel = "stylesheet", href = ".perseus/static/style.css")
}
body {
body (class = "w-full"){
// Quirk: this creates a wrapper `<div>` around the root `<div>` by necessity
PerseusRoot()
}