feat: update to newest leptos

Signed-off-by: kjuulh <contact@kjuulh.io>
This commit is contained in:
2023-10-20 23:06:21 +02:00
parent 8ee2ca5c14
commit a7986e304c
15 changed files with 733 additions and 831 deletions

View File

@@ -1,8 +1,8 @@
use leptos::*;
#[component]
pub fn Navbar(cx: Scope) -> impl IntoView {
view! { cx,
pub fn Navbar() -> impl IntoView {
view! {
<div class="flex flex-row justify-between items-center bg-gray-800 p-4">
<div class="flex flex-row items-center">
<div class="text-2xl text-white font-bold">"Como - Todo"</div>
@@ -19,8 +19,8 @@ pub fn Navbar(cx: Scope) -> impl IntoView {
}
#[component]
pub fn HomePage(cx: Scope) -> impl IntoView {
view! { cx,
pub fn HomePage() -> impl IntoView {
view! {
<Navbar/>
<h1 class="text-xl text-red-50">"Welcome to Leptos!"</h1>
}