v2.10.0
v2.10.0
This release rebuilds the home page from neutral blocks that any page of your application can use, and writes it like any other page instead of rendering a content format.
Added
- Added page blocks in
resources/js/components/blocks, ordinary components that take their content as props, arrays of plain objects and slots, each with a usage example at the top of its file:PageSection(a full-width band, optionallymuted, with a heading),SectionHeading,Hero,AnnouncementLink,TextHighlight,ActionButton,BrowserFrame,CodeWindow,MediaPlaceholder,FeatureList,BentoGridandBentoCard,SplitSection(text next to a media,reversefor the other side),Steps,Faq,OfferCard(a single offer, its buy button in a slot) andCallToAction. - Added
SiteHeaderandSiteFooterinresources/js/components, the header and footer of public pages, with theSiteMenuandSiteLinktypes inresources/js/types/navigation.ts. TextHighlightandBentoCardtake acolor(accent,primary,neutral, or the fixed colorsred,amber,emerald,skyandviolet), typedHighlightColor. The blocks carrydata-slotattributes (hero,page-section,bento-card,call-to-action…), and the colored onesdata-color, for a brand stylesheet.
Changed
Welcome.vueis now written like any other page: it placesSiteHeader, the blocks andSiteFooteritself, with its icons, links and colors in the page, and reads its texts fromlang/{locale}/landing.phpwith__(). The translation file holds plain keys (hero.title,faq.items.trial.question…), the same in every locale.WelcomeControllerno longer passes acontentprop: the page receivesplaceholderandcanRegisteronly. The pricing and closing actions of the example lead to the registration page, or to the login page while sign-ups are closed.- Links to the sections of the home page scroll smoothly from
Welcome.vuerather than from the header. - The admins' reminder that the home page shows the example (
messages.landing_placeholder) now points toWelcome.vueandlang/{locale}/landing.php. - The
building-landing-pageAI skill now writesWelcome.vuewith the blocks and the texts as translation keys, and creates blocks of its own when none fits. Updated the reusable AI guidance on the frontend to describe the blocks. - The accent's primary color option in the design system panel reads "Couleur primaire" in French and "Color primario" in Spanish.
- The reusable AI guidance tells agents that Stripe webhooks reach a local site only while
php artisan inertia-start:stripe:listenruns.
Removed
- Removed
resources/js/components/landing: theLanding*components,types.ts(LandingContent,LandingContentSectionand the otherLanding*types),icons.ts(landingIcons) andaccents.ts. Their replacements are the blocks,SiteHeaderandSiteFooter. - Removed the landing content format of
lang/{locale}/landing.php: the orderedsectionswith theirtype, icon names,route:namelinks,[[highlighted]]hero titles and the:appand:yearreplacements of every text.
Upgrade Guide
- Run
composer installandnpm cito install the locked dependency versions. - If your home page is still the starter kit's example, take the new
Welcome.vue,WelcomeController.phpandlang/*/landing.php, and deleteresources/js/components/landing. - If you wrote your own landing page in
lang/*/landing.php, rebuild it inWelcome.vuewith the blocks: each former section becomes a block (hero→Hero,features→FeatureListin aPageSection,highlights→BentoGridandBentoCard,feature_sections→ oneSplitSectioneach,steps→Steps,pricing→OfferCard,faq→Faq,call_to_action→CallToActionin aPageSection), and the header and footer becomeSiteHeaderandSiteFooter. Move your texts to plain translation keys, and your icons, links and colors into the page; writeroute('name')instead ofroute:name, and pass{ app, year }replacements where your texts use them. Then deleteresources/js/components/landing. You can ask your AI assistant to do it with thebuilding-landing-pageskill. - If you customized the components in
resources/js/components/landing, carry your changes over to their replacements:LandingHeaderisSiteHeader(itsctaprop is nowaction, with an optional icon),LandingFooterisSiteFooter,LandingSectionHeadingisSectionHeading, and the others are the blocks listed above. - If you imported
landingIconsor aLanding*type elsewhere, import the Lucide icons directly and useSiteMenu,SiteLinkorHighlightColorfrom@/types. - If you added locales, rewrite their
landing.phpwith the keys oflang/en/landing.php, and update theirmessages.landing_placeholder.