All files / src/features/tutorials TutorialsList.tsx

100% Statements 2/2
100% Branches 0/0
100% Functions 2/2
100% Lines 2/2

Press n or j to go to the next uncovered block, b, p or k for the previous block.

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25          1x     3x                                
import Link from "next/link";
import { Card } from "@/components/ui";
import { TUTORIALS } from "./tutorials";
 
export function TutorialsList() {
  return (
    <div className="grid grid-cols-1 gap-3 sm:grid-cols-2">
      {TUTORIALS.map((tutorial) => (
        <Link key={tutorial.slug} href={tutorial.href} className="group block h-full">
          <Card
            interactive
            padding="md"
            className="flex h-full flex-col gap-2 transition-colors group-hover:border-primary"
          >
            <div className="flex items-start justify-between gap-3">
              <h2 className="text-lg text-ink">{tutorial.title}</h2>
            </div>
            <p className="text-sm text-ink-soft">{tutorial.description}</p>
          </Card>
        </Link>
      ))}
    </div>
  );
}