pages

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Feb 12, 2026 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AboutRuneCount

func AboutRuneCount() int

func AboutSettleTicks

func AboutSettleTicks() int
func MenuItems() []string

func NewModel

func NewModel() tea.Model

func RenderAbout

func RenderAbout(styles view.ThemeStyles, revealCount int, scrambleTick int, themeLabel string, boxWidth int) string

func RenderContact

func RenderContact(styles view.ThemeStyles, themeLabel string) string

func RenderEducation

func RenderEducation(styles view.ThemeStyles, eduCursor int, themeLabel string) string

func RenderExperience

func RenderExperience(styles view.ThemeStyles, expCursor int, themeLabel string) string

func RenderFeed

func RenderFeed(styles view.ThemeStyles, items []FeedItem, cursor int, offset int, pageSize int, loading bool, errMsg string, themeLabel string) string

func RenderMenu

func RenderMenu(styles view.ThemeStyles, menuCursor int, logoSweepIndex int, themeLabel string, visitorCount int, boxWidth int) string

func RenderPrivacy

func RenderPrivacy(
	styles view.ThemeStyles,
	cursor int,
	trackingEnabled bool,
	trackingAvailable bool,
	themeLabel string,
	statsEnabled bool,
	statsTotal int,
	statsTopCountries []counter.CountryCount,
	statsError string,
) string

func RenderProjects

func RenderProjects(styles view.ThemeStyles, projectCursor int, themeLabel string) string

func RenderSplash

func RenderSplash(styles view.ThemeStyles, revealCount int, blinkStep int, boxWidth int) string

func SplashLogoRuneCount added in v0.1.4

func SplashLogoRuneCount() int

func SplashRuneCount

func SplashRuneCount() int

func SplashTextRuneCount added in v0.1.4

func SplashTextRuneCount() int

Types

type Education

type Education struct {
	Role    string
	Company string
	Period  string
	Desc    string
	URL     string
}

func Educations

func Educations() []Education

type Experience

type Experience struct {
	Role    string
	Company string
	Period  string
	Desc    string
}

func Experiences

func Experiences() []Experience

type FeedItem

type FeedItem struct {
	Title string
	Link  string
	Date  string
}

type Project

type Project struct {
	Name string
	Desc string
	Tech string
	Link string
}

func Projects

func Projects() []Project

Jump to

Keyboard shortcuts

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