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>
58 lines
1.5 KiB
Go
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,
|
|
},
|
|
},
|
|
},
|
|
}
|
|
}
|