123456789101112131415161718192021222324252627282930313233343536373839404142434445 |
- //! DioxusLabs Webiste
- //! ------------------
- //!
- //! This is the example powering the DioxusLabs website :)
- //! It's always good to dogfood your code, right?
- use dioxus::prelude::*;
- fn main() {}
- mod state {
- pub struct AppState {
- cur_page: Route,
- }
- pub enum Route {
- Homepage,
- Docs,
- }
- }
- static APP: FC<()> = |ctx| {
- ctx.render(html! {
- <div>
- <div>
- })
- };
- /// Draw the navbar on top of the screen
- static Navbar: FC<state::Route> = |ctx| {
- ctx.render(html! {
- <div>
- <div>
- })
- };
- static Homepage: FC<()> = |ctx| {
- ctx.render(html! {
- <div>
- <div>
- })
- };
|