ham7a311

Lesson Summary

Component

About

An end-of-lesson results screen that counts up XP, accuracy and time in three animated tiles and shows the week's streak with a daily goal tracker.

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

Code

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

Usage.tsx

"use client";
import LessonSummary from "@/components/ui/lesson-summary";

export default function LessonSummaryDemo() {
  return (
    <div className="min-h-screen w-full flex items-center justify-center bg-background text-foreground">
      <LessonSummary
        xp={27}
        accuracy={94}
        seconds={104}
        streak={6}
        week={[false, true, true, true, true, true, true]}
        dayLabels={["T", "F", "S", "S", "M", "T", "W"]}
        theme="light"
      />
    </div>
  );
}

More by ham7a311

View all
  • Route Globe

    Route Globe

    12
  • Wave Mesh

    Wave Mesh

    7
  • Uptime Ribbon

    Uptime Ribbon

    6
  • Glass Carousel

    Glass Carousel

    6
  • Glass Tiles

    Glass Tiles

    6
  • Streak Field Stats

    Streak Field Stats

    5
  • Wind Map

    Wind Map

    5
  • Time Window

    Time Window

    4