Season calendar months — Events block
Proevents-season-calendar-months · for home, landing pages
Season calendar months
Twelve month cards, each listing what is in season: a printable, readable-in-order calendar for a short list of products
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/events-season-calendar-monthsUsage
Its demo data, shortened (Using blocks).
<script setup lang="ts">
import EventsSeasonCalendarMonths from '@/components/trame/blocks/events/events-season-calendar-months.vue'
const props = {
title: "What grows here, month by month",
lead: "We only pick what’s ripe. Here are the months when each vegetable and fruit reaches the stand, and the ones when it’s at its best.",
produce: [
{
id: "asperges",
name: "Green asparagus",
category: "Vegetables",
months: [
4,
5
],
peaks: [
5
],
note: "Picked the same morning"
},
{
id: "radis",
name: "Pink radishes",
category: "Vegetables",
months: [
4,
5
]
}
],
currentMonth: 10
}
</script>
<template>
<EventsSeasonCalendarMonths v-bind="props" />
</template>Props
Each prop says who changes it: Words, Picture, Action, Design, Data.* required.
| Prop | Type | Description |
|---|---|---|
| title* | string | Wordsthe calendar’s heading ("What grows here") |
| lead | string | Wordswhat the farm says about its seasons, one or two sentences |
| produce* | Produce[] | Datathe produce and the months it is in season |
| currentMonth | number | the month to highlight; the host gives it, the block never reads the clock |
| options | Options | the block’s settings: layout choices and secondary words, read by every variant |
Produce produce[] · 6 props
| Prop | Type | Description |
|---|---|---|
| id* | string | Designthe key of the record |
| name* | string | Wordsthe product ("Green asparagus") |
| category | string | Wordsthe family it belongs to ("Vegetables", "Fruit") |
| months* | number[] | the months it is in season |
| peaks | number[] | the months it is at its best, a subset of months |
| note | string | Wordsone short line on the variety or the way it is grown ("Gariguette variety") |
Options options · 1 props
| Prop | Type | Description |
|---|---|---|
| mood | 'inverse' | 'brand' | 'warm' | 'tint' | string | a 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).
| Member | What it is for |
|---|---|
| href | the address an action leads to, or null to hide what leads there |
| act | runs a change (subscribe, add to cart, save) and answers { ok } or { ok: false, error } |
| can | whether the page has this action |
| cartCount | the cart badge’s number |
| cartDrawer | whether your app has a cart drawer |
| cartOpen | whether the cart drawer is open |
| label | your 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:
| Key | English | French |
|---|---|---|
| newsletter.already | You are already subscribed. | Vous êtes déjà inscrit. |
| newsletter.done | Done: you are subscribed. | C’est noté : vous êtes inscrit. |
| newsletter.invalid | Check the email address. | Vérifiez l’adresse e-mail. |
| newsletter.tooMany | Too 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
- Reads
producefrom your app
A events section, for home, landing pages; it uses clsx, motion, tailwind-merge.
More events blocks
- Ledger dates: a plain, poster-like list: oversized day numerals at the left of hairline rows, nothing else to look at; the merchant’s own only.
- Registration sidebar: one event page: its agenda and hosts on the left, a sticky card on the right with the date, the place, the register and calendar actions; the merchant’s own only.
- Release calendar dated list: several dated releases to come: the form beside a calendar of them — the merchant’s own only.
- Retrospective gallery: the pictures and figures of the past edition, then the next date: what happened, and what comes next; the merchant’s own only.
- Session program columns: one to three columns of timed sessions, one per day or track: a programme with parallel sessions; the merchant’s own only.
- Session program rail: a single vertical rail of hours with notes: the schedule of one day; the merchant’s own only.
- Session programme dated list: a recurring programme: a dated list of sessions, each open, full or in replay, with one form to follow the series — the merchant’s own only.
- Session recording split player: a session that already happened: the recording to play, the chapters and speakers, a form to receive the material — the merchant’s own only.