Add themes, update layout, fix pages
Some checks failed
Build Crate / build (push) Failing after 1m53s

This commit is contained in:
2024-08-31 03:12:28 -04:00
parent 659037ec00
commit 3e2163dbf3
18 changed files with 347 additions and 123 deletions

View File

@@ -0,0 +1,27 @@
use crate::{components::layout::Layout, state_enums::ContentState};
use perseus::prelude::*;
use sycamore::prelude::*;
fn index_page<G: Html>(cx: Scope) -> View<G> {
view! { cx,
Layout(content_state = ContentState::TableTennis) {
// Anything we put in here will be rendered inside the `<main>` block of the layout
p { "Hello World!" }
br {}
}
}
}
#[engine_only_fn]
fn head(cx: Scope) -> View<SsrNode> {
view! { cx,
title { "Index Page" }
}
}
pub fn get_template<G: Html>() -> Template<G> {
Template::build("table_tennis")
.view(index_page)
.head(head)
.build()
}

View File

@@ -0,0 +1 @@
pub mod index;