The component feed atDocumentation Index
Fetch the complete documentation index at: https://mintlify.com/Avendaosander/Plataforma-social/llms.txt
Use this file to discover all available pages before exploring further.
/home is the heart of Plataforma Social — a scrollable list of community-submitted UI components where you can discover new contributions, follow their authors, rate quality, leave comments, and save posts for later. Every interaction is available inline without leaving the feed, and clicking any post title opens the full detail view with source code.
How the Feed Works
The/home page renders a vertical list of CardPost components alongside a search bar powered by InputWithIcon. Typing in the search bar and submitting pushes the query to /home/search:
/home and /home/search, giving authors quick access to post a new component from any feed view.
CardPost Anatomy
EachCardPost card is a self-contained <article> element that surfaces the most important information about a component at a glance. Here is a breakdown of every section rendered by CardPost:
Header
Displays the author’s avatar (
UserIcon fallback), a clickable username linking to /home/profile/:id, and an inline Seguir / Siguiendo toggle button so you can follow the author without navigating away. The relative post timestamp (e.g. 18hrs) is right-aligned.Title & Description
The post title is a
<Link> to /home/post for the full detail view. The description is truncated to 290 characters using the truncateText utility to keep the feed scannable, with an ellipsis appended when the text is cut.Tech Stack Tags
Pill-shaped buttons rendered for each technology in the post’s
Stack. Each tag is wrapped in a <Link href='/home/search?tech=tecnologia'> so clicking a tag immediately filters the search results to that technology.Component Preview
A thumbnail
<Image> (120 × 120 px) of the component alongside a Vista Previa button. The preview is placed in the right column opposite the description and tags.CardPost Footer
The footer sits below a divider and holds all interaction controls:| Control | Component | Description |
|---|---|---|
| Star rating | StarIcon (×5) | Yellow filled stars reflecting the aggregate score; numeric value shown alongside (e.g. 3.2) |
| Comment count | MessageIcon | Icon and count of comments on the post |
| Share | ShareIcon | Share the post link |
| Bookmark | BookmarkPlusIcon | Save the post for later |
truncateText Utility
The description preview is clipped by this helper defined at the top of CardPost.tsx:
truncateText(description, 290), meaning any description longer than 290 characters is sliced and suffixed with "...".
Post Detail Page (/home/post)
Clicking a post title navigates to the full detail view. The page is split into a main content column (max width 3xl, offset to leave room for the comments panel) and a fixed right-side comments sidebar.
Main content column layout
Main content column layout
The detail view assembles post content in this order:
- Title — large
<h2>at the top - Full description — unrestricted paragraph, up to
80chwide - Developer info section — author avatar (120 × 120 px
<Image>), “Desarrollado por” username, publication date, and a row of tech-stack tag buttons styled withbg-biscay-600/80 text-white - Stats bar — five
StarIconelements with the aggregate rating and numeric score, plus an action menu toggled byDotsIcon - Code block — file name header with a Descargar archivo button; the code itself is displayed inside a dark
bg-storm-900container
Action Menu (DotsIcon)
The stats bar includes aDotsIcon button (color='primary' variant='flat' shape='full') that toggles isMore state. When expanded, three additional action buttons appear:
Comments Sidebar
A fixed right panel (max-w-[300px]) is always visible on the post detail page. It shows a Comentarios heading with the total comment count, a scrollable list of existing comments, and an InputWithIcon field (with MessagePlusIcon) at the bottom for submitting a new comment.
Rating System
Ratings are stored in theRating model (one row per user per post) and aggregated into a floating-point score displayed on every card and post detail view.
The rating scale is 1 – 5 stars. The aggregated decimal score (e.g.
3.2) is derived server-side and returned with the post data. Filled yellow stars (fill-yellow-400 stroke-yellow-400) indicate the rounded integer portion of the score.