Reading Progress Card
Book card with a progress bar for the book you're reading. Set the title and page numbers at the top.
What you need
- The Datacore community plugin (Settings → Community plugins → Browse, search "Datacore").
- The VaultHub widgets CSS snippet: download vaulthub-widgets.css, save it in your vault's
.obsidian/snippets/folder, then switch it on under Settings → Appearance → CSS snippets. One snippet styles every VaultHub widget.
Add it to a note
Paste the block below into any note. It renders in Live Preview and Reading view.
Edit the four values at the top of the block (TITLE, AUTHOR, CURRENT_PAGE, TOTAL_PAGES) as you read. Put it in a book note or on your homepage.
return function ReadingTracker() {
const TITLE = "Your Current Book";
const AUTHOR = "Author Name";
const CURRENT_PAGE = 120;
const TOTAL_PAGES = 350;
const pct = Math.min(100, Math.round((CURRENT_PAGE / TOTAL_PAGES) * 100));
return (
<div className="vh-widget vh-book-tracker">
<div className="vh-book-cover">📖</div>
<div className="vh-book-info">
<div className="vh-book-name">{TITLE}</div>
<div className="vh-book-author">{AUTHOR}</div>
<div className="vh-book-track">
<div style={{ width: `${pct}%` }}></div>
</div>
<div className="vh-book-stats">{CURRENT_PAGE} / {TOTAL_PAGES} pages ({pct}%)</div>
</div>
</div>
);
}
How to Install
- Install the Datacore community plugin
- Add the VaultHub widgets CSS snippet to
.obsidian/snippets/and enable it - Copy the code block on this page into any note
Categories
Tags
vaulthubbooksreadingprogress