Notebook side rail assistant
A simulated assistant in a full-height linen sheet that opens from a ribbon on the left edge: dated like a journal page, questions written in a serif, answers beside a margin rule.
Links in the preview stay on the block.
Open on its ownThe prompt
One prompt, written to stand on its own: goal, structure, type, colour, spacing, behaviour and the words in square brackets to replace. Paste it into any tool that writes HTML. The Code tab has this block as one file.
753 words
# Notebook side rail assistant One overlays component, not a whole page: build it to drop into a page that already exists. Works in Claude, v0, Lovable, Bolt, Cursor or any tool that writes HTML. ## Goal A product tour assistant for a menopause clinic that feels like a private notebook rather than a chat widget, opened from a slim ribbon on the left edge so it never covers the reading line or the call to action. ## Structure 1. opener: a ribbon button fixed on the left edge, linen with a lime cap, a swallowtail end and a vertical label 2. veil over the page 3. sheet from the left: top row with today's date, the title and a Close pill 4. scrolling body with a vertical margin rule; each entry has who and time in the margin and the text to its right 5. writing state line with a growing underline 6. starter or follow-up questions as ruled rows 7. composer: a visible label, an underline input and a Send pill 8. one plain disclaimer line ## Type Title Libre Caslon Display 400 34px/1. Date and margin labels Anek Latin 600 10.5px capitals tracking .12em. Questions Libre Caslon Display 23px/1.22. Answers Anek 16px/1.6. Rows Anek 500 15.5px/1.35 with a serif plus. Input Anek 17px. ## Colour Sheet #F2EADF, ink #22121F, secondary #5E4459, rules rgba(34,18,31,.16), veil rgba(20,9,18,.7). Lime #CFE56A only as a highlighter band under row text on hover and as the writing underline on a 1px rgba(34,18,31,.34) base. Send pill #22121F with #F2EADF text. ## Spacing and lines Sheet min(440px, 100%) by 100dvh. Margin rule at 80px (60px on phones), entries in a grid of 80px and the rest with a 20px gap, 12px to 14px vertical padding. Rows 50px. Composer padding 14px 24px plus the safe area. ## Behaviour Opening removes hidden, makes the header, ribbon, main and footer inert, locks scroll, slides the sheet in over 750ms cubic-bezier(.16,1,.3,1) and focuses the input. Questions go through an intent table of 13 intents plus emergency: lowercase, strip punctuation, simple plurals, a synonym map, weighted keywords and phrases, best score of at least 2, otherwise a fallback listing topics with an email and a free call. Emergency words (chest pain, cannot breathe, suicide, harm, overdose, stroke and similar) always answer first with the local emergency number. The writing state shows 'Perennial is writing' with a lime underline growing over 600 to 1200ms by answer length; answers rise 8px over 700ms; two follow-up rows replace the starters after each answer. Nothing is stored or sent. ## Responsive Full width on phones, header and margin tighten, the input stays above the on-screen keyboard because the sheet uses 100dvh with a flex column. ## Accessibility role dialog with aria-modal and aria-labelledby. Ribbon is a button with aria-expanded and aria-controls. Tab is trapped; Escape, Close and the veil close and return focus to the opener. Log has role log and aria-live polite. Input has a visible label, Enter sends. Reduced motion: 200ms fade and a static 'Writing' label. ## Built values (from code.html) - Fonts: Libre Caslon Display 400 (self-hosted: fonts/libre-caslon-display-400.woff2); Anek Latin 100 to 800 (self-hosted: fonts/anek-latin-400.woff2). Self-hosted files sit in fonts/ in the block download. - Colour variables: --aub #22121F, --aub-deep #1A0D18, --plum #3A2136, --linen #F2EADF, --mauve #B79BB0, --lime #CFE56A, --ink #22121F, --ink-2 #5E4459, --line-d rgba(242,234,223,.16), --line-d2 rgba(242,234,223,.3), --line-l rgba(34,18,31,.16), --line-l2 rgba(34,18,31,.34). - Font variables: --serif "Libre Caslon Display", "Baskerville", Georgia, serif; --sans "Anek Latin", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif. - Size variables: --gut-l max(112px, 8vw), --gut-r max(40px, 6vw). - Media queries: max-width 699px, prefers-reduced-motion, hover-capable pointer. - No media files. - Script: none, CSS only. ## Content to replace - [Ribbon label]: Ask Perennial - [Date]: today, from Intl - [Opening note]: one sentence on what it can explain - [Starters]: four questions: first visit, insurance, cost, hormone therapy - [Disclaimer]: Not medical advice. ## Rules Plain, specific copy that reads as a live product; never the word sample. No shadows, glow, glass, blur, gradient text, emoji or italics. Motion moves transform and opacity, with colour, border, height and stroke transitions on state changes, and holds its end state under prefers-reduced-motion. Text passes WCAG AA. ## Output Return the block in one piece: the markup, one style block with the web fonts imported on its first line, and a small script only if the behaviour needs one. No page wrapper, no framework, no build step. Prefix every class with `blk-` and put the colours and sizes in CSS variables at the top.
More like this
Overlays
Same page




