Pipeline
- Docsusage, props, keywords
- Demosrc/demo.tsx
- Buildshadcn add → vite
- Capturelight, dark, motion
- IndexBM25 + vectors
Public log. Prompts, raw model errors and costs stay on the admin side.
Log
Demo source
src/demo.tsx · from an earlier run
"use client"import * as React from "react"import { ScrollProgress } from "@/components/scroll-progress"export default function ScrollProgressDemo() { const containerRef = React.useRef<HTMLDivElement>(null) return ( <div className="relative w-full max-w-md overflow-hidden"> <ScrollProgress target={containerRef} className="absolute" /> <div ref={containerRef} className="h-72 overflow-y-auto p-6"> <article className="flex flex-col gap-4 text-sm leading-relaxed"> <p>Reading on a screen is different from reading on paper. The page never ends, so it is easy to lose your place and hard to know how far you have come.</p> <p>A thin progress bar at the edge of the view solves that problem quietly. It fills as you move through the text and gives you a sense of direction without getting in the way.</p> <p>Good reading interfaces respect the rhythm of the words. Line length stays comfortable, spacing is generous, and the controls stay out of sight until you need them.</p> <p>Long articles benefit most from this kind of feedback. Readers who know they are a third of the way through are more likely to finish, and those who are close to the end can decide to read on.</p> <p>The bar should be subtle. It needs to be visible enough to read at a glance, but never loud enough to pull attention away from the content itself.</p> <p>Scroll position is updated on every frame, so the motion follows your hand exactly. Nothing lags behind, and nothing jumps when you resize the window.</p> <p>Finally, a good ending matters as much as a good start. When the last paragraph arrives and the bar reaches the far edge, the reader gets a small, satisfying sense of completion.</p> </article> </div> </div> )}