Homepage: Implement VtFeedback User with Carousel (DrSquatch) #28
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#28
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?
VtFeedback — Usage & JSON Configuration
Overview
VtFeedbackrenders a horizontally scrolling carousel of review items with optional autoplay and next/prev controls.src/modules/home/components/vt-feedback/index.tsx.src/vibentec/component-map.tsxandsrc/vibentec/renderer.tsx.Where To Configure
src/vibentec/configloader.tsusingjsonFileNames.namDrsquatch.config/nam.drsquatch.design.json(or switch to another file viasrc/vibentec/devJsonFileNames.ts).pages.Home.Minimal JSON Snippet
Full Example
config/nam.drsquatch.design.json.Config Keys
title: Optional heading text shown above the carousel.items: Array of review objects with fieldsrating(0–5),title,text,author.duration: Seconds between slides;<= 0disables autoplay.options: Passed to Embla (useEmblaCarousel) for behavior such asloop.className: Section container.titleClassName: Heading.itemClassName: Slide container.starsClassName: Stars row.reviewTitleClassName,reviewTextClassName,authorClassName: Review content.controls: Any truthy string enables next/prev controls whenitems.length > 1.Behavior Notes
ratingviarenderStars. Values are clamped between 0 and 5.controlsis truthy.duration > 0; uses Embla autoplay plugin with delayduration * 1000.Placement in Page JSON
Switching the Active Design JSON
fileNameinsrc/vibentec/configloader.tsto another entry fromsrc/vibentec/devJsonFileNames.ts(e.g.,jsonFileNames.nam3Bear) and restart the dev server.Homepage: Implement Feedback User with Carousel (DrSquatch)to Homepage: Implement VtFeedback User with Carousel (DrSquatch)