Timeline on a brown branch with leaf-colored decade tags; solid featured entries; admin home in two alternating colors
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
parent
a397f3eac0
commit
e5c14dffa3
5 changed files with 82 additions and 43 deletions
|
|
@ -11,9 +11,10 @@
|
|||
Forms, Tools, and Panel, which only exists for superadmins.
|
||||
|
||||
It asks for the wide admin column (adminWidth.tsx), like the
|
||||
editor, so the cards run three across on a wide screen. Each
|
||||
block takes a color from the palette (GROUPS), tinting its
|
||||
cards and drawing its bar, so the groups read apart at a glance.
|
||||
editor, so the cards run three across on a wide screen. The
|
||||
blocks alternate between two palette colors (BLOCK_COLORS),
|
||||
tinting their cards and drawing their bars, so neighboring groups
|
||||
read apart at a glance.
|
||||
|
||||
The right-hand panel is deliberately inert. Nothing here
|
||||
fetches, so the landing page can't be slow or half-broken on
|
||||
|
|
@ -46,7 +47,7 @@ function NavCard({ item, color }) {
|
|||
|
||||
return (
|
||||
<div
|
||||
className="group relative flex flex-col border-l-4 p-5 transition-colors hover:brightness-[0.97]"
|
||||
className="group relative flex flex-col border-l-4 p-5 shadow-sm transition-shadow hover:shadow-md"
|
||||
style={{ borderColor: color, background: tintOf(color) }}
|
||||
>
|
||||
<div className="flex items-baseline gap-3">
|
||||
|
|
@ -112,13 +113,12 @@ function PanelSection({ title, children }) {
|
|||
|
||||
/* The header's groups, in its order, each with its palette color.
|
||||
Panel is drawn separately below, since only superadmins get it. */
|
||||
const GROUPS = [
|
||||
{ nav: DATA_NAV, color: PALETTE.teal[0] },
|
||||
{ nav: PAGES_NAV, color: PALETTE.green[0] },
|
||||
{ nav: FORMS_NAV, color: PALETTE.mint[2] },
|
||||
{ nav: TOOLS_NAV, color: PALETTE.ink[2] },
|
||||
];
|
||||
const PANEL_COLOR = PALETTE.ink[1];
|
||||
const BLOCK_COLORS = [PALETTE.teal[0], PALETTE.green[0]];
|
||||
const GROUPS = [DATA_NAV, PAGES_NAV, FORMS_NAV, TOOLS_NAV].map((nav, index) => ({
|
||||
nav,
|
||||
color: BLOCK_COLORS[index % BLOCK_COLORS.length],
|
||||
}));
|
||||
const PANEL_COLOR = BLOCK_COLORS[GROUPS.length % BLOCK_COLORS.length];
|
||||
|
||||
const QUICK_ADD = [
|
||||
{ to: "/admin/events/new", label: "New event" },
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue