monorepo/visions/ui/src/main.rs

26 lines
510 B
Rust
Raw Normal View History

2025-02-18 04:03:12 +00:00
use yew::prelude::*;
#[function_component]
fn Login() -> Html {
html! {
<div class="login-form">
<div class="card">
<h1>{"Welcome to Visions VTT"}</h1>
<input type="text" name="username" placeholder="username" />
<input type="password" name="password" placeholder="password" />
</div>
</div>
}
}
#[function_component]
fn App() -> Html {
html! {
<Login />
}
}
fn main() {
yew::Renderer::<App>::new().render();
}