components

package
v0.0.0-...-18fd629 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 26, 2026 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Overview

Package components holds reusable UI components shared across pages.

Package components holds reusable UI components shared across pages.

Package components holds reusable UI components shared across pages.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Footer() gox.Elem

Footer renders the page footer with a horizontal rule and copyright notice.

func NotFound

func NotFound(l doors.Location) gox.Elem

NotFound renders the 404 fallback page. The app uses it as a doors.RouteBind leaf, so it receives the current doors.Location value and re-renders whenever the unmatched URL changes. It:

  • Sets the HTTP response status to 404 (initial render only)
  • Sets the page title to "Not Found"
  • Displays the unmatched path

Note: title and status tags can be rendered anywhere in the tree; Doors moves <title> into <head> and applies Status to the response.

func TopNav

func TopNav() gox.Elem

TopNav renders the top navigation bar with links to each page section. Uses doors.ALink for in-app navigation via the Root path model. The third link demonstrates a raw Location link (triggers the 404 fallback).

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL