themes-lcars/blocks.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

54 lines
1.4 KiB
Go

package main
import (
"git.dev.alexdunmow.com/block/core/blocks"
)
// --- LCARS Header Block ---
var LCARSHeaderMeta = blocks.BlockMeta{
Key: "lcars_header",
Title: "LCARS Header",
Description: "Top bar with elbow bracket, status indicators, and stardate",
Category: blocks.CategoryNavigation,
Source: "lcars",
}
var headerDefaults = map[string]any{
"title": "LCARS",
"subtitle": "Library Computer Access/Retrieval System",
"stardate": "",
"status": "online",
"menu_name": "main",
}
// --- LCARS Sidebar Block ---
var LCARSSidebarMeta = blocks.BlockMeta{
Key: "lcars_sidebar",
Title: "LCARS Sidebar",
Description: "Left panel with rounded-rectangle navigation buttons",
Category: blocks.CategoryNavigation,
Source: "lcars",
}
var sidebarDefaults = map[string]any{
"items": []any{
map[string]any{"label": "Personnel", "url": "#", "color": "primary"},
map[string]any{"label": "Operations", "url": "#", "color": "secondary"},
map[string]any{"label": "Sciences", "url": "#", "color": "accent"},
map[string]any{"label": "Engineering", "url": "#", "color": "primary"},
map[string]any{"label": "Medical", "url": "#", "color": "secondary"},
},
}
// --- LCARS Panel Block ---
var LCARSPanelMeta = blocks.BlockMeta{
Key: "lcars_panel",
Title: "LCARS Panel",
Description: "Framed content area with LCARS border treatment",
Category: blocks.CategoryLayout,
Source: "lcars",
}