feat(leptos): css design system with component classes and animations

This commit is contained in:
asepharyana
2026-07-03 17:36:28 +07:00
parent c4c43ce912
commit 65804acaca
3 changed files with 764 additions and 2 deletions
+5 -2
View File
@@ -3,8 +3,11 @@ use leptos::prelude::*;
#[component]
pub fn App() -> impl IntoView {
view! {
<div style="display: flex; align-items: center; justify-content: center; height: 100vh; font-family: 'Poppins', sans-serif; font-size: 1.5rem; background: #0f172a; color: #e2e8f0;">
"Hello from Leptos"
<div class="app">
<link rel="stylesheet" href="/app.css" />
<div style="display: flex; align-items: center; justify-content: center; height: 100vh; font-family: 'Poppins', sans-serif; font-size: 1.5rem; background: #0f172a; color: #e2e8f0;">
"Hello from Leptos"
</div>
</div>
}
}