{"$schema":"https://ui.shadcn.com/schema/registry-item.json","name":"portfolio-portfolio-blog-writing-and-previews-minimal-list-dates","type":"registry:block","title":"Minimal List Dates","files":[{"path":"components/blocks/portfolio/portfolio-blog-writing-and-previews/minimal-list-dates.tsx","content":"import { cn } from '@/lib/utils';\nimport { Button } from '@/components/ui/button';\nimport { ChevronRight } from 'lucide-react';\n\nexport default function MinimalListDates() {\n  // Sample blog posts data\n  const posts = [\n    {\n      id: '1',\n      title: 'Creating Accessible Web Applications with React and ARIA',\n      date: 'Apr 15, 2023',\n      category: 'Development',\n      slug: 'creating-accessible-web-applications',\n    },\n    {\n      id: '2',\n      title: 'The Future of Design Systems in 2023',\n      date: 'Mar 28, 2023',\n      category: 'Design',\n      slug: 'future-of-design-systems',\n    },\n    {\n      id: '3',\n      title: 'Optimizing Performance in Next.js Applications',\n      date: 'Mar 12, 2023',\n      category: 'Performance',\n      slug: 'optimizing-nextjs-performance',\n    },\n    {\n      id: '4',\n      title: 'Crafting Effective User Onboarding Experiences',\n      date: 'Feb 24, 2023',\n      category: 'UX Design',\n      slug: 'effective-user-onboarding',\n    },\n    {\n      id: '5',\n      title: 'Building a Design Portfolio That Stands Out',\n      date: 'Feb 10, 2023',\n      category: 'Career',\n      slug: 'design-portfolio-tips',\n    },\n    {\n      id: '6',\n      title: 'Responsive Design in the Age of Foldable Devices',\n      date: 'Jan 28, 2023',\n      category: 'Design',\n      slug: 'responsive-design-foldable-devices',\n    },\n  ];\n\n  const title = 'Writing & Articles';\n  const description = 'A collection of my thoughts, insights, and experiences';\n  const showCategories = true;\n\n  return (\n    <section className=\"w-full py-12\">\n      <div className=\"container mx-auto px-4 md:px-6\">\n        <div className=\"flex flex-col gap-8\">\n          <div className=\"space-y-2\">\n            <h2 className=\"text-3xl font-bold tracking-tight\">{title}</h2>\n            <p className=\"text-muted-foreground max-w-[700px]\">{description}</p>\n          </div>\n\n          <div className=\"border-t\">\n            {posts.map((post, index) => (\n              <a href={'#'} key={post.id}>\n                <article\n                  key={post.id}\n                  className={cn(\n                    'group flex flex-col justify-between py-4 sm:flex-row sm:items-center',\n                    index !== posts.length - 1 && 'border-b'\n                  )}\n                >\n                  <div className=\"min-w-0 flex-1 space-y-1\">\n                    <h3 className=\"text-lg font-medium\">\n                      <div className=\"group-hover:text-primary truncate transition-colors group-hover:underline\">\n                        {post.title}\n                      </div>\n                    </h3>\n                    {showCategories && (\n                      <p className=\"text-muted-foreground text-sm\">\n                        {post.category}\n                      </p>\n                    )}\n                  </div>\n                  <div className=\"mt-2 flex items-center gap-4 sm:mt-0\">\n                    <time\n                      dateTime={post.date}\n                      className=\"text-muted-foreground text-sm whitespace-nowrap\"\n                    >\n                      {post.date}\n                    </time>\n                    <ChevronRight className=\"text-muted-foreground h-4 w-4 opacity-0 transition-opacity group-hover:opacity-100\" />\n                  </div>\n                </article>\n              </a>\n            ))}\n          </div>\n\n          <div className=\"flex justify-center\">\n            <Button asChild variant=\"outline\">\n              <a href=\"#\">View All Articles</a>\n            </Button>\n          </div>\n        </div>\n      </div>\n    </section>\n  );\n}\n","type":"registry:component","target":"components/blocks/portfolio/portfolio-blog-writing-and-previews/minimal-list-dates.tsx"},{"path":"components/ui/button.tsx","content":"import * as React from \"react\"\nimport { cva, type VariantProps } from \"class-variance-authority\"\nimport { Slot } from \"radix-ui\"\n\nimport { cn } from \"@/lib/utils\"\n\nconst buttonVariants = cva(\n  \"group/button inline-flex shrink-0 items-center justify-center rounded-md border border-transparent bg-clip-padding text-sm font-medium whitespace-nowrap transition-all outline-none select-none focus-visible:border-ring focus-visible:ring-3 focus-visible:ring-ring/50 active:not-aria-[haspopup]:translate-y-px disabled:pointer-events-none disabled:opacity-50 aria-invalid:border-destructive aria-invalid:ring-3 aria-invalid:ring-destructive/20 dark:aria-invalid:border-destructive/50 dark:aria-invalid:ring-destructive/40 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4\",\n  {\n    variants: {\n      variant: {\n        default: \"bg-primary text-primary-foreground hover:bg-primary/80\",\n        outline:\n          \"border-border bg-background shadow-xs hover:bg-muted hover:text-foreground aria-expanded:bg-muted aria-expanded:text-foreground dark:border-input dark:bg-input/30 dark:hover:bg-input/50\",\n        secondary:\n          \"bg-secondary text-secondary-foreground hover:bg-secondary/80 aria-expanded:bg-secondary aria-expanded:text-secondary-foreground\",\n        ghost:\n          \"hover:bg-muted hover:text-foreground aria-expanded:bg-muted aria-expanded:text-foreground dark:hover:bg-muted/50\",\n        destructive:\n          \"bg-destructive/10 text-destructive hover:bg-destructive/20 focus-visible:border-destructive/40 focus-visible:ring-destructive/20 dark:bg-destructive/20 dark:hover:bg-destructive/30 dark:focus-visible:ring-destructive/40\",\n        link: \"text-primary underline-offset-4 hover:underline\",\n      },\n      size: {\n        default:\n          \"h-9 gap-1.5 px-2.5 in-data-[slot=button-group]:rounded-md has-data-[icon=inline-end]:pr-2 has-data-[icon=inline-start]:pl-2\",\n        xs: \"h-6 gap-1 rounded-[min(var(--radius-md),8px)] px-2 text-xs in-data-[slot=button-group]:rounded-md has-data-[icon=inline-end]:pr-1.5 has-data-[icon=inline-start]:pl-1.5 [&_svg:not([class*='size-'])]:size-3\",\n        sm: \"h-8 gap-1 rounded-[min(var(--radius-md),10px)] px-2.5 in-data-[slot=button-group]:rounded-md has-data-[icon=inline-end]:pr-1.5 has-data-[icon=inline-start]:pl-1.5\",\n        lg: \"h-10 gap-1.5 px-2.5 has-data-[icon=inline-end]:pr-2 has-data-[icon=inline-start]:pl-2\",\n        icon: \"size-9\",\n        \"icon-xs\":\n          \"size-6 rounded-[min(var(--radius-md),8px)] in-data-[slot=button-group]:rounded-md [&_svg:not([class*='size-'])]:size-3\",\n        \"icon-sm\":\n          \"size-8 rounded-[min(var(--radius-md),10px)] in-data-[slot=button-group]:rounded-md\",\n        \"icon-lg\": \"size-10\",\n      },\n    },\n    defaultVariants: {\n      variant: \"default\",\n      size: \"default\",\n    },\n  }\n)\n\nfunction Button({\n  className,\n  variant = \"default\",\n  size = \"default\",\n  asChild = false,\n  ...props\n}: React.ComponentProps<\"button\"> &\n  VariantProps<typeof buttonVariants> & {\n    asChild?: boolean\n  }) {\n  const Comp = asChild ? Slot.Root : \"button\"\n\n  return (\n    <Comp\n      data-slot=\"button\"\n      data-variant={variant}\n      data-size={size}\n      className={cn(buttonVariants({ variant, size, className }))}\n      {...props}\n    />\n  )\n}\n\nexport { Button, buttonVariants }\n","type":"registry:ui","target":"components/ui/button.tsx"}],"description":"A plain text list of post titles with publish dates beside each one. Use it when you want a fast, distraction free archive of all your writing.","dependencies":["class-variance-authority","lucide-react","radix-ui"]}