feat: update to newest leptos
Signed-off-by: kjuulh <contact@kjuulh.io>
This commit is contained in:
@@ -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>
|
||||
}
|
||||
|
Reference in New Issue
Block a user