themes-lcars/master_pages.go
Alex Dunmow e992d8247d feat: LCARS theme plugin — Star Trek computer interface
First-class pongo2 theme with 4 color presets (Federation, Red Alert,
Sickbay, Engineering), 3 custom blocks (header, sidebar, panel),
2 page templates, heading/text overrides, email wrapper, bundled
Antonio font, and full LCARS CSS with elbow brackets, pill buttons,
and rounded bars.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-06-02 23:11:11 +08:00

58 lines
1.5 KiB
Go

package main
import "git.dev.alexdunmow.com/block/core/plugin"
func DefaultMasterPages() []plugin.MasterPageDefinition {
return []plugin.MasterPageDefinition{
{
Key: "lcars:standard-display",
Title: "LCARS Standard Display",
PageTemplates: []string{"default"},
Blocks: []plugin.MasterPageBlock{
{
BlockKey: "lcars:lcars_header",
Title: "LCARS Header",
Content: map[string]any{"title": "LCARS", "subtitle": "Library Computer Access/Retrieval System"},
Slot: "header",
SortOrder: 0,
},
{
BlockKey: "lcars:lcars_sidebar",
Title: "LCARS Sidebar",
Content: map[string]any{},
Slot: "sidebar",
SortOrder: 0,
},
{
BlockKey: "slot",
Title: "Main Content Slot",
Content: map[string]any{"slotName": "main", "placeholder": "Enter display data…"},
Slot: "main",
SortOrder: 0,
},
},
},
{
Key: "lcars:full-display",
Title: "LCARS Full Display",
PageTemplates: []string{"full-display"},
Blocks: []plugin.MasterPageBlock{
{
BlockKey: "lcars:lcars_header",
Title: "LCARS Header",
Content: map[string]any{"title": "LCARS", "subtitle": "Main Viewer"},
Slot: "header",
SortOrder: 0,
},
{
BlockKey: "slot",
Title: "Main Content Slot",
Content: map[string]any{"slotName": "main", "placeholder": "Enter display data…"},
Slot: "main",
SortOrder: 0,
},
},
},
}
}