Marketing Sections
v1.0.0Added in 1.7.0
A "From the blog" section: the latest posts as cards, a featured post with a list, dated rows or a sideways rail, with covers drawn in code.
Each post is one link to /blog/<slug>: hovering lifts the card, zooms its cover glyph and underlines the title, and tabbing to it draws the focus ring around the whole card. Covers are drawn in code (a gradient tile per category with its glyph, or a quiet tint in the tone), so nothing loads. The grid shows three cards, two columns on tablets and one on phones; featured puts the latest post large beside a list of compact rows with small covers; list shows rows with a big month and day column and a cover on the right from 768px; rail is a sideways scroller that snaps card by card, swipes on touch and bleeds to the screen edge, with previous and next buttons that disable at the ends. "View all posts" under the heading links to /blog.
npx wingo-ui@latest add blog-cards-sectionPro item: the CLI needs a Pro account. See plans