From 49212b5194a00c7cf14bca395deed21d909f3084 Mon Sep 17 00:00:00 2001 From: Stephen Walsh Date: Sat, 7 Nov 2026 20:03:20 -0600 Subject: [PATCH] Line up the home page cards and turn their links into badges --- src/components/CopyCommand.astro | 4 +- src/data/templates.ts | 23 ++++++----- src/pages/index.astro | 2 +- src/styles/site.css | 69 +++++++++++++++++++++++++++----- 4 files changed, 75 insertions(+), 23 deletions(-) diff --git a/src/components/CopyCommand.astro b/src/components/CopyCommand.astro index 5ebc343..9ddda27 100644 --- a/src/components/CopyCommand.astro +++ b/src/components/CopyCommand.astro @@ -6,12 +6,12 @@ interface Props { } const { command } = Astro.props; -// Each word is kept whole, so a long command wraps at spaces and never inside a package name or an option. +// A long command wraps at spaces. A word too long for the line, such as a package name on a phone, breaks after a dot. const words = command.split(' '); ---
- {words.map((w, i) => {i > 0 && ' '}{w})} + {words.map((w, i) => {i > 0 && ' '}{w.split('.').map((part, j) => {j > 0 && .}{part})})}