@medialane/ui 0.9.0 → 0.9.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components/launchpad-services.cjs +53 -38
- package/dist/components/launchpad-services.cjs.map +1 -1
- package/dist/components/launchpad-services.d.cts +5 -3
- package/dist/components/launchpad-services.d.ts +5 -3
- package/dist/components/launchpad-services.js +53 -38
- package/dist/components/launchpad-services.js.map +1 -1
- package/package.json +1 -1
|
@@ -40,19 +40,23 @@ var import_framer_motion = require("framer-motion");
|
|
|
40
40
|
var import_lucide_react = require("lucide-react");
|
|
41
41
|
var import_cn = require("../utils/cn.js");
|
|
42
42
|
var import_launchpad_services = require("../data/launchpad-services.js");
|
|
43
|
-
const DEFAULT_HUE = {
|
|
43
|
+
const DEFAULT_HUE = {
|
|
44
|
+
text: "text-sky-600 dark:text-sky-400",
|
|
45
|
+
solid: "bg-sky-500",
|
|
46
|
+
ring: "from-sky-500/60 via-sky-400/15 to-sky-600/40"
|
|
47
|
+
};
|
|
44
48
|
const SERVICE_HUES = {
|
|
45
|
-
"mint-ip-asset": { text: "text-sky-600 dark:text-sky-400",
|
|
46
|
-
"create-collection": { text: "text-violet-600 dark:text-violet-400",
|
|
47
|
-
"ip-collection-1155": { text: "text-rose-600 dark:text-rose-400",
|
|
48
|
-
"mint-editions": { text: "text-amber-600 dark:text-amber-400",
|
|
49
|
-
"creator-coins": { text: "text-pink-600 dark:text-pink-400",
|
|
50
|
-
"claim-memecoin": { text: "text-teal-600 dark:text-teal-400",
|
|
51
|
-
"collection-drop": { text: "text-orange-600 dark:text-orange-400",
|
|
52
|
-
"pop-protocol": { text: "text-emerald-600 dark:text-emerald-400",
|
|
53
|
-
"remix-asset": { text: "text-indigo-600 dark:text-indigo-400",
|
|
54
|
-
"claim-username": { text: "text-purple-600 dark:text-purple-400",
|
|
55
|
-
"claim-collection": { text: "text-cyan-600 dark:text-cyan-400",
|
|
49
|
+
"mint-ip-asset": { text: "text-sky-600 dark:text-sky-400", solid: "bg-sky-500", ring: "from-sky-500/60 via-sky-400/15 to-sky-600/40" },
|
|
50
|
+
"create-collection": { text: "text-violet-600 dark:text-violet-400", solid: "bg-violet-500", ring: "from-violet-500/60 via-violet-400/15 to-violet-600/40" },
|
|
51
|
+
"ip-collection-1155": { text: "text-rose-600 dark:text-rose-400", solid: "bg-rose-500", ring: "from-rose-500/60 via-rose-400/15 to-rose-600/40" },
|
|
52
|
+
"mint-editions": { text: "text-amber-600 dark:text-amber-400", solid: "bg-amber-500", ring: "from-amber-500/60 via-amber-400/15 to-amber-600/40" },
|
|
53
|
+
"creator-coins": { text: "text-pink-600 dark:text-pink-400", solid: "bg-pink-500", ring: "from-pink-500/60 via-pink-400/15 to-pink-600/40" },
|
|
54
|
+
"claim-memecoin": { text: "text-teal-600 dark:text-teal-400", solid: "bg-teal-500", ring: "from-teal-500/60 via-teal-400/15 to-teal-600/40" },
|
|
55
|
+
"collection-drop": { text: "text-orange-600 dark:text-orange-400", solid: "bg-orange-500", ring: "from-orange-500/60 via-orange-400/15 to-orange-600/40" },
|
|
56
|
+
"pop-protocol": { text: "text-emerald-600 dark:text-emerald-400", solid: "bg-emerald-500", ring: "from-emerald-500/60 via-emerald-400/15 to-emerald-600/40" },
|
|
57
|
+
"remix-asset": { text: "text-indigo-600 dark:text-indigo-400", solid: "bg-indigo-500", ring: "from-indigo-500/60 via-indigo-400/15 to-indigo-600/40" },
|
|
58
|
+
"claim-username": { text: "text-purple-600 dark:text-purple-400", solid: "bg-purple-500", ring: "from-purple-500/60 via-purple-400/15 to-purple-600/40" },
|
|
59
|
+
"claim-collection": { text: "text-cyan-600 dark:text-cyan-400", solid: "bg-cyan-500", ring: "from-cyan-500/60 via-cyan-400/15 to-cyan-600/40" }
|
|
56
60
|
};
|
|
57
61
|
function LaunchpadServiceCard({ def, override = {} }) {
|
|
58
62
|
const { key, icon: Icon, title, browseLinkLabel } = def;
|
|
@@ -61,41 +65,52 @@ function LaunchpadServiceCard({ def, override = {} }) {
|
|
|
61
65
|
const { href, browseHref } = override;
|
|
62
66
|
const live = status === "live";
|
|
63
67
|
const hue = SERVICE_HUES[key] ?? DEFAULT_HUE;
|
|
64
|
-
|
|
68
|
+
const card = /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(
|
|
65
69
|
"div",
|
|
66
70
|
{
|
|
67
71
|
className: (0, import_cn.cn)(
|
|
68
|
-
"relative rounded-
|
|
69
|
-
"
|
|
70
|
-
live ? "active:scale-[0.99]" : "opacity-
|
|
72
|
+
"relative rounded-[15px] bg-card overflow-hidden flex flex-col flex-1 min-h-[210px]",
|
|
73
|
+
"transition-transform",
|
|
74
|
+
live ? "active:scale-[0.99]" : "opacity-70"
|
|
71
75
|
),
|
|
72
76
|
children: [
|
|
73
|
-
/* @__PURE__ */ (0, import_jsx_runtime.
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
"
|
|
77
|
+
live && /* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", { "aria-hidden": true, className: (0, import_cn.cn)("absolute inset-0 pointer-events-none bg-gradient-to-br to-transparent opacity-[0.07]", hue.solid.replace("bg-", "from-")) }),
|
|
78
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", { "aria-hidden": true, className: "absolute -right-8 -bottom-10 opacity-[0.05] select-none pointer-events-none", children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Icon, { className: "h-44 w-44" }) }),
|
|
79
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", { className: "relative flex flex-col flex-1 p-6 gap-4", children: [
|
|
80
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", { className: "flex items-start justify-between gap-3", children: [
|
|
81
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", { className: "relative", children: [
|
|
82
|
+
live && /* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", { "aria-hidden": true, className: (0, import_cn.cn)("absolute -inset-3 rounded-full blur-2xl opacity-30", hue.solid) }),
|
|
83
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(Icon, { className: (0, import_cn.cn)("relative h-9 w-9 shrink-0", live ? hue.text : "text-muted-foreground/50") })
|
|
84
|
+
] }),
|
|
85
|
+
!live && /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("span", { className: "flex items-center gap-1 text-[11px] font-medium text-muted-foreground/60 pt-1", children: [
|
|
86
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_lucide_react.Lock, { className: "h-3 w-3" }),
|
|
87
|
+
"Coming soon"
|
|
88
|
+
] })
|
|
89
|
+
] }),
|
|
90
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", { className: "space-y-1.5", children: [
|
|
91
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)("h3", { className: "text-2xl font-bold tracking-tight leading-snug", children: title }),
|
|
92
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)("p", { className: (0, import_cn.cn)("text-[15px] leading-relaxed max-w-[34ch]", live ? "text-muted-foreground" : "text-muted-foreground/60"), children: blurb })
|
|
93
|
+
] }),
|
|
94
|
+
live && href && /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_link.default, { href, "aria-label": title, className: "absolute inset-0 z-10" }),
|
|
95
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", { className: "mt-auto pt-1 flex items-end justify-between", children: [
|
|
96
|
+
live && browseHref && browseLinkLabel ? /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(
|
|
97
|
+
import_link.default,
|
|
98
|
+
{
|
|
99
|
+
href: browseHref,
|
|
100
|
+
className: "relative z-20 inline-flex items-center gap-1 text-xs font-medium text-muted-foreground active:text-foreground",
|
|
101
|
+
children: [
|
|
102
|
+
browseLinkLabel,
|
|
103
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_lucide_react.ArrowRight, { className: "h-3 w-3" })
|
|
104
|
+
]
|
|
105
|
+
}
|
|
106
|
+
) : /* @__PURE__ */ (0, import_jsx_runtime.jsx)("span", {}),
|
|
107
|
+
live && /* @__PURE__ */ (0, import_jsx_runtime.jsx)("span", { className: (0, import_cn.cn)("h-11 w-11 shrink-0 rounded-full flex items-center justify-center shadow-lg shadow-black/20", hue.solid), children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_lucide_react.ArrowUpRight, { className: "h-5 w-5 text-white" }) })
|
|
78
108
|
] })
|
|
79
|
-
] })
|
|
80
|
-
/* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", { className: "space-y-1", children: [
|
|
81
|
-
/* @__PURE__ */ (0, import_jsx_runtime.jsx)("h3", { className: "text-lg font-bold tracking-tight leading-snug", children: title }),
|
|
82
|
-
/* @__PURE__ */ (0, import_jsx_runtime.jsx)("p", { className: (0, import_cn.cn)("text-sm leading-relaxed", live ? "text-muted-foreground" : "text-muted-foreground/60"), children: blurb })
|
|
83
|
-
] }),
|
|
84
|
-
live && href && /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_link.default, { href, "aria-label": title, className: "absolute inset-0 z-10 rounded-2xl" }),
|
|
85
|
-
live && browseHref && browseLinkLabel && /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(
|
|
86
|
-
import_link.default,
|
|
87
|
-
{
|
|
88
|
-
href: browseHref,
|
|
89
|
-
className: "relative z-20 mt-auto self-start inline-flex items-center gap-1 text-xs font-medium text-muted-foreground active:text-foreground",
|
|
90
|
-
children: [
|
|
91
|
-
browseLinkLabel,
|
|
92
|
-
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_lucide_react.ArrowRight, { className: "h-3 w-3" })
|
|
93
|
-
]
|
|
94
|
-
}
|
|
95
|
-
)
|
|
109
|
+
] })
|
|
96
110
|
]
|
|
97
111
|
}
|
|
98
112
|
);
|
|
113
|
+
return live ? /* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", { className: (0, import_cn.cn)("p-[1px] rounded-2xl bg-gradient-to-br flex flex-col", hue.ring), children: card }) : /* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", { className: "rounded-2xl border border-border/30 flex flex-col", children: card });
|
|
99
114
|
}
|
|
100
115
|
function GroupHeader({ group }) {
|
|
101
116
|
return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", { className: "space-y-1", children: [
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/components/launchpad-services.tsx"],"sourcesContent":["\"use client\";\n\n/**\n * Launchpad grouped services — the single source for the /launchpad page UI\n * in medialane-io and medialane-dapp.\n *\n * Card philosophy (creator-first redesign, 2026-06-10): the whole card is the\n * action. One title, one creator-language sentence (def.blurb), one unique hue\n * per service — no buttons repeating the title, no status badges, no tech\n * chips, no hover-only effects (mobile first: press states only).\n *\n * Apps own: hrefs + per-app rollout status flips. Everything else lives here.\n */\n\nimport Link from \"next/link\";\nimport { motion } from \"framer-motion\";\nimport { Lock, ArrowUpRight, ArrowRight } from \"lucide-react\";\nimport { cn } from \"../utils/cn.js\";\nimport {\n LAUNCHPAD_SERVICE_DEFINITIONS,\n LAUNCHPAD_SERVICE_GROUPS,\n type ServiceDefinition,\n type ServiceGroupDefinition,\n type ServiceStatus,\n} from \"../data/launchpad-services.js\";\n\n// ── Per-app injection points ─────────────────────────────────────────────────\n\nexport interface ServiceOverride {\n /** Primary destination — the whole card links here (required for live services) */\n href?: string;\n /** Secondary browse link href (pairs with the def's browseLinkLabel) */\n browseHref?: string;\n /** Per-app rollout flips (e.g. coins live on one app first) */\n status?: ServiceStatus;\n /** Per-app one-liner override (rarely needed) */\n blurb?: string;\n}\n\nexport type ServiceOverrides = Record<string, ServiceOverride>;\n\n// ── One unique hue per service — never repeated inside a group ───────────────\n\ninterface ServiceHue {\n /** icon + arrow tint (600 for light surfaces, 400 for dark) */\n text: string;\n /** soft circle behind the arrow */\n bg: string;\n}\n\nconst DEFAULT_HUE: ServiceHue = { text: \"text-sky-600 dark:text-sky-400\", bg: \"bg-sky-500/10\" };\n\nexport const SERVICE_HUES: Record<string, ServiceHue> = {\n \"mint-ip-asset\": { text: \"text-sky-600 dark:text-sky-400\", bg: \"bg-sky-500/10\" },\n \"create-collection\": { text: \"text-violet-600 dark:text-violet-400\", bg: \"bg-violet-500/10\" },\n \"ip-collection-1155\": { text: \"text-rose-600 dark:text-rose-400\", bg: \"bg-rose-500/10\" },\n \"mint-editions\": { text: \"text-amber-600 dark:text-amber-400\", bg: \"bg-amber-500/10\" },\n \"creator-coins\": { text: \"text-pink-600 dark:text-pink-400\", bg: \"bg-pink-500/10\" },\n \"claim-memecoin\": { text: \"text-teal-600 dark:text-teal-400\", bg: \"bg-teal-500/10\" },\n \"collection-drop\": { text: \"text-orange-600 dark:text-orange-400\", bg: \"bg-orange-500/10\" },\n \"pop-protocol\": { text: \"text-emerald-600 dark:text-emerald-400\", bg: \"bg-emerald-500/10\" },\n \"remix-asset\": { text: \"text-indigo-600 dark:text-indigo-400\", bg: \"bg-indigo-500/10\" },\n \"claim-username\": { text: \"text-purple-600 dark:text-purple-400\", bg: \"bg-purple-500/10\" },\n \"claim-collection\": { text: \"text-cyan-600 dark:text-cyan-400\", bg: \"bg-cyan-500/10\" },\n};\n\n// ── Service card — the whole card is the action ─────────────────────────────\n\nexport interface LaunchpadServiceCardProps {\n def: ServiceDefinition;\n override?: ServiceOverride;\n}\n\nexport function LaunchpadServiceCard({ def, override = {} }: LaunchpadServiceCardProps) {\n const { key, icon: Icon, title, browseLinkLabel } = def;\n const status = override.status ?? def.status;\n const blurb = override.blurb ?? def.blurb;\n const { href, browseHref } = override;\n\n const live = status === \"live\";\n const hue = SERVICE_HUES[key] ?? DEFAULT_HUE;\n\n return (\n <div\n className={cn(\n \"relative rounded-2xl border border-border/60 bg-card p-5 sm:p-6\",\n \"flex flex-col gap-3 transition-transform\",\n live ? \"active:scale-[0.99]\" : \"opacity-60\",\n )}\n >\n <div className=\"flex items-start justify-between gap-3\">\n <Icon className={cn(\"h-7 w-7 shrink-0\", live ? hue.text : \"text-muted-foreground/50\")} />\n {live ? (\n <span className={cn(\"h-9 w-9 shrink-0 rounded-full flex items-center justify-center\", hue.bg)}>\n <ArrowUpRight className={cn(\"h-4 w-4\", hue.text)} />\n </span>\n ) : (\n <span className=\"flex items-center gap-1 text-[11px] font-medium text-muted-foreground/60 pt-1\">\n <Lock className=\"h-3 w-3\" />\n Coming soon\n </span>\n )}\n </div>\n\n <div className=\"space-y-1\">\n <h3 className=\"text-lg font-bold tracking-tight leading-snug\">{title}</h3>\n <p className={cn(\"text-sm leading-relaxed\", live ? \"text-muted-foreground\" : \"text-muted-foreground/60\")}>\n {blurb}\n </p>\n </div>\n\n {/* Stretched link — makes the whole card the action without nesting anchors */}\n {live && href && <Link href={href} aria-label={title} className=\"absolute inset-0 z-10 rounded-2xl\" />}\n\n {live && browseHref && browseLinkLabel && (\n <Link\n href={browseHref}\n className=\"relative z-20 mt-auto self-start inline-flex items-center gap-1 text-xs font-medium text-muted-foreground active:text-foreground\"\n >\n {browseLinkLabel}\n <ArrowRight className=\"h-3 w-3\" />\n </Link>\n )}\n </div>\n );\n}\n\n// ── Group sections ───────────────────────────────────────────────────────────\n\nfunction GroupHeader({ group }: { group: ServiceGroupDefinition }) {\n return (\n <div className=\"space-y-1\">\n <h2 className=\"text-xl font-bold tracking-tight\">{group.title}</h2>\n <p className=\"text-sm text-muted-foreground\">{group.tagline}</p>\n </div>\n );\n}\n\nfunction ComingSoonStrip({ group, defs }: { group: ServiceGroupDefinition; defs: ServiceDefinition[] }) {\n return (\n <div className=\"rounded-2xl border border-border/40 p-5\">\n <p className=\"font-semibold text-sm\">{group.title}</p>\n <p className=\"text-sm text-muted-foreground mt-0.5\">{group.tagline}</p>\n <div className=\"flex flex-wrap gap-2 mt-4\">\n {defs.map(({ key, icon: Icon, title }) => (\n <div key={key} className=\"flex items-center gap-2 px-3 py-2 rounded-full bg-muted/30 border border-border/25\">\n <Icon className=\"h-3.5 w-3.5 text-muted-foreground/60\" />\n <span className=\"text-xs font-medium text-muted-foreground\">{title}</span>\n </div>\n ))}\n </div>\n </div>\n );\n}\n\nexport interface LaunchpadGroupedSectionsProps {\n /** Per-app hrefs / rollout flips, keyed by service key. */\n overrides: ServiceOverrides;\n className?: string;\n}\n\n/** The full grouped launchpad services block — section order comes from\n * LAUNCHPAD_SERVICE_GROUPS; cards from LAUNCHPAD_SERVICE_DEFINITIONS. */\nexport function LaunchpadGroupedSections({ overrides, className }: LaunchpadGroupedSectionsProps) {\n return (\n <div className={cn(\"space-y-10\", className)}>\n {LAUNCHPAD_SERVICE_GROUPS.map((group) => {\n const defs = LAUNCHPAD_SERVICE_DEFINITIONS.filter((d) => d.group === group.key);\n if (defs.length === 0) return null;\n if (group.key === \"coming-soon\") {\n return <ComingSoonStrip key={group.key} group={group} defs={defs} />;\n }\n return (\n <motion.div\n key={group.key}\n initial={{ opacity: 0, y: 8 }}\n animate={{ opacity: 1, y: 0 }}\n transition={{ duration: 0.3, ease: [0.25, 0.46, 0.45, 0.94] }}\n className=\"space-y-4\"\n >\n <GroupHeader group={group} />\n <div className=\"grid grid-cols-1 sm:grid-cols-2 gap-4\">\n {defs.map((def) => (\n <LaunchpadServiceCard key={def.key} def={def} override={overrides[def.key]} />\n ))}\n </div>\n </motion.div>\n );\n })}\n </div>\n );\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AA2FQ;AA7ER,kBAAiB;AACjB,2BAAuB;AACvB,0BAA+C;AAC/C,gBAAmB;AACnB,gCAMO;AA0BP,MAAM,cAA0B,EAAE,MAAM,kCAAkC,IAAI,gBAAgB;AAEvF,MAAM,eAA2C;AAAA,EACtD,iBAAiB,EAAE,MAAM,kCAAkC,IAAI,gBAAgB;AAAA,EAC/E,qBAAqB,EAAE,MAAM,wCAAwC,IAAI,mBAAmB;AAAA,EAC5F,sBAAsB,EAAE,MAAM,oCAAoC,IAAI,iBAAiB;AAAA,EACvF,iBAAiB,EAAE,MAAM,s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AAO;AAC9B,QAAI,MAAM,QAAQ,eAAe;AAC/B,aAAO,4CAAC,mBAAgC,OAAc,QAAzB,MAAM,GAA+B;AAAA,IACpE;AACA,WACE;AAAA,MAAC,4BAAO;AAAA,MAAP;AAAA,QAEC,SAAS,EAAE,SAAS,GAAG,GAAG,EAAE;AAAA,QAC5B,SAAS,EAAE,SAAS,GAAG,GAAG,EAAE;AAAA,QAC5B,YAAY,EAAE,UAAU,KAAK,MAAM,CAAC,MAAM,MAAM,MAAM,IAAI,EAAE;AAAA,QAC5D,WAAU;AAAA,QAEV;AAAA,sDAAC,eAAY,OAAc;AAAA,UAC3B,4CAAC,SAAI,WAAU,yCACZ,eAAK,IAAI,CAAC,QACT,4CAAC,wBAAmC,KAAU,UAAU,UAAU,IAAI,GAAG,KAA9C,IAAI,GAA6C,CAC7E,GACH;AAAA;AAAA;AAAA,MAXK,MAAM;AAAA,IAYb;AAAA,EAEJ,CAAC,GACH;AAEJ;","names":["Link"]}
|
|
1
|
+
{"version":3,"sources":["../../src/components/launchpad-services.tsx"],"sourcesContent":["\"use client\";\n\n/**\n * Launchpad grouped services — the single source for the /launchpad page UI\n * in medialane-io and medialane-dapp.\n *\n * Card philosophy (creator-first redesign, 2026-06-10): the whole card is the\n * action. One title, one creator-language sentence (def.blurb), one unique hue\n * per service — no buttons repeating the title, no status badges, no tech\n * chips, no hover-only effects (mobile first: press states only).\n *\n * Apps own: hrefs + per-app rollout status flips. Everything else lives here.\n */\n\nimport Link from \"next/link\";\nimport { motion } from \"framer-motion\";\nimport { Lock, ArrowUpRight, ArrowRight } from \"lucide-react\";\nimport { cn } from \"../utils/cn.js\";\nimport {\n LAUNCHPAD_SERVICE_DEFINITIONS,\n LAUNCHPAD_SERVICE_GROUPS,\n type ServiceDefinition,\n type ServiceGroupDefinition,\n type ServiceStatus,\n} from \"../data/launchpad-services.js\";\n\n// ── Per-app injection points ─────────────────────────────────────────────────\n\nexport interface ServiceOverride {\n /** Primary destination — the whole card links here (required for live services) */\n href?: string;\n /** Secondary browse link href (pairs with the def's browseLinkLabel) */\n browseHref?: string;\n /** Per-app rollout flips (e.g. coins live on one app first) */\n status?: ServiceStatus;\n /** Per-app one-liner override (rarely needed) */\n blurb?: string;\n}\n\nexport type ServiceOverrides = Record<string, ServiceOverride>;\n\n// ── One unique hue per service — never repeated inside a group ───────────────\n\ninterface ServiceHue {\n /** icon + link tint (600 for light surfaces, 400 for dark) */\n text: string;\n /** solid fill — the arrow action + icon glow */\n solid: string;\n /** gradient ring around live cards */\n ring: string;\n}\n\nconst DEFAULT_HUE: ServiceHue = {\n text: \"text-sky-600 dark:text-sky-400\",\n solid: \"bg-sky-500\",\n ring: \"from-sky-500/60 via-sky-400/15 to-sky-600/40\",\n};\n\nexport const SERVICE_HUES: Record<string, ServiceHue> = {\n \"mint-ip-asset\": { text: \"text-sky-600 dark:text-sky-400\", solid: \"bg-sky-500\", ring: \"from-sky-500/60 via-sky-400/15 to-sky-600/40\" },\n \"create-collection\": { text: \"text-violet-600 dark:text-violet-400\", solid: \"bg-violet-500\", ring: \"from-violet-500/60 via-violet-400/15 to-violet-600/40\" },\n \"ip-collection-1155\": { text: \"text-rose-600 dark:text-rose-400\", solid: \"bg-rose-500\", ring: \"from-rose-500/60 via-rose-400/15 to-rose-600/40\" },\n \"mint-editions\": { text: \"text-amber-600 dark:text-amber-400\", solid: \"bg-amber-500\", ring: \"from-amber-500/60 via-amber-400/15 to-amber-600/40\" },\n \"creator-coins\": { text: \"text-pink-600 dark:text-pink-400\", solid: \"bg-pink-500\", ring: \"from-pink-500/60 via-pink-400/15 to-pink-600/40\" },\n \"claim-memecoin\": { text: \"text-teal-600 dark:text-teal-400\", solid: \"bg-teal-500\", ring: \"from-teal-500/60 via-teal-400/15 to-teal-600/40\" },\n \"collection-drop\": { text: \"text-orange-600 dark:text-orange-400\", solid: \"bg-orange-500\", ring: \"from-orange-500/60 via-orange-400/15 to-orange-600/40\" },\n \"pop-protocol\": { text: \"text-emerald-600 dark:text-emerald-400\", solid: \"bg-emerald-500\", ring: \"from-emerald-500/60 via-emerald-400/15 to-emerald-600/40\" },\n \"remix-asset\": { text: \"text-indigo-600 dark:text-indigo-400\", solid: \"bg-indigo-500\", ring: \"from-indigo-500/60 via-indigo-400/15 to-indigo-600/40\" },\n \"claim-username\": { text: \"text-purple-600 dark:text-purple-400\", solid: \"bg-purple-500\", ring: \"from-purple-500/60 via-purple-400/15 to-purple-600/40\" },\n \"claim-collection\": { text: \"text-cyan-600 dark:text-cyan-400\", solid: \"bg-cyan-500\", ring: \"from-cyan-500/60 via-cyan-400/15 to-cyan-600/40\" },\n};\n\n// ── Service card — the whole card is the action ─────────────────────────────\n\nexport interface LaunchpadServiceCardProps {\n def: ServiceDefinition;\n override?: ServiceOverride;\n}\n\nexport function LaunchpadServiceCard({ def, override = {} }: LaunchpadServiceCardProps) {\n const { key, icon: Icon, title, browseLinkLabel } = def;\n const status = override.status ?? def.status;\n const blurb = override.blurb ?? def.blurb;\n const { href, browseHref } = override;\n\n const live = status === \"live\";\n const hue = SERVICE_HUES[key] ?? DEFAULT_HUE;\n\n const card = (\n <div\n className={cn(\n \"relative rounded-[15px] bg-card overflow-hidden flex flex-col flex-1 min-h-[210px]\",\n \"transition-transform\",\n live ? \"active:scale-[0.99]\" : \"opacity-70\",\n )}\n >\n {/* Soft hue tint — same language as the Drop Pages panel */}\n {live && (\n <div aria-hidden className={cn(\"absolute inset-0 pointer-events-none bg-gradient-to-br to-transparent opacity-[0.07]\", hue.solid.replace(\"bg-\", \"from-\"))} />\n )}\n {/* Giant watermark icon, ghosted in the corner */}\n <div aria-hidden className=\"absolute -right-8 -bottom-10 opacity-[0.05] select-none pointer-events-none\">\n <Icon className=\"h-44 w-44\" />\n </div>\n\n <div className=\"relative flex flex-col flex-1 p-6 gap-4\">\n <div className=\"flex items-start justify-between gap-3\">\n <div className=\"relative\">\n {live && (\n <div aria-hidden className={cn(\"absolute -inset-3 rounded-full blur-2xl opacity-30\", hue.solid)} />\n )}\n <Icon className={cn(\"relative h-9 w-9 shrink-0\", live ? hue.text : \"text-muted-foreground/50\")} />\n </div>\n {!live && (\n <span className=\"flex items-center gap-1 text-[11px] font-medium text-muted-foreground/60 pt-1\">\n <Lock className=\"h-3 w-3\" />\n Coming soon\n </span>\n )}\n </div>\n\n <div className=\"space-y-1.5\">\n <h3 className=\"text-2xl font-bold tracking-tight leading-snug\">{title}</h3>\n <p className={cn(\"text-[15px] leading-relaxed max-w-[34ch]\", live ? \"text-muted-foreground\" : \"text-muted-foreground/60\")}>\n {blurb}\n </p>\n </div>\n\n {/* Stretched link — the whole card is the action, no title-repeating button */}\n {live && href && <Link href={href} aria-label={title} className=\"absolute inset-0 z-10\" />}\n\n <div className=\"mt-auto pt-1 flex items-end justify-between\">\n {live && browseHref && browseLinkLabel ? (\n <Link\n href={browseHref}\n className=\"relative z-20 inline-flex items-center gap-1 text-xs font-medium text-muted-foreground active:text-foreground\"\n >\n {browseLinkLabel}\n <ArrowRight className=\"h-3 w-3\" />\n </Link>\n ) : (\n <span />\n )}\n {live && (\n <span className={cn(\"h-11 w-11 shrink-0 rounded-full flex items-center justify-center shadow-lg shadow-black/20\", hue.solid)}>\n <ArrowUpRight className=\"h-5 w-5 text-white\" />\n </span>\n )}\n </div>\n </div>\n </div>\n );\n\n return live ? (\n <div className={cn(\"p-[1px] rounded-2xl bg-gradient-to-br flex flex-col\", hue.ring)}>\n {card}\n </div>\n ) : (\n <div className=\"rounded-2xl border border-border/30 flex flex-col\">{card}</div>\n );\n}\n\n// ── Group sections ───────────────────────────────────────────────────────────\n\nfunction GroupHeader({ group }: { group: ServiceGroupDefinition }) {\n return (\n <div className=\"space-y-1\">\n <h2 className=\"text-xl font-bold tracking-tight\">{group.title}</h2>\n <p className=\"text-sm text-muted-foreground\">{group.tagline}</p>\n </div>\n );\n}\n\nfunction ComingSoonStrip({ group, defs }: { group: ServiceGroupDefinition; defs: ServiceDefinition[] }) {\n return (\n <div className=\"rounded-2xl border border-border/40 p-5\">\n <p className=\"font-semibold text-sm\">{group.title}</p>\n <p className=\"text-sm text-muted-foreground mt-0.5\">{group.tagline}</p>\n <div className=\"flex flex-wrap gap-2 mt-4\">\n {defs.map(({ key, icon: Icon, title }) => (\n <div key={key} className=\"flex items-center gap-2 px-3 py-2 rounded-full bg-muted/30 border border-border/25\">\n <Icon className=\"h-3.5 w-3.5 text-muted-foreground/60\" />\n <span className=\"text-xs font-medium text-muted-foreground\">{title}</span>\n </div>\n ))}\n </div>\n </div>\n );\n}\n\nexport interface LaunchpadGroupedSectionsProps {\n /** Per-app hrefs / rollout flips, keyed by service key. */\n overrides: ServiceOverrides;\n className?: string;\n}\n\n/** The full grouped launchpad services block — section order comes from\n * LAUNCHPAD_SERVICE_GROUPS; cards from LAUNCHPAD_SERVICE_DEFINITIONS. */\nexport function LaunchpadGroupedSections({ overrides, className }: LaunchpadGroupedSectionsProps) {\n return (\n <div className={cn(\"space-y-10\", className)}>\n {LAUNCHPAD_SERVICE_GROUPS.map((group) => {\n const defs = LAUNCHPAD_SERVICE_DEFINITIONS.filter((d) => d.group === group.key);\n if (defs.length === 0) return null;\n if (group.key === \"coming-soon\") {\n return <ComingSoonStrip key={group.key} group={group} defs={defs} />;\n }\n return (\n <motion.div\n key={group.key}\n initial={{ opacity: 0, y: 8 }}\n animate={{ opacity: 1, y: 0 }}\n transition={{ duration: 0.3, ease: [0.25, 0.46, 0.45, 0.94] }}\n className=\"space-y-4\"\n >\n <GroupHeader group={group} />\n <div className=\"grid grid-cols-1 sm:grid-cols-2 gap-4\">\n {defs.map((def) => (\n <LaunchpadServiceCard key={def.key} def={def} override={overrides[def.key]} />\n ))}\n </div>\n </motion.div>\n );\n })}\n </div>\n );\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAkGQ;AApFR,kBAAiB;AACjB,2BAAuB;AACvB,0BAA+C;AAC/C,gBAAmB;AACnB,gCAMO;AA4BP,MA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AAAA,QAC5B,YAAY,EAAE,UAAU,KAAK,MAAM,CAAC,MAAM,MAAM,MAAM,IAAI,EAAE;AAAA,QAC5D,WAAU;AAAA,QAEV;AAAA,sDAAC,eAAY,OAAc;AAAA,UAC3B,4CAAC,SAAI,WAAU,yCACZ,eAAK,IAAI,CAAC,QACT,4CAAC,wBAAmC,KAAU,UAAU,UAAU,IAAI,GAAG,KAA9C,IAAI,GAA6C,CAC7E,GACH;AAAA;AAAA;AAAA,MAXK,MAAM;AAAA,IAYb;AAAA,EAEJ,CAAC,GACH;AAEJ;","names":["Link"]}
|
|
@@ -14,10 +14,12 @@ interface ServiceOverride {
|
|
|
14
14
|
}
|
|
15
15
|
type ServiceOverrides = Record<string, ServiceOverride>;
|
|
16
16
|
interface ServiceHue {
|
|
17
|
-
/** icon +
|
|
17
|
+
/** icon + link tint (600 for light surfaces, 400 for dark) */
|
|
18
18
|
text: string;
|
|
19
|
-
/**
|
|
20
|
-
|
|
19
|
+
/** solid fill — the arrow action + icon glow */
|
|
20
|
+
solid: string;
|
|
21
|
+
/** gradient ring around live cards */
|
|
22
|
+
ring: string;
|
|
21
23
|
}
|
|
22
24
|
declare const SERVICE_HUES: Record<string, ServiceHue>;
|
|
23
25
|
interface LaunchpadServiceCardProps {
|
|
@@ -14,10 +14,12 @@ interface ServiceOverride {
|
|
|
14
14
|
}
|
|
15
15
|
type ServiceOverrides = Record<string, ServiceOverride>;
|
|
16
16
|
interface ServiceHue {
|
|
17
|
-
/** icon +
|
|
17
|
+
/** icon + link tint (600 for light surfaces, 400 for dark) */
|
|
18
18
|
text: string;
|
|
19
|
-
/**
|
|
20
|
-
|
|
19
|
+
/** solid fill — the arrow action + icon glow */
|
|
20
|
+
solid: string;
|
|
21
|
+
/** gradient ring around live cards */
|
|
22
|
+
ring: string;
|
|
21
23
|
}
|
|
22
24
|
declare const SERVICE_HUES: Record<string, ServiceHue>;
|
|
23
25
|
interface LaunchpadServiceCardProps {
|
|
@@ -8,19 +8,23 @@ import {
|
|
|
8
8
|
LAUNCHPAD_SERVICE_DEFINITIONS,
|
|
9
9
|
LAUNCHPAD_SERVICE_GROUPS
|
|
10
10
|
} from "../data/launchpad-services.js";
|
|
11
|
-
const DEFAULT_HUE = {
|
|
11
|
+
const DEFAULT_HUE = {
|
|
12
|
+
text: "text-sky-600 dark:text-sky-400",
|
|
13
|
+
solid: "bg-sky-500",
|
|
14
|
+
ring: "from-sky-500/60 via-sky-400/15 to-sky-600/40"
|
|
15
|
+
};
|
|
12
16
|
const SERVICE_HUES = {
|
|
13
|
-
"mint-ip-asset": { text: "text-sky-600 dark:text-sky-400",
|
|
14
|
-
"create-collection": { text: "text-violet-600 dark:text-violet-400",
|
|
15
|
-
"ip-collection-1155": { text: "text-rose-600 dark:text-rose-400",
|
|
16
|
-
"mint-editions": { text: "text-amber-600 dark:text-amber-400",
|
|
17
|
-
"creator-coins": { text: "text-pink-600 dark:text-pink-400",
|
|
18
|
-
"claim-memecoin": { text: "text-teal-600 dark:text-teal-400",
|
|
19
|
-
"collection-drop": { text: "text-orange-600 dark:text-orange-400",
|
|
20
|
-
"pop-protocol": { text: "text-emerald-600 dark:text-emerald-400",
|
|
21
|
-
"remix-asset": { text: "text-indigo-600 dark:text-indigo-400",
|
|
22
|
-
"claim-username": { text: "text-purple-600 dark:text-purple-400",
|
|
23
|
-
"claim-collection": { text: "text-cyan-600 dark:text-cyan-400",
|
|
17
|
+
"mint-ip-asset": { text: "text-sky-600 dark:text-sky-400", solid: "bg-sky-500", ring: "from-sky-500/60 via-sky-400/15 to-sky-600/40" },
|
|
18
|
+
"create-collection": { text: "text-violet-600 dark:text-violet-400", solid: "bg-violet-500", ring: "from-violet-500/60 via-violet-400/15 to-violet-600/40" },
|
|
19
|
+
"ip-collection-1155": { text: "text-rose-600 dark:text-rose-400", solid: "bg-rose-500", ring: "from-rose-500/60 via-rose-400/15 to-rose-600/40" },
|
|
20
|
+
"mint-editions": { text: "text-amber-600 dark:text-amber-400", solid: "bg-amber-500", ring: "from-amber-500/60 via-amber-400/15 to-amber-600/40" },
|
|
21
|
+
"creator-coins": { text: "text-pink-600 dark:text-pink-400", solid: "bg-pink-500", ring: "from-pink-500/60 via-pink-400/15 to-pink-600/40" },
|
|
22
|
+
"claim-memecoin": { text: "text-teal-600 dark:text-teal-400", solid: "bg-teal-500", ring: "from-teal-500/60 via-teal-400/15 to-teal-600/40" },
|
|
23
|
+
"collection-drop": { text: "text-orange-600 dark:text-orange-400", solid: "bg-orange-500", ring: "from-orange-500/60 via-orange-400/15 to-orange-600/40" },
|
|
24
|
+
"pop-protocol": { text: "text-emerald-600 dark:text-emerald-400", solid: "bg-emerald-500", ring: "from-emerald-500/60 via-emerald-400/15 to-emerald-600/40" },
|
|
25
|
+
"remix-asset": { text: "text-indigo-600 dark:text-indigo-400", solid: "bg-indigo-500", ring: "from-indigo-500/60 via-indigo-400/15 to-indigo-600/40" },
|
|
26
|
+
"claim-username": { text: "text-purple-600 dark:text-purple-400", solid: "bg-purple-500", ring: "from-purple-500/60 via-purple-400/15 to-purple-600/40" },
|
|
27
|
+
"claim-collection": { text: "text-cyan-600 dark:text-cyan-400", solid: "bg-cyan-500", ring: "from-cyan-500/60 via-cyan-400/15 to-cyan-600/40" }
|
|
24
28
|
};
|
|
25
29
|
function LaunchpadServiceCard({ def, override = {} }) {
|
|
26
30
|
const { key, icon: Icon, title, browseLinkLabel } = def;
|
|
@@ -29,41 +33,52 @@ function LaunchpadServiceCard({ def, override = {} }) {
|
|
|
29
33
|
const { href, browseHref } = override;
|
|
30
34
|
const live = status === "live";
|
|
31
35
|
const hue = SERVICE_HUES[key] ?? DEFAULT_HUE;
|
|
32
|
-
|
|
36
|
+
const card = /* @__PURE__ */ jsxs(
|
|
33
37
|
"div",
|
|
34
38
|
{
|
|
35
39
|
className: cn(
|
|
36
|
-
"relative rounded-
|
|
37
|
-
"
|
|
38
|
-
live ? "active:scale-[0.99]" : "opacity-
|
|
40
|
+
"relative rounded-[15px] bg-card overflow-hidden flex flex-col flex-1 min-h-[210px]",
|
|
41
|
+
"transition-transform",
|
|
42
|
+
live ? "active:scale-[0.99]" : "opacity-70"
|
|
39
43
|
),
|
|
40
44
|
children: [
|
|
41
|
-
/* @__PURE__ */
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
"
|
|
45
|
+
live && /* @__PURE__ */ jsx("div", { "aria-hidden": true, className: cn("absolute inset-0 pointer-events-none bg-gradient-to-br to-transparent opacity-[0.07]", hue.solid.replace("bg-", "from-")) }),
|
|
46
|
+
/* @__PURE__ */ jsx("div", { "aria-hidden": true, className: "absolute -right-8 -bottom-10 opacity-[0.05] select-none pointer-events-none", children: /* @__PURE__ */ jsx(Icon, { className: "h-44 w-44" }) }),
|
|
47
|
+
/* @__PURE__ */ jsxs("div", { className: "relative flex flex-col flex-1 p-6 gap-4", children: [
|
|
48
|
+
/* @__PURE__ */ jsxs("div", { className: "flex items-start justify-between gap-3", children: [
|
|
49
|
+
/* @__PURE__ */ jsxs("div", { className: "relative", children: [
|
|
50
|
+
live && /* @__PURE__ */ jsx("div", { "aria-hidden": true, className: cn("absolute -inset-3 rounded-full blur-2xl opacity-30", hue.solid) }),
|
|
51
|
+
/* @__PURE__ */ jsx(Icon, { className: cn("relative h-9 w-9 shrink-0", live ? hue.text : "text-muted-foreground/50") })
|
|
52
|
+
] }),
|
|
53
|
+
!live && /* @__PURE__ */ jsxs("span", { className: "flex items-center gap-1 text-[11px] font-medium text-muted-foreground/60 pt-1", children: [
|
|
54
|
+
/* @__PURE__ */ jsx(Lock, { className: "h-3 w-3" }),
|
|
55
|
+
"Coming soon"
|
|
56
|
+
] })
|
|
57
|
+
] }),
|
|
58
|
+
/* @__PURE__ */ jsxs("div", { className: "space-y-1.5", children: [
|
|
59
|
+
/* @__PURE__ */ jsx("h3", { className: "text-2xl font-bold tracking-tight leading-snug", children: title }),
|
|
60
|
+
/* @__PURE__ */ jsx("p", { className: cn("text-[15px] leading-relaxed max-w-[34ch]", live ? "text-muted-foreground" : "text-muted-foreground/60"), children: blurb })
|
|
61
|
+
] }),
|
|
62
|
+
live && href && /* @__PURE__ */ jsx(Link, { href, "aria-label": title, className: "absolute inset-0 z-10" }),
|
|
63
|
+
/* @__PURE__ */ jsxs("div", { className: "mt-auto pt-1 flex items-end justify-between", children: [
|
|
64
|
+
live && browseHref && browseLinkLabel ? /* @__PURE__ */ jsxs(
|
|
65
|
+
Link,
|
|
66
|
+
{
|
|
67
|
+
href: browseHref,
|
|
68
|
+
className: "relative z-20 inline-flex items-center gap-1 text-xs font-medium text-muted-foreground active:text-foreground",
|
|
69
|
+
children: [
|
|
70
|
+
browseLinkLabel,
|
|
71
|
+
/* @__PURE__ */ jsx(ArrowRight, { className: "h-3 w-3" })
|
|
72
|
+
]
|
|
73
|
+
}
|
|
74
|
+
) : /* @__PURE__ */ jsx("span", {}),
|
|
75
|
+
live && /* @__PURE__ */ jsx("span", { className: cn("h-11 w-11 shrink-0 rounded-full flex items-center justify-center shadow-lg shadow-black/20", hue.solid), children: /* @__PURE__ */ jsx(ArrowUpRight, { className: "h-5 w-5 text-white" }) })
|
|
46
76
|
] })
|
|
47
|
-
] })
|
|
48
|
-
/* @__PURE__ */ jsxs("div", { className: "space-y-1", children: [
|
|
49
|
-
/* @__PURE__ */ jsx("h3", { className: "text-lg font-bold tracking-tight leading-snug", children: title }),
|
|
50
|
-
/* @__PURE__ */ jsx("p", { className: cn("text-sm leading-relaxed", live ? "text-muted-foreground" : "text-muted-foreground/60"), children: blurb })
|
|
51
|
-
] }),
|
|
52
|
-
live && href && /* @__PURE__ */ jsx(Link, { href, "aria-label": title, className: "absolute inset-0 z-10 rounded-2xl" }),
|
|
53
|
-
live && browseHref && browseLinkLabel && /* @__PURE__ */ jsxs(
|
|
54
|
-
Link,
|
|
55
|
-
{
|
|
56
|
-
href: browseHref,
|
|
57
|
-
className: "relative z-20 mt-auto self-start inline-flex items-center gap-1 text-xs font-medium text-muted-foreground active:text-foreground",
|
|
58
|
-
children: [
|
|
59
|
-
browseLinkLabel,
|
|
60
|
-
/* @__PURE__ */ jsx(ArrowRight, { className: "h-3 w-3" })
|
|
61
|
-
]
|
|
62
|
-
}
|
|
63
|
-
)
|
|
77
|
+
] })
|
|
64
78
|
]
|
|
65
79
|
}
|
|
66
80
|
);
|
|
81
|
+
return live ? /* @__PURE__ */ jsx("div", { className: cn("p-[1px] rounded-2xl bg-gradient-to-br flex flex-col", hue.ring), children: card }) : /* @__PURE__ */ jsx("div", { className: "rounded-2xl border border-border/30 flex flex-col", children: card });
|
|
67
82
|
}
|
|
68
83
|
function GroupHeader({ group }) {
|
|
69
84
|
return /* @__PURE__ */ jsxs("div", { className: "space-y-1", children: [
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/components/launchpad-services.tsx"],"sourcesContent":["\"use client\";\n\n/**\n * Launchpad grouped services — the single source for the /launchpad page UI\n * in medialane-io and medialane-dapp.\n *\n * Card philosophy (creator-first redesign, 2026-06-10): the whole card is the\n * action. One title, one creator-language sentence (def.blurb), one unique hue\n * per service — no buttons repeating the title, no status badges, no tech\n * chips, no hover-only effects (mobile first: press states only).\n *\n * Apps own: hrefs + per-app rollout status flips. Everything else lives here.\n */\n\nimport Link from \"next/link\";\nimport { motion } from \"framer-motion\";\nimport { Lock, ArrowUpRight, ArrowRight } from \"lucide-react\";\nimport { cn } from \"../utils/cn.js\";\nimport {\n LAUNCHPAD_SERVICE_DEFINITIONS,\n LAUNCHPAD_SERVICE_GROUPS,\n type ServiceDefinition,\n type ServiceGroupDefinition,\n type ServiceStatus,\n} from \"../data/launchpad-services.js\";\n\n// ── Per-app injection points ─────────────────────────────────────────────────\n\nexport interface ServiceOverride {\n /** Primary destination — the whole card links here (required for live services) */\n href?: string;\n /** Secondary browse link href (pairs with the def's browseLinkLabel) */\n browseHref?: string;\n /** Per-app rollout flips (e.g. coins live on one app first) */\n status?: ServiceStatus;\n /** Per-app one-liner override (rarely needed) */\n blurb?: string;\n}\n\nexport type ServiceOverrides = Record<string, ServiceOverride>;\n\n// ── One unique hue per service — never repeated inside a group ───────────────\n\ninterface ServiceHue {\n /** icon + arrow tint (600 for light surfaces, 400 for dark) */\n text: string;\n /** soft circle behind the arrow */\n bg: string;\n}\n\nconst DEFAULT_HUE: ServiceHue = { text: \"text-sky-600 dark:text-sky-400\", bg: \"bg-sky-500/10\" };\n\nexport const SERVICE_HUES: Record<string, ServiceHue> = {\n \"mint-ip-asset\": { text: \"text-sky-600 dark:text-sky-400\", bg: \"bg-sky-500/10\" },\n \"create-collection\": { text: \"text-violet-600 dark:text-violet-400\", bg: \"bg-violet-500/10\" },\n \"ip-collection-1155\": { text: \"text-rose-600 dark:text-rose-400\", bg: \"bg-rose-500/10\" },\n \"mint-editions\": { text: \"text-amber-600 dark:text-amber-400\", bg: \"bg-amber-500/10\" },\n \"creator-coins\": { text: \"text-pink-600 dark:text-pink-400\", bg: \"bg-pink-500/10\" },\n \"claim-memecoin\": { text: \"text-teal-600 dark:text-teal-400\", bg: \"bg-teal-500/10\" },\n \"collection-drop\": { text: \"text-orange-600 dark:text-orange-400\", bg: \"bg-orange-500/10\" },\n \"pop-protocol\": { text: \"text-emerald-600 dark:text-emerald-400\", bg: \"bg-emerald-500/10\" },\n \"remix-asset\": { text: \"text-indigo-600 dark:text-indigo-400\", bg: \"bg-indigo-500/10\" },\n \"claim-username\": { text: \"text-purple-600 dark:text-purple-400\", bg: \"bg-purple-500/10\" },\n \"claim-collection\": { text: \"text-cyan-600 dark:text-cyan-400\", bg: \"bg-cyan-500/10\" },\n};\n\n// ── Service card — the whole card is the action ─────────────────────────────\n\nexport interface LaunchpadServiceCardProps {\n def: ServiceDefinition;\n override?: ServiceOverride;\n}\n\nexport function LaunchpadServiceCard({ def, override = {} }: LaunchpadServiceCardProps) {\n const { key, icon: Icon, title, browseLinkLabel } = def;\n const status = override.status ?? def.status;\n const blurb = override.blurb ?? def.blurb;\n const { href, browseHref } = override;\n\n const live = status === \"live\";\n const hue = SERVICE_HUES[key] ?? DEFAULT_HUE;\n\n return (\n <div\n className={cn(\n \"relative rounded-2xl border border-border/60 bg-card p-5 sm:p-6\",\n \"flex flex-col gap-3 transition-transform\",\n live ? \"active:scale-[0.99]\" : \"opacity-60\",\n )}\n >\n <div className=\"flex items-start justify-between gap-3\">\n <Icon className={cn(\"h-7 w-7 shrink-0\", live ? hue.text : \"text-muted-foreground/50\")} />\n {live ? (\n <span className={cn(\"h-9 w-9 shrink-0 rounded-full flex items-center justify-center\", hue.bg)}>\n <ArrowUpRight className={cn(\"h-4 w-4\", hue.text)} />\n </span>\n ) : (\n <span className=\"flex items-center gap-1 text-[11px] font-medium text-muted-foreground/60 pt-1\">\n <Lock className=\"h-3 w-3\" />\n Coming soon\n </span>\n )}\n </div>\n\n <div className=\"space-y-1\">\n <h3 className=\"text-lg font-bold tracking-tight leading-snug\">{title}</h3>\n <p className={cn(\"text-sm leading-relaxed\", live ? \"text-muted-foreground\" : \"text-muted-foreground/60\")}>\n {blurb}\n </p>\n </div>\n\n {/* Stretched link — makes the whole card the action without nesting anchors */}\n {live && href && <Link href={href} aria-label={title} className=\"absolute inset-0 z-10 rounded-2xl\" />}\n\n {live && browseHref && browseLinkLabel && (\n <Link\n href={browseHref}\n className=\"relative z-20 mt-auto self-start inline-flex items-center gap-1 text-xs font-medium text-muted-foreground active:text-foreground\"\n >\n {browseLinkLabel}\n <ArrowRight className=\"h-3 w-3\" />\n </Link>\n )}\n </div>\n );\n}\n\n// ── Group sections ───────────────────────────────────────────────────────────\n\nfunction GroupHeader({ group }: { group: ServiceGroupDefinition }) {\n return (\n <div className=\"space-y-1\">\n <h2 className=\"text-xl font-bold tracking-tight\">{group.title}</h2>\n <p className=\"text-sm text-muted-foreground\">{group.tagline}</p>\n </div>\n );\n}\n\nfunction ComingSoonStrip({ group, defs }: { group: ServiceGroupDefinition; defs: ServiceDefinition[] }) {\n return (\n <div className=\"rounded-2xl border border-border/40 p-5\">\n <p className=\"font-semibold text-sm\">{group.title}</p>\n <p className=\"text-sm text-muted-foreground mt-0.5\">{group.tagline}</p>\n <div className=\"flex flex-wrap gap-2 mt-4\">\n {defs.map(({ key, icon: Icon, title }) => (\n <div key={key} className=\"flex items-center gap-2 px-3 py-2 rounded-full bg-muted/30 border border-border/25\">\n <Icon className=\"h-3.5 w-3.5 text-muted-foreground/60\" />\n <span className=\"text-xs font-medium text-muted-foreground\">{title}</span>\n </div>\n ))}\n </div>\n </div>\n );\n}\n\nexport interface LaunchpadGroupedSectionsProps {\n /** Per-app hrefs / rollout flips, keyed by service key. */\n overrides: ServiceOverrides;\n className?: string;\n}\n\n/** The full grouped launchpad services block — section order comes from\n * LAUNCHPAD_SERVICE_GROUPS; cards from LAUNCHPAD_SERVICE_DEFINITIONS. */\nexport function LaunchpadGroupedSections({ overrides, className }: LaunchpadGroupedSectionsProps) {\n return (\n <div className={cn(\"space-y-10\", className)}>\n {LAUNCHPAD_SERVICE_GROUPS.map((group) => {\n const defs = LAUNCHPAD_SERVICE_DEFINITIONS.filter((d) => d.group === group.key);\n if (defs.length === 0) return null;\n if (group.key === \"coming-soon\") {\n return <ComingSoonStrip key={group.key} group={group} defs={defs} />;\n }\n return (\n <motion.div\n key={group.key}\n initial={{ opacity: 0, y: 8 }}\n animate={{ opacity: 1, y: 0 }}\n transition={{ duration: 0.3, ease: [0.25, 0.46, 0.45, 0.94] }}\n className=\"space-y-4\"\n >\n <GroupHeader group={group} />\n <div className=\"grid grid-cols-1 sm:grid-cols-2 gap-4\">\n {defs.map((def) => (\n <LaunchpadServiceCard key={def.key} def={def} override={overrides[def.key]} />\n ))}\n </div>\n </motion.div>\n );\n })}\n </div>\n );\n}\n"],"mappings":";AA2FQ,cAME,YANF;AA7ER,OAAO,UAAU;AACjB,SAAS,cAAc;AACvB,SAAS,MAAM,cAAc,kBAAkB;AAC/C,SAAS,UAAU;AACnB;AAAA,EACE;AAAA,EACA;AAAA,OAIK;AA0BP,MAAM,cAA0B,EAAE,MAAM,kCAAkC,IAAI,gBAAgB;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AAU,GAAkC;AAChG,SACE,oBAAC,SAAI,WAAW,GAAG,cAAc,SAAS,GACvC,mCAAyB,IAAI,CAAC,UAAU;AACvC,UAAM,OAAO,8BAA8B,OAAO,CAAC,MAAM,EAAE,UAAU,MAAM,GAAG;AAC9E,QAAI,KAAK,WAAW,EAAG,QAAO;AAC9B,QAAI,MAAM,QAAQ,eAAe;AAC/B,aAAO,oBAAC,mBAAgC,OAAc,QAAzB,MAAM,GAA+B;AAAA,IACpE;AACA,WACE;AAAA,MAAC,OAAO;AAAA,MAAP;AAAA,QAEC,SAAS,EAAE,SAAS,GAAG,GAAG,EAAE;AAAA,QAC5B,SAAS,EAAE,SAAS,GAAG,GAAG,EAAE;AAAA,QAC5B,YAAY,EAAE,UAAU,KAAK,MAAM,CAAC,MAAM,MAAM,MAAM,IAAI,EAAE;AAAA,QAC5D,WAAU;AAAA,QAEV;AAAA,8BAAC,eAAY,OAAc;AAAA,UAC3B,oBAAC,SAAI,WAAU,yCACZ,eAAK,IAAI,CAAC,QACT,oBAAC,wBAAmC,KAAU,UAAU,UAAU,IAAI,GAAG,KAA9C,IAAI,GAA6C,CAC7E,GACH;AAAA;AAAA;AAAA,MAXK,MAAM;AAAA,IAYb;AAAA,EAEJ,CAAC,GACH;AAEJ;","names":[]}
|
|
1
|
+
{"version":3,"sources":["../../src/components/launchpad-services.tsx"],"sourcesContent":["\"use client\";\n\n/**\n * Launchpad grouped services — the single source for the /launchpad page UI\n * in medialane-io and medialane-dapp.\n *\n * Card philosophy (creator-first redesign, 2026-06-10): the whole card is the\n * action. One title, one creator-language sentence (def.blurb), one unique hue\n * per service — no buttons repeating the title, no status badges, no tech\n * chips, no hover-only effects (mobile first: press states only).\n *\n * Apps own: hrefs + per-app rollout status flips. Everything else lives here.\n */\n\nimport Link from \"next/link\";\nimport { motion } from \"framer-motion\";\nimport { Lock, ArrowUpRight, ArrowRight } from \"lucide-react\";\nimport { cn } from \"../utils/cn.js\";\nimport {\n LAUNCHPAD_SERVICE_DEFINITIONS,\n LAUNCHPAD_SERVICE_GROUPS,\n type ServiceDefinition,\n type ServiceGroupDefinition,\n type ServiceStatus,\n} from \"../data/launchpad-services.js\";\n\n// ── Per-app injection points ─────────────────────────────────────────────────\n\nexport interface ServiceOverride {\n /** Primary destination — the whole card links here (required for live services) */\n href?: string;\n /** Secondary browse link href (pairs with the def's browseLinkLabel) */\n browseHref?: string;\n /** Per-app rollout flips (e.g. coins live on one app first) */\n status?: ServiceStatus;\n /** Per-app one-liner override (rarely needed) */\n blurb?: string;\n}\n\nexport type ServiceOverrides = Record<string, ServiceOverride>;\n\n// ── One unique hue per service — never repeated inside a group ───────────────\n\ninterface ServiceHue {\n /** icon + link tint (600 for light surfaces, 400 for dark) */\n text: string;\n /** solid fill — the arrow action + icon glow */\n solid: string;\n /** gradient ring around live cards */\n ring: string;\n}\n\nconst DEFAULT_HUE: ServiceHue = {\n text: \"text-sky-600 dark:text-sky-400\",\n solid: \"bg-sky-500\",\n ring: \"from-sky-500/60 via-sky-400/15 to-sky-600/40\",\n};\n\nexport const SERVICE_HUES: Record<string, ServiceHue> = {\n \"mint-ip-asset\": { text: \"text-sky-600 dark:text-sky-400\", solid: \"bg-sky-500\", ring: \"from-sky-500/60 via-sky-400/15 to-sky-600/40\" },\n \"create-collection\": { text: \"text-violet-600 dark:text-violet-400\", solid: \"bg-violet-500\", ring: \"from-violet-500/60 via-violet-400/15 to-violet-600/40\" },\n \"ip-collection-1155\": { text: \"text-rose-600 dark:text-rose-400\", solid: \"bg-rose-500\", ring: \"from-rose-500/60 via-rose-400/15 to-rose-600/40\" },\n \"mint-editions\": { text: \"text-amber-600 dark:text-amber-400\", solid: \"bg-amber-500\", ring: \"from-amber-500/60 via-amber-400/15 to-amber-600/40\" },\n \"creator-coins\": { text: \"text-pink-600 dark:text-pink-400\", solid: \"bg-pink-500\", ring: \"from-pink-500/60 via-pink-400/15 to-pink-600/40\" },\n \"claim-memecoin\": { text: \"text-teal-600 dark:text-teal-400\", solid: \"bg-teal-500\", ring: \"from-teal-500/60 via-teal-400/15 to-teal-600/40\" },\n \"collection-drop\": { text: \"text-orange-600 dark:text-orange-400\", solid: \"bg-orange-500\", ring: \"from-orange-500/60 via-orange-400/15 to-orange-600/40\" },\n \"pop-protocol\": { text: \"text-emerald-600 dark:text-emerald-400\", solid: \"bg-emerald-500\", ring: \"from-emerald-500/60 via-emerald-400/15 to-emerald-600/40\" },\n \"remix-asset\": { text: \"text-indigo-600 dark:text-indigo-400\", solid: \"bg-indigo-500\", ring: \"from-indigo-500/60 via-indigo-400/15 to-indigo-600/40\" },\n \"claim-username\": { text: \"text-purple-600 dark:text-purple-400\", solid: \"bg-purple-500\", ring: \"from-purple-500/60 via-purple-400/15 to-purple-600/40\" },\n \"claim-collection\": { text: \"text-cyan-600 dark:text-cyan-400\", solid: \"bg-cyan-500\", ring: \"from-cyan-500/60 via-cyan-400/15 to-cyan-600/40\" },\n};\n\n// ── Service card — the whole card is the action ─────────────────────────────\n\nexport interface LaunchpadServiceCardProps {\n def: ServiceDefinition;\n override?: ServiceOverride;\n}\n\nexport function LaunchpadServiceCard({ def, override = {} }: LaunchpadServiceCardProps) {\n const { key, icon: Icon, title, browseLinkLabel } = def;\n const status = override.status ?? def.status;\n const blurb = override.blurb ?? def.blurb;\n const { href, browseHref } = override;\n\n const live = status === \"live\";\n const hue = SERVICE_HUES[key] ?? DEFAULT_HUE;\n\n const card = (\n <div\n className={cn(\n \"relative rounded-[15px] bg-card overflow-hidden flex flex-col flex-1 min-h-[210px]\",\n \"transition-transform\",\n live ? \"active:scale-[0.99]\" : \"opacity-70\",\n )}\n >\n {/* Soft hue tint — same language as the Drop Pages panel */}\n {live && (\n <div aria-hidden className={cn(\"absolute inset-0 pointer-events-none bg-gradient-to-br to-transparent opacity-[0.07]\", hue.solid.replace(\"bg-\", \"from-\"))} />\n )}\n {/* Giant watermark icon, ghosted in the corner */}\n <div aria-hidden className=\"absolute -right-8 -bottom-10 opacity-[0.05] select-none pointer-events-none\">\n <Icon className=\"h-44 w-44\" />\n </div>\n\n <div className=\"relative flex flex-col flex-1 p-6 gap-4\">\n <div className=\"flex items-start justify-between gap-3\">\n <div className=\"relative\">\n {live && (\n <div aria-hidden className={cn(\"absolute -inset-3 rounded-full blur-2xl opacity-30\", hue.solid)} />\n )}\n <Icon className={cn(\"relative h-9 w-9 shrink-0\", live ? hue.text : \"text-muted-foreground/50\")} />\n </div>\n {!live && (\n <span className=\"flex items-center gap-1 text-[11px] font-medium text-muted-foreground/60 pt-1\">\n <Lock className=\"h-3 w-3\" />\n Coming soon\n </span>\n )}\n </div>\n\n <div className=\"space-y-1.5\">\n <h3 className=\"text-2xl font-bold tracking-tight leading-snug\">{title}</h3>\n <p className={cn(\"text-[15px] leading-relaxed max-w-[34ch]\", live ? \"text-muted-foreground\" : \"text-muted-foreground/60\")}>\n {blurb}\n </p>\n </div>\n\n {/* Stretched link — the whole card is the action, no title-repeating button */}\n {live && href && <Link href={href} aria-label={title} className=\"absolute inset-0 z-10\" />}\n\n <div className=\"mt-auto pt-1 flex items-end justify-between\">\n {live && browseHref && browseLinkLabel ? (\n <Link\n href={browseHref}\n className=\"relative z-20 inline-flex items-center gap-1 text-xs font-medium text-muted-foreground active:text-foreground\"\n >\n {browseLinkLabel}\n <ArrowRight className=\"h-3 w-3\" />\n </Link>\n ) : (\n <span />\n )}\n {live && (\n <span className={cn(\"h-11 w-11 shrink-0 rounded-full flex items-center justify-center shadow-lg shadow-black/20\", hue.solid)}>\n <ArrowUpRight className=\"h-5 w-5 text-white\" />\n </span>\n )}\n </div>\n </div>\n </div>\n );\n\n return live ? (\n <div className={cn(\"p-[1px] rounded-2xl bg-gradient-to-br flex flex-col\", hue.ring)}>\n {card}\n </div>\n ) : (\n <div className=\"rounded-2xl border border-border/30 flex flex-col\">{card}</div>\n );\n}\n\n// ── Group sections ───────────────────────────────────────────────────────────\n\nfunction GroupHeader({ group }: { group: ServiceGroupDefinition }) {\n return (\n <div className=\"space-y-1\">\n <h2 className=\"text-xl font-bold tracking-tight\">{group.title}</h2>\n <p className=\"text-sm text-muted-foreground\">{group.tagline}</p>\n </div>\n );\n}\n\nfunction ComingSoonStrip({ group, defs }: { group: ServiceGroupDefinition; defs: ServiceDefinition[] }) {\n return (\n <div className=\"rounded-2xl border border-border/40 p-5\">\n <p className=\"font-semibold text-sm\">{group.title}</p>\n <p className=\"text-sm text-muted-foreground mt-0.5\">{group.tagline}</p>\n <div className=\"flex flex-wrap gap-2 mt-4\">\n {defs.map(({ key, icon: Icon, title }) => (\n <div key={key} className=\"flex items-center gap-2 px-3 py-2 rounded-full bg-muted/30 border border-border/25\">\n <Icon className=\"h-3.5 w-3.5 text-muted-foreground/60\" />\n <span className=\"text-xs font-medium text-muted-foreground\">{title}</span>\n </div>\n ))}\n </div>\n </div>\n );\n}\n\nexport interface LaunchpadGroupedSectionsProps {\n /** Per-app hrefs / rollout flips, keyed by service key. */\n overrides: ServiceOverrides;\n className?: string;\n}\n\n/** The full grouped launchpad services block — section order comes from\n * LAUNCHPAD_SERVICE_GROUPS; cards from LAUNCHPAD_SERVICE_DEFINITIONS. */\nexport function LaunchpadGroupedSections({ overrides, className }: LaunchpadGroupedSectionsProps) {\n return (\n <div className={cn(\"space-y-10\", className)}>\n {LAUNCHPAD_SERVICE_GROUPS.map((group) => {\n const defs = LAUNCHPAD_SERVICE_DEFINITIONS.filter((d) => d.group === group.key);\n if (defs.length === 0) return null;\n if (group.key === \"coming-soon\") {\n return <ComingSoonStrip key={group.key} group={group} defs={defs} />;\n }\n return (\n <motion.div\n key={group.key}\n initial={{ opacity: 0, y: 8 }}\n animate={{ opacity: 1, y: 0 }}\n transition={{ duration: 0.3, ease: [0.25, 0.46, 0.45, 0.94] }}\n className=\"space-y-4\"\n >\n <GroupHeader group={group} />\n <div className=\"grid grid-cols-1 sm:grid-cols-2 gap-4\">\n {defs.map((def) => (\n <LaunchpadServiceCard key={def.key} def={def} override={overrides[def.key]} />\n ))}\n </div>\n </motion.div>\n );\n })}\n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