feat: add Header component to CompareWare

This commit is contained in:
Ryan Mwangi 2024-12-03 23:32:02 +03:00
parent 458aa5f732
commit c7158a55e0
2 changed files with 2298 additions and 0 deletions
compareware
Cargo.lock
src/components

2282
compareware/Cargo.lock generated Normal file

File diff suppressed because it is too large Load diff

View file

@ -0,0 +1,16 @@
use dioxus::prelude::*;
pub fn Header(cx: Scope) -> Element {
cx.render(rsx! {
header {
nav {
ul {
li { a { href: "/", "Home" } }
li { a { href: "/items", "Items" } }
li { a { href: "/reviews", "Reviews" } }
li { a { href: "/profile", "Profile" } }
}
}
}
})
}