Agile Web Development with Rails 7: Chapter 11. Task F: Hotwiring the Storefront (p. 146)

The screenshot for the card is breaking up the code from the prior page and the current page. Perhaps moving the screenshot of the cart below the code block would improve readability.

Pagination is done much later in the cycle: see second paragraph here: Frequently Asked Questions