diff --git a/public/r/header-minimal.json b/public/r/header-minimal.json index fb9e360..34e57b4 100644 --- a/public/r/header-minimal.json +++ b/public/r/header-minimal.json @@ -10,7 +10,7 @@ "files": [ { "path": "src/components/blocks/HeaderMinimal.astro", - "content": "---\n// Astro Blocks — header-minimal — MIT — https://github.com/lambda-curry/astro-blocks\nimport type { HTMLAttributes } from \"astro/types\";\nimport Button from \"../ui/Button.astro\";\n\ninterface Link {\n label: string;\n href: string;\n /** Where it opens, such as \"_blank\" for another tab, which also gets rel=\"noopener noreferrer\". */\n target?: string;\n}\ninterface Props extends HTMLAttributes<\"header\"> {\n /** Site name. Used as the home link text, or as the logo's alt text. With a brand slot it names the home link for screen readers. */\n brand: string;\n homeHref?: string;\n logo?: { src: string; alt?: string; width?: number; height?: number };\n /** Two to five links. They wrap onto their own row on narrow screens instead of hiding in a menu. */\n links?: Link[];\n action?: Link;\n /** Draw a hairline under the header. */\n divider?: boolean;\n /** Names the header's navigation for screen readers, such as \"Primary\". */\n navLabel?: string;\n}\n\nconst { brand, homeHref = \"/\", logo, links = [], action, divider = true, navLabel = \"Primary\", class: className, ...attrs } = Astro.props;\n// \"_blank\" opens another tab without handing it this page: rel=\"noopener noreferrer\".\nconst opens = (target?: string) => (target ? { target, rel: target === \"_blank\" ? \"noopener noreferrer\" : undefined } : {});\nconst trim = (path: string) => path.replace(/\\/$/, \"\") || \"/\";\nconst here = trim(Astro.url.pathname);\n// A composed mark (the brand slot) is announced as the brand name, whatever it contains.\nconst composed = Astro.slots.has(\"brand\");\nconst isCurrent = (href: string) => (href.startsWith(\"/\") && !href.startsWith(\"//\") && trim(href) === here ? \"page\" : undefined);\n---\n\n
\n
\n \n {logo ? {logo.alt : brand}\n \n {\n links.length > 0 && (\n \n )\n }\n {action && }\n
\n
\n\n\n", + "content": "---\n// Astro Blocks — header-minimal — MIT — https://github.com/lambda-curry/astro-blocks\nimport type { HTMLAttributes } from \"astro/types\";\nimport Button from \"../ui/Button.astro\";\n\ninterface Link {\n label: string;\n href: string;\n /** Where it opens, such as \"_blank\" for another tab, which also gets rel=\"noopener noreferrer\". */\n target?: string;\n}\ninterface Props extends HTMLAttributes<\"header\"> {\n /** Site name. Used as the home link text, or as the logo's alt text. With a brand slot it names the home link for screen readers. */\n brand: string;\n homeHref?: string;\n logo?: { src: string; alt?: string; width?: number; height?: number };\n /** Two to five links. They wrap onto their own row on narrow screens instead of hiding in a menu. */\n links?: Link[];\n action?: Link;\n /** Draw a hairline under the header. */\n divider?: boolean;\n /** Surface the header sits on. \"inverse\" puts it on the dark inverse surface (over or beside a tone=\"inverse\" band) using the theme's inverse tokens; the default keeps the page background. */\n tone?: \"base\" | \"inverse\";\n /** Names the header's navigation for screen readers, such as \"Primary\". */\n navLabel?: string;\n}\n\nconst { brand, homeHref = \"/\", logo, links = [], action, divider = true, navLabel = \"Primary\", tone = \"base\", class: className, ...attrs } = Astro.props;\n// \"_blank\" opens another tab without handing it this page: rel=\"noopener noreferrer\".\nconst opens = (target?: string) => (target ? { target, rel: target === \"_blank\" ? \"noopener noreferrer\" : undefined } : {});\nconst trim = (path: string) => path.replace(/\\/$/, \"\") || \"/\";\nconst here = trim(Astro.url.pathname);\n// A composed mark (the brand slot) is announced as the brand name, whatever it contains.\nconst composed = Astro.slots.has(\"brand\");\nconst isCurrent = (href: string) => (href.startsWith(\"/\") && !href.startsWith(\"//\") && trim(href) === here ? \"page\" : undefined);\n---\n\n
\n
\n \n {logo ? {logo.alt : brand}\n \n {\n links.length > 0 && (\n \n )\n }\n {action && }\n
\n
\n\n\n", "type": "registry:file", "target": "~/src/components/blocks/HeaderMinimal.astro" } diff --git a/public/r/schedule.json b/public/r/schedule.json index 6fa3b73..be36739 100644 --- a/public/r/schedule.json +++ b/public/r/schedule.json @@ -7,7 +7,7 @@ "files": [ { "path": "src/components/blocks/Schedule.astro", - "content": "---\n// Astro Blocks — schedule — MIT — https://github.com/lambda-curry/astro-blocks\nimport type { HTMLAttributes } from \"astro/types\";\n\ninterface Session {\n /** Start time as shown, such as \"09:30\". */\n time: string;\n /** End time as shown, such as \"10:15\". */\n end?: string;\n /** Machine-readable start, such as \"2026-06-11T09:30+01:00\". Derived from the day's date when the time is HH:MM. */\n datetime?: string;\n title: string;\n href?: string;\n place?: string;\n /** Speakers, hosts or performers, as one line. */\n people?: string;\n text?: string;\n /** A short label, such as \"Workshop\" or \"Booking needed\". */\n tag?: string;\n /** One of the schedule's tracks, matched after trimming spaces. Leave it out for a session every track shares, such as a keynote. */\n track?: string;\n /** A break is a quiet row: doors, coffee, lunch, changeover. */\n kind?: \"session\" | \"break\";\n}\ninterface Day {\n /** The visible day, such as \"Thursday 11 June\". */\n label: string;\n /** ISO date, such as \"2026-06-11\", for