diff --git a/docs/google-drive-and-mail.md b/docs/google-drive-and-mail.md index 6b72b78..f045dbb 100644 --- a/docs/google-drive-and-mail.md +++ b/docs/google-drive-and-mail.md @@ -60,7 +60,7 @@ hand. | Folder | Used by | Set in | | --- | --- | --- | -| `Requests/` | Files sent with the Request form, a folder per type (`Requests/Chapters`, `Requests/Blog posts`...) | `DRIVE_FOLDER` and `TYPE_FOLDERS` in `server/src/routes/requests.js` | +| `Requests/` | Files sent with the Request form, a folder per type (`Requests/Chapters`, `Requests/Blog Posts`...) | `DRIVE_FOLDER` and `TYPE_FOLDERS` in `server/src/routes/requests.js` | | `Media` and folders in it | Files for pages to link to (Tools → Media → Files), in folders you make there | `FOLDER` in `server/src/routes/files.js` | A new use calls `driveUpload("", name, mime, bytes)` from diff --git a/server/src/routes/requests.js b/server/src/routes/requests.js index 7a4aa98..cca84a6 100644 --- a/server/src/routes/requests.js +++ b/server/src/routes/requests.js @@ -67,7 +67,7 @@ const MIN_MESSAGE = 10; // folder per type under Requests, eg. Requests/Chapters. const DRIVE_FOLDER = "Requests"; const TYPE_FOLDERS = { - blog: "Blog posts", + blog: "Blog Posts", event: "Events", chapter: "Chapters", region: "Regions", diff --git a/src/components/ContentBlocks.tsx b/src/components/ContentBlocks.tsx index ec4ef8c..58bb73b 100644 --- a/src/components/ContentBlocks.tsx +++ b/src/components/ContentBlocks.tsx @@ -24,8 +24,9 @@ a fold-out of description, media, map); text is an optional intro. ScheduleBlock table text: a row per line, cells split by | - cards items as link cards: text the title, - detail, url, media the picture + cards items as link cards, up to three in a row: + text the title, detail, url, media the + picture divider nothing "Formatted" is InlineText.tsx: **bold**, *italic*, [text](url), @@ -95,10 +96,10 @@ function LinkCard({ item }: { item: ContentBlockItem }) { {!img.failed && ( )} - - {where} - {item.text} - {item.detail && {item.detail}} + + {where} + {item.text} + {item.detail && {item.detail}} ) @@ -224,7 +225,9 @@ function Block({ block, accent, anchor }: { block: ContentBlock; accent: string; const cards = (block.items ?? []).filter((item) => item.url && item.text) if (cards.length === 0) return null return ( -
    + // One grid whatever the count: a lone card takes a column + // rather than the width, and more sit up to three in a row. +
      {cards.map((item, i) => (
    • diff --git a/src/lib/adminSchema/shared.ts b/src/lib/adminSchema/shared.ts index d97f2cf..9fe4e57 100644 --- a/src/lib/adminSchema/shared.ts +++ b/src/lib/adminSchema/shared.ts @@ -279,7 +279,7 @@ export const BLOCK_TYPES = [ ["video", "Video", "A YouTube, Vimeo or Facebook video, or a video file, played in place."], ["schedule", "Schedule", "Entries in one tab per day, each folding out for more. The text is an optional intro."], ["table", "Table", "A grid of text, eg. a comparison chart: one row per line, cells split by |, the first row the header."], - ["cards", "Link cards", "Cards with a picture, title and description, each a link, like a link shared in a chat. Paste a link and press Fetch preview."], + ["cards", "Link cards", "Cards with a picture, title and description, each a link to a page or a file, like a link shared in a chat; up to three in a row. Paste a link and press Fetch preview, or Choose a file."], ["divider", "Divider", "A thin line between parts."], ];