Add initial preferences layout
This commit is contained in:
@@ -162,6 +162,26 @@ pub fn Layout<'a, G: Html>(
|
||||
}
|
||||
}
|
||||
},
|
||||
ContentState::User => view!{ cx,
|
||||
// Body header
|
||||
div (class = "container mx-auto px-6 py-3") {
|
||||
nav (class = "sm:flex sm:justify-center sm:items-center mt-4") {
|
||||
div (class = "flex flex-col sm:flex-row"){
|
||||
a(href = "inventory",
|
||||
class = "mt-3 text-gray-600 hover:underline sm:mx-3 sm:mt-0"
|
||||
) { "User Preferences" }
|
||||
}
|
||||
}
|
||||
}
|
||||
// Content body
|
||||
div(class = "container mx-auto px-6") {
|
||||
div(class = "md:flex mt-8 md:-mx-4") {
|
||||
div(class = "rounded-md overflow-hidden bg-cover bg-center") {
|
||||
(children)
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
_ => view!{ cx, },
|
||||
})
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user