Skip to content
1        10        20        30        40        50        60        70        80        90        100       1101use maud::{DOCTYPE, Markup, html};23pub fn page_shell(title: &str, active_tab: &str, content: &Markup) -> Markup {4    html! {5        (DOCTYPE)6        html lang="en" {7            head {8                meta charset="utf-8";9                meta name="viewport" content="width=device-width, initial-scale=1.0";10                title { (title) }11                link rel="stylesheet" href="/assets/daisyui.css";12                link rel="stylesheet" href="/assets/app.css";13                script src="/assets/h.js" {}14                script src="/assets/hx-ws.js" {}15            }16            body {17                header class="cottage-navbar" {18                    a href="/" class="brand-badge" hx-get="/pokedex" hx-target="#main-content" hx-push-url="/" {19                        div class="brand-icon" { "🌿" }20                        div {21                            h1 class="brand-title" { "Pokédex" }22                            p class="brand-subtitle" { "FireRed & LeafGreen Edition" }23                        }24                    }2526                    nav class="nav-tabs-group" {27                        a28                            href="/"29                            class={"cottage-tab " (if active_tab == "pokedex" { "active" } else { "" })}30                            hx-get="/pokedex"31                            hx-target="#main-content"32                            hx-push-url="/" {33                            "📖 Pokédex"34                        }35                        a36                            href="/battler"37                            class={"cottage-tab " (if active_tab == "battler" { "active" } else { "" })}38                            hx-get="/battler"39                            hx-target="#main-content"40                            hx-push-url="/battler" {41                            "⚔️ Battler"42                        }43                        a44                            href="/debug"45                            class={"cottage-tab " (if active_tab == "debug" { "active" } else { "" })}46                            hx-get="/debug"47                            hx-target="#main-content"48                            hx-push-url="/debug" {49                            "🛠️ Debug"50                        }51                    }52                }5354                main id="main-content" class="min-h-screen" {55                    (content)56                }5758                // Modal placeholder container59                div id="detail-modal-container" {}60            }61        }62    }63}