DirectoryFast
  • 🚀Get Started
  • 🔤Tutorials
    • Bring me to life!
    • How it's structured?
    • Make it yours
    • Bonus
  • 🛠️Features
    • AI
      • AI URL Scanner & Scan Jobs
    • Analytics
    • Authentication
    • API
      • Protected Endpoints
    • Blog
    • Database
    • Emails
    • Error Pages
    • Icons
    • Payments
    • Private Pages
    • SEO
  • 📦General Components
    • Shadcn/ui Components
    • Navbar
    • Footer
    • SignIn Modal
    • Hero Section
    • Social Proof
    • Collections Social Proof
    • Featured Section
    • Latest Collections Section
    • Latest Products Section
    • Recommended Section
  • 📦Directory Components
    • Product Card
    • Collection Card
    • Product Note
    • Search Bar
    • Tags
    • Product Options Toggle
    • Combobox
    • Multi-Combobox
    • Submit Product
    • Feature Product
    • Manage Note
    • Manage Collection
    • Dashboard Tables
  • ⛓️Links
    • GitHub Repository
    • Support
Powered by GitBook
On this page
  • Sizing
  • Flip Effect
  1. Directory Components

Product Card

Your main element, this card will showcase your product with a quick look at its category and options.

PreviousRecommended SectionNextCollection Card

Last updated 7 months ago

  • Component: <ProductCard/>

  • Path: /components/layout/product-card.tsx

  • Import:

import { ProductCard } from "@/components/layout/product-card";

The card displays:

  • Label

  • "Owner" (links to X if it starts with @)

  • Image

  • Tagline

  • Category

  • Options (links/filters)

  • Rating / favorite actions if flip effect is selected

It's clickable and will get you to the product own page.

Sizing

Different sizes are available to fit your products, simply set the "cards" value to "large" in metadata file:

data/config/metadata.js
const metadata = {
 ...
cards: "large", // "default" | "large" | "vertical"
...
};

module.exports = { metadata };

Responsive and number of cards per column will be automatically updated for pre-defined sizes.

Flip Effect

For a clean minimalist deign, you can opt for flipping cards.

Front card will show image only, and back will appear on hover with all infos and actions (rating & favorite):

data/config/metadata.js
const metadata = {
 ...
enableFlipCards: true, // Set to true to enable flip functionality
...
};

module.exports = { metadata };

The vertical layout + flip effect is perfect for books for example!

📦
Product Card with X link
Large Cards
Large Cards