feat: add Header component to CompareWare
This commit is contained in:
parent
458aa5f732
commit
c7158a55e0
2 changed files with 2298 additions and 0 deletions
compareware
2282
compareware/Cargo.lock
generated
Normal file
2282
compareware/Cargo.lock
generated
Normal file
File diff suppressed because it is too large
Load diff
16
compareware/src/components/Header.rs
Normal file
16
compareware/src/components/Header.rs
Normal 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" } }
|
||||
}
|
||||
}
|
||||
}
|
||||
})
|
||||
}
|
Loading…
Add table
Reference in a new issue