"ayo"
-- "today" -
diff --git a/doordesk-rs/Cargo.toml b/doordesk-rs/Cargo.toml index 7e9640b..a0c420d 100644 --- a/doordesk-rs/Cargo.toml +++ b/doordesk-rs/Cargo.toml @@ -20,7 +20,7 @@ simple_logger = "4" tokio = { version = "1.25.0", optional = true } tower = { version = "0.4.13", optional = true } tower-http = { version = "0.4", features = ["fs"], optional = true } -wasm-bindgen = "0.2.87" +wasm-bindgen = "0.2.89" thiserror = "1.0.38" tracing = { version = "0.1.37", optional = true } http = "0.2.8" diff --git a/doordesk-rs/src/app.rs b/doordesk-rs/src/app.rs index 123150a..5f71e1b 100644 --- a/doordesk-rs/src/app.rs +++ b/doordesk-rs/src/app.rs @@ -1,7 +1,9 @@ use crate::error_template::{AppError, ErrorTemplate}; + use leptos::*; use leptos_meta::*; use leptos_router::*; +use crate::routes::{blog::*, home::*,projects::*}; #[component] pub fn App(cx: Scope) -> impl IntoView { @@ -10,13 +12,12 @@ pub fn App(cx: Scope) -> impl IntoView { view! { cx, - // injects a stylesheet into the document
// id=leptos means cargo-leptos will hot-reload this stylesheet+ ":)" +
+I DID IT?
+blog
+ } +} diff --git a/doordesk-rs/src/routes/home.rs b/doordesk-rs/src/routes/home.rs index 385c108..803dabd 100644 --- a/doordesk-rs/src/routes/home.rs +++ b/doordesk-rs/src/routes/home.rs @@ -1,8 +1,10 @@ -use leptos::{component, view, IntoView, Scope}; +use leptos::*; +use crate::components::article::*; #[component] pub fn Home(cx: Scope) -> impl IntoView { view! { cx, +home
} } diff --git a/doordesk-rs/src/routes/projects.rs b/doordesk-rs/src/routes/projects.rs new file mode 100644 index 0000000..74399d2 --- /dev/null +++ b/doordesk-rs/src/routes/projects.rs @@ -0,0 +1,10 @@ +use leptos::*; +use crate::components::article::*; + +#[component] +pub fn Projects(cx: Scope) -> impl IntoView { + view! { cx, + +projects
+ } +} diff --git a/doordesk-rs/tailwind.config.js b/doordesk-rs/tailwind.config.js index d8b8f37..157dc2c 100644 --- a/doordesk-rs/tailwind.config.js +++ b/doordesk-rs/tailwind.config.js @@ -1,12 +1,9 @@ /** @type {import('tailwindcss').Config} */ - module.exports = { - content: { - relative: true, - files: ["*.html", "./src/**/*.rs"], - }, - theme: { +module.exports = { + content: ["*.html", "./src/**/*.rs"], + theme: { extend: {}, - }, - plugins: [], - } - \ No newline at end of file + }, + plugins: [], +} +