About
A cookie consent card where visitors crack a fortune cookie to read their fortune, then accept for a bite or decline and watch it crumble. More like this, plus a designer your coding agent can use, at studios.lou15.com/?ref=21st
Built with React and Tailwind. Copy the prompt and paste it into Claude Code, Cursor or Lovable: your agent adds Fortune Cookie to your project and fits it to your theme.
Code
How Fortune Cookie is used: the demo's code. The component's own source comes with a free account.
Usage.tsx
"use client";
import * as React from "react";
import { FortuneCookie } from "@/components/ui/fortune-cookie";
/** A cookie consent card: crack the fortune cookie to read your fortune, then accept for a bite or decline and watch it crumble. */
export default function FortuneCookieDemo() {
return (
<main className="relative h-screen min-h-[340px] w-full overflow-hidden" style={{ backgroundColor: "#ebe8df" }}>
<FortuneCookie style={{ width: "100%", height: "100%" }} />
</main>
);
}
















