Homepage: Implement Subcribe section #16
Labels
No Label
bug
duplicate
enhancement
help wanted
invalid
question
wontfix
No Milestone
No project
No Assignees
1 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: Shop/Shop-Storefront#16
Loading…
Reference in New Issue
No description provided.
Delete Branch "%!s(<nil>)"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
VtSubcription — Usage & JSON Configuration
Overview
VtSubcriptionrenders a subscription/signup card with optional benefits, inputs, a policy checkbox, and a submit button.src/vibentec/component-map.tsx(import and renderer entry). Rendering is handled bysrc/vibentec/renderer.tsx.Where To Configure
src/vibentec/configloader.tsviajsonFileNames.namDrsquatch. The file on disk isconfig/nam.drsquatch.design.json.VtSubcriptionin any page section. Commonly it goes underpages.Home.Minimal JSON Snippet
Full Example (with benefits and copy)
This mirrors the structure used in
config/nam.drsquatch.design.json.Config Keys
title: Heading text. Optional; when set, shown ash2.description: Boolean to show description line.descriptionPrefix,descriptionHighlight,descriptionSuffix: Split description parts; highlight gets bold styling.subtext: Secondary line shown below description.successMessage: Text shown after successful submit.firstName: Object with optionalplaceholderandclassNameto render the first-name input.email: Object with optionalplaceholderandclassNameto render the email input. Markedrequired.policyLabel: Checkbox label text; default is German copy.newCheckboxRowClassName: When present, the policy checkbox row is rendered. Use to control visibility and styling.cta: Object{ label, className }for the submit button.benefits: Array of items. Each item supportsiconorimgSrc, plustitle,description, and per-item classNames.className(section),cardClassName(card),titleClassName,descriptionClassName,highlightClassName.formClassName,fieldsClassName,inputClassName.checkboxRowClassName,checkboxClassName,checkboxLabelClassName.successClassName.benefitsClassName,benefitItemClassName,benefitIconClassName,benefitTitleClassName,benefitDescClassName.Behavior Notes
submitted=trueand logs to the console.onSubmit.firstName/emailobjects exist in config.newCheckboxRowClassNameis present.Placement in Page JSON
pages.Home:Alternate Example (3Bears design)
config/nam.3bear.design.jsonfor a localized German version with description parts and placeholders.Switching the Active Design JSON
src/vibentec/configloader.tsto pointfileNameto a different entry fromsrc/vibentec/devJsonFileNames.ts(e.g.,jsonFileNames.nam3Bear) and restart the dev server.