Kavi Katiyar

Article Cards

Cards 125

About

Article Card This component displays a visually rich card for articles, featuring a background image with a gradient overlay, category, title, and a call-to-action button. It's designed to be responsive and includes a subtle lift and scale animation on hover.

Built with React and Tailwind. Copy the prompt and paste it into Claude Code, Cursor or Lovable: your agent adds Article Cards to your project and fits it to your theme.

Code

How Article Cards is used: the demo's code. The component's own source comes with a free account.

Usage.tsx

import { ArticleCard } from '@/components/ui/article-cards'; // Adjust the import path

const articles = [
  {
    category: 'FOOD',
    title: 'Wake Up and Smell the Coffee',
    price: 0.99,
    imageUrl: 'https://www.thiings.co/_next/image?url=https%3A%2F%2Flftz25oez4aqbxpq.public.blob.vercel-storage.com%2Fimage-shBKuu4CZPoxpdoQH7r6Xn5jcZlCRq.png&w=320&q=75',
    gradient: 'from-emerald-400/70 to-teal-600/70',
  },
  {
    category: 'ARCHITECTURE',
    title: 'The Brand New NASA Office',
    price: 0.19,
    imageUrl: 'https://www.thiings.co/_next/image?url=https%3A%2F%2Flftz25oez4aqbxpq.public.blob.vercel-storage.com%2Fimage-2kErHQIkqMuToUFqQ4XSMhya9d6NqZ.png&w=320&q=75',
    gradient: 'from-slate-800/70 to-slate-900/70',
  },
  {
    category: 'TRAVEL',
    title: 'Experience the Saharan Sands',
    price: 2.29,
    imageUrl: 'https://www.thiings.co/_next/image?url=https%3A%2F%2Flftz25oez4aqbxpq.public.blob.vercel-storage.com%2Fimage-5FKJfLGlXSNveVVEHP0G4l2qyXGuLF.png&w=320&q=75',
    gradient: 'from-amber-400/70 to-orange-600/70',
  },
  {
    category: 'INTERIOR',
    title: '9 Air-Cleaning Plants Your Home Needs',
    price: 0.09,
    imageUrl: 'https://www.thiings.co/_next/image?url=https%3A%2F%2Flftz25oez4aqbxpq.public.blob.vercel-storage.com%2Fimage-2lorEIIaeeDsHDW0gQw4MbmuyVqwXH.png&w=320&q=75',
    gradient: 'from-sky-300/70 to-cyan-400/70',
  },
  {
    category: 'FOOD',
    title: 'One Month Sugar Detox',
    price: 0.99,
    imageUrl: 'https://www.thiings.co/_next/image?url=https%3A%2F%2Flftz25oez4aqbxpq.public.blob.vercel-storage.com%2Fimage-5RC9cCQElsr5G9D6fw15rohV86HSp0.png&w=320&q=75',
    gradient: 'from-rose-400/70 to-red-500/70',
  },
  {
    category: 'PHOTOGRAPHY',
    title: 'Shooting Minimal Instagram Photos',
    price: 0.29,
    imageUrl: 'https://www.thiings.co/_next/image?url=https%3A%2F%2Flftz25oez4aqbxpq.public.blob.vercel-storage.com%2Fimage-qzcaGMjbD8jUVkF6Pr2zNhONiA3NCZ.png&w=320&q=75',
    gradient: 'from-blue-400/70 to-indigo-500/70',
  },
];

export default function ArticleCardGridDemo() {
  return (
    <div className="p-4 md:p-8 bg-background">
        <div className="mb-8">
            <h1 className="text-4xl font-bold text-foreground">Lifestyle.</h1>
            <p className="text-muted-foreground">The latest and best lifestyle articles selected by our editorial office.</p>
        </div>
      <div className="grid grid-cols-1 gap-6 sm:grid-cols-2 lg:grid-cols-3 xl:grid-cols-3">
        {articles.map((article, index) => (
          <ArticleCard
            key={index}
            category={article.category}
            title={article.title}
            price={article.price}
            imageUrl={article.imageUrl}
            gradient={article.gradient}
          />
        ))}
      </div>
    </div>
  );
}

More by Kavi Katiyar

View all
  • 3D Card

    3D Card

    981
  • Bento Product Features

    Bento Product Features

    831
  • Testimonial Slider

    Testimonial Slider

    716
  • Card

    Card

    607
  • Order Confirmation Card

    Order Confirmation Card

    504
  • Project Detail View

    Project Detail View

    408
  • State

    State

    393
  • Animated Card

    Animated Card

    393

More in Cards

View all
  • Statistics Card 2

    Statistics Card 2

    264
  • Course Design Cards

    Course Design Cards

    1.1K
  • Card

    Card

    70
  • Stats cards with links

    Stats cards with links

    39
  • The Item one

    The Item one

    3
  • Card Studio

    Card Studio

    7
  • Statistics Card 7

    Statistics Card 7

    292
  • Item

    Item

    10