use leptos::*;
use leptos_meta::*;

/// Renders the home page of your application.
#[component]
pub fn HomePage(cx: Scope) -> impl IntoView {
    // Creates a reactive value to update the button
    let (count, set_count) = create_signal(cx, 0);
    let on_click = move |_| set_count.update(|count| *count += 1);

    view! { cx,
        <Title text="NationTech"/>
        <h1 class="text-9xl">"Welcome to Nationtech.io! Through proper import paths"</h1>
        <button on:click=on_click>"Click Me: " {count}</button>
    }
}
