pages

package
v0.0.0-...-78c752a Latest Latest
Warning

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

Go to latest
Published: Mar 15, 2026 License: MIT Imports: 7 Imported by: 0

Documentation

Overview

templ: version: v0.3.1001

templ: version: v0.3.1001

templ: version: v0.3.1001

templ: version: v0.3.1001

templ: version: v0.3.1001

templ: version: v0.3.1001

templ: version: v0.3.1001

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ErrorPage

func ErrorPage(props ErrorPageProps) templ.Component

func Home

func Home() templ.Component

func Leaderboard

func Leaderboard(props LeaderboardProps) templ.Component

func LeaderboardContent

func LeaderboardContent(props LeaderboardProps) templ.Component

func List

func List(props ListProps) templ.Component

func ListContent

func ListContent(props ListProps) templ.Component

func Options

func Options(props OptionsProps) templ.Component

func UserLeaderboard

func UserLeaderboard(props UserLeaderboardProps) templ.Component

Types

type ErrorPageProps

type ErrorPageProps struct {
	StatusCode int
	Message    string
}

type LeaderboardProps

type LeaderboardProps struct {
	components.QuoteListProps
}

type ListProps

type ListProps struct {
	components.QuoteListProps
}

type OptionsProps

type OptionsProps struct {
	FirstMethod      selection.FirstQuoteMethod
	SecondMethod     selection.SecondQuoteMethod
	TiebreakerMethod selection.TiebreakerMethod
}

type UserLeaderboardEntry

type UserLeaderboardEntry struct {
	Username string
	Elo      float64
	Quotes   int
}

type UserLeaderboardProps

type UserLeaderboardProps struct {
	Users []UserLeaderboardEntry

	RequiredRanks  int
	RequiredQuotes int
}

Jump to

Keyboard shortcuts

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