Inertia Start

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, optionally muted, with a heading), SectionHeading, Hero, AnnouncementLink, TextHighlight, ActionButton, BrowserFrame, CodeWindow, MediaPlaceholder, FeatureList, BentoGrid and BentoCard, SplitSection (text next to a media, reverse for the other side), Steps, Faq, OfferCard (a single offer, its buy button in a slot) and CallToAction.
  • Added SiteHeader and SiteFooter in resources/js/components, the header and footer of public pages, with the SiteMenu and SiteLink types in resources/js/types/navigation.ts.
  • TextHighlight and BentoCard take a color (accent, primary, neutral, or the fixed colors red, amber, emerald, sky and violet), typed HighlightColor. The blocks carry data-slot attributes (hero, page-section, bento-card, call-to-action…), and the colored ones data-color, for a brand stylesheet.

Changed

  • Welcome.vue is now written like any other page: it places SiteHeader, the blocks and SiteFooter itself, with its icons, links and colors in the page, and reads its texts from lang/{locale}/landing.php with __(). The translation file holds plain keys (hero.title, faq.items.trial.question…), the same in every locale.
  • WelcomeController no longer passes a content prop: the page receives placeholder and canRegister only. 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.vue rather than from the header.
  • The admins' reminder that the home page shows the example (messages.landing_placeholder) now points to Welcome.vue and lang/{locale}/landing.php.
  • The building-landing-page AI skill now writes Welcome.vue with 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:listen runs.

Removed

  • Removed resources/js/components/landing: the Landing* components, types.ts (LandingContent, LandingContentSection and the other Landing* types), icons.ts (landingIcons) and accents.ts. Their replacements are the blocks, SiteHeader and SiteFooter.
  • Removed the landing content format of lang/{locale}/landing.php: the ordered sections with their type, icon names, route:name links, [[highlighted]] hero titles and the :app and :year replacements of every text.

Upgrade Guide

  1. Run composer install and npm ci to install the locked dependency versions.
  2. If your home page is still the starter kit's example, take the new Welcome.vue, WelcomeController.php and lang/*/landing.php, and delete resources/js/components/landing.
  3. If you wrote your own landing page in lang/*/landing.php, rebuild it in Welcome.vue with the blocks: each former section becomes a block (hero → Hero, features → FeatureList in a PageSection, highlights → BentoGrid and BentoCard, feature_sections → one SplitSection each, steps → Steps, pricing → OfferCard, faq → Faq, call_to_action → CallToAction in a PageSection), and the header and footer become SiteHeader and SiteFooter. Move your texts to plain translation keys, and your icons, links and colors into the page; write route('name') instead of route:name, and pass { app, year } replacements where your texts use them. Then delete resources/js/components/landing. You can ask your AI assistant to do it with the building-landing-page skill.
  4. If you customized the components in resources/js/components/landing, carry your changes over to their replacements: LandingHeader is SiteHeader (its cta prop is now action, with an optional icon), LandingFooter is SiteFooter, LandingSectionHeading is SectionHeading, and the others are the blocks listed above.
  5. If you imported landingIcons or a Landing* type elsewhere, import the Lucide icons directly and use SiteMenu, SiteLink or HighlightColor from @/types.
  6. If you added locales, rewrite their landing.php with the keys of lang/en/landing.php, and update their messages.landing_placeholder.