@medialane/ui 0.7.0 → 0.8.0
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 +166 -129
- package/dist/components/launchpad-services.cjs.map +1 -1
- package/dist/components/launchpad-services.d.cts +30 -9
- package/dist/components/launchpad-services.d.ts +30 -9
- package/dist/components/launchpad-services.js +166 -128
- package/dist/components/launchpad-services.js.map +1 -1
- package/dist/data/launchpad-services.cjs +24 -16
- package/dist/data/launchpad-services.cjs.map +1 -1
- package/dist/data/launchpad-services.d.cts +2 -0
- package/dist/data/launchpad-services.d.ts +2 -0
- package/dist/data/launchpad-services.js +24 -16
- package/dist/data/launchpad-services.js.map +1 -1
- package/dist/index.cjs +6 -5
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +1 -2
- package/dist/index.d.ts +1 -2
- package/dist/index.js +4 -4
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
- package/dist/components/launchpad-grid.cjs +0 -77
- package/dist/components/launchpad-grid.cjs.map +0 -1
- package/dist/components/launchpad-grid.d.cts +0 -20
- package/dist/components/launchpad-grid.d.ts +0 -20
- package/dist/components/launchpad-grid.js +0 -43
- package/dist/components/launchpad-grid.js.map +0 -1
|
@@ -1,43 +0,0 @@
|
|
|
1
|
-
"use client";
|
|
2
|
-
import { jsx, jsxs } from "react/jsx-runtime";
|
|
3
|
-
import Link from "next/link";
|
|
4
|
-
import { ArrowRight, Rocket } from "lucide-react";
|
|
5
|
-
function ServiceCard({ feature }) {
|
|
6
|
-
const { icon: Icon, label, subtitle, accent, href } = feature;
|
|
7
|
-
return /* @__PURE__ */ jsx(Link, { href, className: "group block", children: /* @__PURE__ */ jsx("div", { className: "card-base overflow-hidden", children: /* @__PURE__ */ jsxs("div", { className: `relative aspect-[3/4] w-full bg-gradient-to-br ${accent}`, children: [
|
|
8
|
-
/* @__PURE__ */ jsx("div", { className: "absolute inset-0 bg-[radial-gradient(ellipse_at_30%_25%,rgba(255,255,255,0.14),transparent_60%)]" }),
|
|
9
|
-
/* @__PURE__ */ jsx("div", { className: "absolute -bottom-6 -right-6 opacity-[0.12] pointer-events-none", children: /* @__PURE__ */ jsx(Icon, { className: "h-36 w-36 text-white" }) }),
|
|
10
|
-
/* @__PURE__ */ jsxs("div", { className: "absolute inset-0 flex flex-col justify-between p-4", children: [
|
|
11
|
-
/* @__PURE__ */ jsx("div", { className: "h-11 w-11 rounded-2xl bg-white/10 backdrop-blur-sm flex items-center justify-center ring-1 ring-white/20 group-hover:bg-white/[0.18] transition-colors duration-300", children: /* @__PURE__ */ jsx(Icon, { className: "h-5 w-5 text-white" }) }),
|
|
12
|
-
/* @__PURE__ */ jsxs("div", { children: [
|
|
13
|
-
/* @__PURE__ */ jsx("p", { className: "text-lg font-black text-white leading-tight tracking-tight", children: label }),
|
|
14
|
-
/* @__PURE__ */ jsx("p", { className: "text-xs text-white/65 mt-1.5 leading-relaxed", children: subtitle })
|
|
15
|
-
] })
|
|
16
|
-
] })
|
|
17
|
-
] }) }) });
|
|
18
|
-
}
|
|
19
|
-
function LaunchpadGrid({
|
|
20
|
-
title = "Creator Launchpad",
|
|
21
|
-
titleHref = "/launchpad",
|
|
22
|
-
titleHrefLabel = "All services",
|
|
23
|
-
features
|
|
24
|
-
}) {
|
|
25
|
-
return /* @__PURE__ */ jsxs("section", { className: "space-y-4", children: [
|
|
26
|
-
/* @__PURE__ */ jsxs("div", { className: "flex items-center justify-between", children: [
|
|
27
|
-
/* @__PURE__ */ jsxs("div", { className: "flex items-center gap-2.5", children: [
|
|
28
|
-
/* @__PURE__ */ jsx("div", { className: "h-7 w-7 rounded-lg bg-gradient-to-br from-primary to-purple-600 flex items-center justify-center shadow-md shadow-primary/20", children: /* @__PURE__ */ jsx(Rocket, { className: "h-3.5 w-3.5 text-white" }) }),
|
|
29
|
-
/* @__PURE__ */ jsx("h2", { className: "text-lg sm:text-xl font-semibold", children: title })
|
|
30
|
-
] }),
|
|
31
|
-
/* @__PURE__ */ jsxs(Link, { href: titleHref, className: "inline-flex items-center gap-1 text-sm text-muted-foreground hover:text-foreground px-3 py-1.5 rounded-md hover:bg-accent transition-colors", children: [
|
|
32
|
-
titleHrefLabel,
|
|
33
|
-
" ",
|
|
34
|
-
/* @__PURE__ */ jsx(ArrowRight, { className: "h-3.5 w-3.5" })
|
|
35
|
-
] })
|
|
36
|
-
] }),
|
|
37
|
-
/* @__PURE__ */ jsx("div", { className: "w-full overflow-x-auto scrollbar-hide", children: /* @__PURE__ */ jsx("div", { className: "flex gap-3 snap-x snap-mandatory pb-2", style: { width: "max-content" }, children: features.map((f) => /* @__PURE__ */ jsx("div", { className: "w-56 sm:w-64 snap-start shrink-0", children: /* @__PURE__ */ jsx(ServiceCard, { feature: f }) }, f.label)) }) })
|
|
38
|
-
] });
|
|
39
|
-
}
|
|
40
|
-
export {
|
|
41
|
-
LaunchpadGrid
|
|
42
|
-
};
|
|
43
|
-
//# sourceMappingURL=launchpad-grid.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/components/launchpad-grid.tsx"],"sourcesContent":["\"use client\";\n\nimport Link from \"next/link\";\nimport { ArrowRight, Rocket, type LucideIcon } from \"lucide-react\";\n\nexport interface FeatureItem {\n icon: LucideIcon;\n label: string;\n subtitle: string;\n /** Tailwind gradient string e.g. \"from-violet-500 to-purple-600\" */\n accent: string;\n href: string;\n}\n\nexport interface LaunchpadGridProps {\n title?: string;\n titleHref?: string;\n titleHrefLabel?: string;\n features: FeatureItem[];\n}\n\nfunction ServiceCard({ feature }: { feature: FeatureItem }) {\n const { icon: Icon, label, subtitle, accent, href } = feature;\n return (\n <Link href={href} className=\"group block\">\n <div className=\"card-base overflow-hidden\">\n <div className={`relative aspect-[3/4] w-full bg-gradient-to-br ${accent}`}>\n <div className=\"absolute inset-0 bg-[radial-gradient(ellipse_at_30%_25%,rgba(255,255,255,0.14),transparent_60%)]\" />\n <div className=\"absolute -bottom-6 -right-6 opacity-[0.12] pointer-events-none\">\n <Icon className=\"h-36 w-36 text-white\" />\n </div>\n <div className=\"absolute inset-0 flex flex-col justify-between p-4\">\n <div className=\"h-11 w-11 rounded-2xl bg-white/10 backdrop-blur-sm flex items-center justify-center ring-1 ring-white/20 group-hover:bg-white/[0.18] transition-colors duration-300\">\n <Icon className=\"h-5 w-5 text-white\" />\n </div>\n <div>\n <p className=\"text-lg font-black text-white leading-tight tracking-tight\">{label}</p>\n <p className=\"text-xs text-white/65 mt-1.5 leading-relaxed\">{subtitle}</p>\n </div>\n </div>\n </div>\n </div>\n </Link>\n );\n}\n\nexport function LaunchpadGrid({\n title = \"Creator Launchpad\",\n titleHref = \"/launchpad\",\n titleHrefLabel = \"All services\",\n features,\n}: LaunchpadGridProps) {\n return (\n <section className=\"space-y-4\">\n <div className=\"flex items-center justify-between\">\n <div className=\"flex items-center gap-2.5\">\n <div className=\"h-7 w-7 rounded-lg bg-gradient-to-br from-primary to-purple-600 flex items-center justify-center shadow-md shadow-primary/20\">\n <Rocket className=\"h-3.5 w-3.5 text-white\" />\n </div>\n <h2 className=\"text-lg sm:text-xl font-semibold\">{title}</h2>\n </div>\n <Link href={titleHref} className=\"inline-flex items-center gap-1 text-sm text-muted-foreground hover:text-foreground px-3 py-1.5 rounded-md hover:bg-accent transition-colors\">\n {titleHrefLabel} <ArrowRight className=\"h-3.5 w-3.5\" />\n </Link>\n </div>\n\n <div className=\"w-full overflow-x-auto scrollbar-hide\">\n <div className=\"flex gap-3 snap-x snap-mandatory pb-2\" style={{ width: \"max-content\" }}>\n {features.map((f) => (\n <div key={f.label} className=\"w-56 sm:w-64 snap-start shrink-0\">\n <ServiceCard feature={f} />\n </div>\n ))}\n </div>\n </div>\n </section>\n );\n}\n"],"mappings":";AA2BU,cAQE,YARF;AAzBV,OAAO,UAAU;AACjB,SAAS,YAAY,cAA+B;AAkBpD,SAAS,YAAY,EAAE,QAAQ,GAA6B;AAC1D,QAAM,EAAE,MAAM,MAAM,OAAO,UA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