components

package
v0.0.0-...-278f817 Latest Latest
Warning

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

Go to latest
Published: Aug 25, 2024 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Button

func Button(canvas *svg.SVG, index int, title string, centerX int, id string) (middleTopX, middleTopY, middleBottomX, middleBottomY int)

func Drawer

func Drawer(step *Step) templ.Component

func RoadmapSober

func RoadmapSober() templ.Component

RoadmapSober returns a templ.Component that renders a sobriety roadmap SVG

Types

type Step

type Step struct {
	Text       string `json:"text"`
	Content    string `json:"content"`
	PanelTitle string `json:"panel_title"`
}

Jump to

Keyboard shortcuts

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