TheDocumentation Index
Fetch the complete documentation index at: https://mintlify.com/bicyblex/bicyblexStore/llms.txt
Use this file to discover all available pages before exploring further.
<NewsLetter> component (src/components/index/newsLetter.jsx) renders a news and updates section prominently on the public storefront homepage, pulling articles from the news Supabase table and presenting them as a smooth, auto-advancing slideshow. Each article is shown with its cover image, title, excerpt, publication date, and author — and a direct WhatsApp button inviting visitors to ask about the topic in conversation. This turns a passive content section into an active engagement channel, consistent with Bicyblex’s WhatsApp-first sales approach.
Data Model
News articles are stored in thenews table in Supabase. The component queries all records ordered by publication date descending, so the most recent article always appears first:
| Field | Type | Description |
|---|---|---|
id | uuid | Unique identifier for the article |
title | text | Article headline, displayed in large display font |
content | text | Full article body (stored but not rendered in the slider) |
image | text | URL of the article cover image |
slug | text | URL-safe identifier stored in the table but not rendered by the slider component |
excerpt | text | Short summary shown in the slider (max ~150 characters) |
published_at | timestamptz | Publication timestamp, formatted for display with toLocaleDateString() |
author | text | Author name displayed alongside the publication date (stored in the table but not set by the admin dashboard form) |
null and renders nothing — the section disappears from the page entirely rather than showing an empty container.
Slideshow Behavior
The component auto-advances through articles every 6 seconds using asetInterval loop that resets when the component unmounts:
WhatsApp Integration
Each article card includes a “PREGUNTAR POR WHATSAPP →” button. When clicked, it opens a WhatsApp conversation pre-populated with a message referencing the article title. The URL is constructed by appending the encoded article title to thenewsLetterWhatsAppMessageUrl base from GlobalContext:
Managing News Articles
All article creation, editing, and deletion is handled through the Bicyblex admin dashboard.Open the admin dashboard
Navigate to the admin dashboard and go to News Management.
Create a new article
Click New Article, fill in the
title and content, then upload a cover image. The slug is auto-generated from the title and the excerpt is auto-generated from the first 150 characters of the content — no manual input is required for either field.Review the excerpt
The excerpt is automatically generated from the first 150 characters of the article content when the article is saved. To change the excerpt, edit the opening of the article body before saving.
The
<NewsLetter /> section is placed immediately after <Hero /> and before the product catalog sections (<Products />, <ElectricMotos />) in pages/index.js. This positioning is intentional — visitors who scroll past the hero see fresh news content before reaching the product grid, establishing trust and brand credibility early in the browsing experience.