Past lookbooks covers grid — Storefront block

Pro

storefront-past-lookbooks-covers-grid · for home, catalog, landing pages

Past lookbooks covers grid

Past lookbooks as a grid of covers with their season and status: the archive of a brand that has history

Documentation

Installation

One command copies the block into your project with the shadcn CLI (the registry is set once: Installation).

pnpm dlx shadcn-vue@latest add @trame/storefront-past-lookbooks-covers-grid

Usage

Its demo data, shortened (Using blocks).

<script setup lang="ts">
import StorefrontPastLookbooksCoversGrid from '@/components/trame/blocks/storefront/storefront-past-lookbooks-covers-grid.vue'

const props = {
title: "Autumn on the ridge",
subtitle: "Three outfits for the first cold mornings, worn on the mountain trails.",
image: "https://images.unsplash.com/photo-1694561418303-16393986b86d?w=1600&q=80",
frames: [
{
image: "https://images.unsplash.com/photo-1506905925346-21bda4d32df4?w=1600&q=80",
caption: "Look 1 · Setting off at dawn",
note: "Shot at 6:40 a.m., it was 28 °F."
},
{
image: "https://images.unsplash.com/photo-1441974231531-c6227db76b6e?w=1600&q=80",
caption: "Look 2 · Under the tall trees",
note: "We had the trail to ourselves."
}
],
options: {
alt: "A man in profile wearing a dark green hooded rain jacket, by a lake in the mist"
}
}
</script>

<template>
<StorefrontPastLookbooksCoversGrid v-bind="props" />
</template>

Props

Each prop says who changes it: Words, Picture, Action, Design, Data.* required.

PropTypeDescription
titlestringWordsthe lookbook’s name ("Autumn on the ridge")
subtitlestringWordswhat the season or the shoot is about, in a sentence or two
imagestringPicturea single picture, used as the only cover when no frames are given
framesFrame[]the past lookbooks, one cover each
optionsOptionsthe block’s settings: layout choices and secondary words, read by every variant
Frame frames[] · 6 props
PropTypeDescription
imagestringPicturea picture: a root-relative path (/media/…) or an absolute URL
altstringWordswhat the picture shows, when the caption does not say it
captionstringWordsthe lookbook’s name or season
notestringWordsits status ("Sold out", "Online")
actionstringActionthe page action that opens it (a past lookbook), if any
recordRecord<string, unknown>Datathe record the action opens, if any
Options options · 2 props
PropTypeDescription
altstringWordsthe main picture’s description
mood'inverse' | 'brand' | 'warm' | 'tint' | stringa band of the page that redefines the theme surfaces inside it
What it asks your app for

The block never knows your app: it asks it, through one context provided once, where its links lead, what its actions do, how a price reads and which words to say (The host context).

MemberWhat it is for
hrefthe address an action leads to, or null to hide what leads there
actruns a change (subscribe, add to cart, save) and answers { ok } or { ok: false, error }
canwhether the page has this action
asseta picture’s address as your app serves it
Linkyour router’s link component
cartCountthe cart badge’s number
cartDrawerwhether your app has a cart drawer
cartOpenwhether the cart drawer is open
labelyour word for an interface key, or undefined to keep the block’s own

The words it says itself, in English and French; label(key) replaces any of them:

KeyEnglishFrench
newsletter.alreadyYou are already subscribed.Vous êtes déjà inscrit.
newsletter.doneDone: you are subscribed.C’est noté : vous êtes inscrit.
newsletter.invalidCheck the email address.Vérifiez l’adresse e-mail.
newsletter.tooManyToo many attempts, try again in a moment.Trop de tentatives, réessayez dans un moment.

Features

  • Every word in the server HTML
  • Same markup in Vue and React
  • Theme tokens only: every theme, light and dark
  • Shows what you give it, invents nothing
  • Subtle motion: one short reveal; still under reduced motion
  • Real buttons and links, a visible focus
  • Asks your app through actions: frames[]

A storefront section, for home, catalog, landing pages; it uses clsx, motion, tailwind-merge.

More storefront blocks

  • Pairing suggestions cards: Image-led pairing cards for serving suggestions alongside a product; the merchant’s own only.
  • Parcel cart by shipment: when the order leaves in several parcels or to several people: one card per delivery with its own heading and arrival, the summary beside.
  • Party details lead plus names: the one who books in a full form, then the others as one compact roster, a row per guest: a larger party where only names (or a meal choice) are needed of the rest.
  • Party details per person: a card per guest, the one who books first with every field, the others with theirs, each added or removed in place beside the booking’s summary: a small party whose guests each need a few details.
  • Payment explainer numbered rows: a trust section of the shop: what we see, what we keep, what cannot leak, as numbered rows.
  • Payment instalments plan schedule: the provider offers pay-in-full or N payments: the chosen plan shows its dated schedule and any extra cost.
  • Payment methods radio accordion: several unlike methods (card, PayPal, transfer): each a row that opens only its own fields.
  • Payment methods wallets then card: the shop takes wallets: express buttons first, a divider, then a card panel that can fold.

All 409 storefront blocks