Source code for duck.etc.blueprints.welcome.ui.components.nav_footer

"""
NavBar and Footer components — top navigation and bottom footer
for the welcome page, both linking to the official Duck Framework
properties. The navbar also surfaces a link to the project's
dashboard when one is registered.
"""

from duck.html.components import InnerComponent
from duck.html.components.container import Container


[docs] def resolve_dashboard_url() -> str | None: """ Attempts to resolve the project's dashboard URL. Returns: The resolved dashboard URL, or None if no dashboard route is registered in the current project. """ from duck.shortcuts import resolve return resolve("dashboard.index", fallback_url="") or None