views

package
v0.7.1 Latest Latest
Warning

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

Go to latest
Published: Sep 4, 2024 License: GPL-3.0 Imports: 7 Imported by: 0

Documentation

Overview

templ: version: v0.2.771

templ: version: v0.2.771

templ: version: v0.2.771

templ: version: v0.2.771

templ: version: v0.2.771

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Clock

func Clock(data ClockData) templ.Component

func Error

func Error(data ErrorData) templ.Component

func Home

func Home(data PageData) templ.Component

func Image

func Image(data PageData) templ.Component

func ImageFitContain

func ImageFitContain(ImageData, imageFit string) templ.Component

func ImageFitCover

func ImageFitCover(ImageData, imageFit string) templ.Component

func ImageFitNone

func ImageFitNone(ImageData, imageFit string) templ.Component

Types

type ClockData

type ClockData struct {
	ClockTime string
	ClockDate string
}

type ErrorData

type ErrorData struct {
	Title   string
	Message string
}

type PageData

type PageData struct {

	// KioskVersion the current build version of Kiosk
	KioskVersion string
	// ImageID id of image to be displayed
	ImageID string
	// ImageData image as base64 data
	ImageData string
	// ImageData blurred image as base64 data
	ImageBlurData string
	// Date image date
	ImageDate string
	// URL queries
	Queries url.Values
	// instance config
	config.Config
}

Jump to

Keyboard shortcuts

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