# Logo First Card Layout

> A card that leads with the company logo beside your title and dates. Use it when recognizable employers carry weight and you want brands seen first.

A shadcn/ui block from the [@shadcn-ui-blocks](https://www.shadcn-ui-blocks.com) registry, listed on [shadcn.exchange](https://shadcn.exchange/r/shadcn-ui-blocks/portfolio-portfolio-work-experience-cards-logo-first-card-layout).

- Page, with a live preview: https://shadcn.exchange/r/shadcn-ui-blocks/portfolio-portfolio-work-experience-cards-logo-first-card-layout
- Screenshot: https://abzjhwgwpdpz7ua5.public.blob.vercel-storage.com/shots/shadcn-ui-blocks/portfolio-portfolio-work-experience-cards-logo-first-card-layout-light-8fa6f944323d9c78.png
- Registry item: https://www.shadcn-ui-blocks.com/r/portfolio-portfolio-work-experience-cards-logo-first-card-layout.json
- Listed: 2026-10-13, source last changed 2026-10-13

## Install

```bash
npx shadcn@latest add https://www.shadcn-ui-blocks.com/r/portfolio-portfolio-work-experience-cards-logo-first-card-layout.json
```

Run it in a project that has shadcn/ui set up. It adds the files below and installs what they depend on.

## Dependencies

- npm packages: `class-variance-authority`, `radix-ui`

## Files

### `components/blocks/portfolio/portfolio-work-experience-cards/logo-first-card-layout.tsx`

```tsx
import { Badge } from '@/components/ui/badge';

export default function LogoFirstCardLayout() {
  const workExperiences = [
    {
      company: 'Designcraft Studios',
      logo: 'https://images.unsplash.com/photo-1563694983011-6f4d90358083?q=80&w=1287&auto=format&fit=crop&ixlib=rb-4.0.3',
      role: 'Senior UX Designer',
      duration: '2021 - Present',
      description:
        'Lead the design of digital products for enterprise clients, mentoring junior designers and implementing design systems.',
      skills: ['UI/UX Design', 'User Research', 'Design Systems'],
      link: '#',
    },
    {
      company: 'TechInnovate',
      logo: 'https://images.unsplash.com/photo-1454165804606-c3d57bc86b40?q=80&w=1470&auto=format&fit=crop&ixlib=rb-4.0.3',
      role: 'Product Designer',
      duration: '2018 - 2021',
      description:
        'Created wireframes, prototypes, and final designs for mobile and web applications focusing on fintech solutions.',
      skills: ['Wireframing', 'Prototyping', 'Mobile Design'],
      link: '#',
    },
    {
      company: 'CreativeWorks Agency',
      logo: 'https://images.unsplash.com/photo-1460925895917-afdab827c52f?q=80&w=1415&auto=format&fit=crop&ixlib=rb-4.0.3',
      role: 'UI Designer',
      duration: '2016 - 2018',
      description:
        'Designed interfaces for various client websites and applications, collaborating with development teams to ensure quality implementation.',
      skills: ['Web Design', 'Visual Design', 'Brand Guidelines'],
      link: '#',
    },
    {
      company: 'Digital Solutions Inc.',
      logo: 'https://images.unsplash.com/photo-1551836022-d5d88e9218df?q=80&w=1470&auto=format&fit=crop&ixlib=rb-4.0.3',
      role: 'Junior Designer',
      duration: '2014 - 2016',
      description:
        'Assisted senior designers with research, interface design, and creating visual assets for client projects.',
      skills: ['Graphic Design', 'Research', 'Collaboration'],
      link: '#',
    },
  ];

  return (
    <section className="py-16 md:py-24">
      <div className="container mx-auto px-4 md:px-6 2xl:max-w-[1400px]">
        <div className="mb-12 text-center md:mb-16">
          <h2 className="mb-4 text-3xl font-bold tracking-tight sm:text-4xl md:text-5xl">
            Work Experience
          </h2>
          <p className="text-muted-foreground mx-auto max-w-3xl text-lg">
            A chronological overview of my professional journey, highlighting
            key roles and responsibilities.
          </p>
        </div>

        <div className="grid gap-6 sm:grid-cols-2 lg:grid-cols-4">
          {workExperiences.map((experience, index) => (
            <a
              href={experience.link}
              key={index}
              className="bg-card group hover:border-primary flex h-full flex-col overflow-hidden rounded-xl border transition-all hover:shadow-md"
            >
              {/* Company Logo */}
              <div className="bg-muted/25 relative h-44 w-full overflow-hidden">
                <div className="absolute inset-0 flex items-center justify-center p-4">
                  <div className="bg-background relative h-20 w-20 overflow-hidden rounded-full p-1 shadow-sm">
                    <img
                      src={experience.logo}
                      alt={experience.company}
                      className="object-cover p-1"
                    />
                  </div>
                </div>
              </div>

              {/* Experience Details */}
              <div className="flex flex-1 flex-col p-6">
                <h3 className="mb-1 text-xl font-bold">{experience.role}</h3>
                <p className="text-muted-foreground text-sm">
                  {experience.company}
                </p>
                <p className="text-muted-foreground mb-4 text-sm">
                  {experience.duration}
                </p>

                <p className="text-muted-foreground mb-4 flex-1 text-sm">
                  {experience.description}
                </p>

                <div className="mt-auto flex flex-wrap gap-2">
                  {experience.skills.map((skill, skillIndex) => (
                    <Badge key={skillIndex} variant="secondary">
                      {skill}
                    </Badge>
                  ))}
                </div>
              </div>
            </a>
          ))}
        </div>
      </div>
    </section>
  );
}
```

### `components/ui/badge.tsx`

```tsx
import * as React from "react"
import { cva, type VariantProps } from "class-variance-authority"
import { Slot } from "radix-ui"

import { cn } from "@/lib/utils"

const badgeVariants = cva(
  "group/badge inline-flex h-5 w-fit shrink-0 items-center justify-center gap-1 overflow-hidden rounded-4xl border border-transparent px-2 py-0.5 text-xs font-medium whitespace-nowrap transition-all focus-visible:border-ring focus-visible:ring-[3px] focus-visible:ring-ring/50 has-data-[icon=inline-end]:pr-1.5 has-data-[icon=inline-start]:pl-1.5 aria-invalid:border-destructive aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 [&>svg]:pointer-events-none [&>svg]:size-3!",
  {
    variants: {
      variant: {
        default: "bg-primary text-primary-foreground [a]:hover:bg-primary/80",
        secondary:
          "bg-secondary text-secondary-foreground [a]:hover:bg-secondary/80",
        destructive:
          "bg-destructive/10 text-destructive focus-visible:ring-destructive/20 dark:bg-destructive/20 dark:focus-visible:ring-destructive/40 [a]:hover:bg-destructive/20",
        outline:
          "border-border text-foreground [a]:hover:bg-muted [a]:hover:text-muted-foreground",
        ghost:
          "hover:bg-muted hover:text-muted-foreground dark:hover:bg-muted/50",
        link: "text-primary underline-offset-4 hover:underline",
      },
    },
    defaultVariants: {
      variant: "default",
    },
  }
)

function Badge({
  className,
  variant = "default",
  asChild = false,
  ...props
}: React.ComponentProps<"span"> &
  VariantProps<typeof badgeVariants> & { asChild?: boolean }) {
  const Comp = asChild ? Slot.Root : "span"

  return (
    <Comp
      data-slot="badge"
      data-variant={variant}
      className={cn(badgeVariants({ variant }), className)}
      {...props}
    />
  )
}

export { Badge, badgeVariants }
```
