// Shared brand components: header, footer, brand mark, vial graphics
// Loaded as type="text/babel" — globals exported via window.
const Star = ({ size = 22, color = "currentColor" }) => (
);
const Brandmark = ({ light = false }) => (
SUPERSTAR/PEPTIDES
);
const Header = ({ active = "shop" }) => (
<>
★ FREE EXPRESS SHIPPING ON STACKS OVER $250 — USE CODE PEAK10
>
);
const Footer = () => (
);
/* ---------- VIAL GRAPHICS ----------
* Photoreal SVG vial mockup. Clear glass body, metallic crimp, colored cap,
* tinted liquid, big vertical "superstar" wordmark, small horizontal product name.
* Designed to sit on a SOLID COLORED BACKDROP (the parent's background).
*
* Usage:
*
*/
const Vial = ({
product = "BPC-157",
cap = "#E47E3E", // cap color
tint = "rgba(255,255,255,0.15)", // liquid tint - subtle, mostly clear
bg = "#C29472", // parent backdrop (used to color the glass interior)
}) => {
const id = product.replace(/[^a-z0-9]/gi, "");
return (
);
};
/* Photoreal product shot — uses real PNG vial against soft feminine backdrop */
const ProductShot = ({ bg, product = "NAD+", chip, badge, children }) => {
const pal = (window.PRODUCT_PALETTES || {})[product] || { bg: "#D9C8B8", cap: "#7A4A2E", tint: "rgba(122,74,46,0.18)" };
const bgColor = bg || pal.bg;
const capColor = pal.cap || "#7A4A2E";
const tintColor = pal.tint || "rgba(122,74,46,0.18)";
return (
{product}
{chip !== false && (
In stock
)}
{badge && (
{badge}
)}
{children}
);
};
/* Per-product palette — backdrop + cap + liquid tint.
* Every product needs a unique combo so the vial visual is recognizable per-SKU. */
const PRODUCT_PALETTES = {
"BPC-157": { bg: "#C8B49C", cap: "#7A4A2E", tint: "rgba(122,74,46,0.18)" }, // warm taupe + brown cap
"TB-500": { bg: "#A8B4A8", cap: "#3A6B4A", tint: "rgba(58,107,74,0.20)" },
"Sermorelin": { bg: "#D9A47C", cap: "#E47E3E", tint: "rgba(228,126,62,0.22)" }, // warm clay + orange cap
"Ipamorelin": { bg: "#C49484", cap: "#A0463A", tint: "rgba(160,70,58,0.20)" }, // terracotta + brick
"CJC-1295": { bg: "#B8A89C", cap: "#5E4A3E", tint: "rgba(94,74,62,0.18)" }, // taupe + dark brown
"NAD+": { bg: "#E5D9C7", cap: "#C49B5E", tint: "rgba(196,155,94,0.18)" }, // cream + gold cap
"Epitalon": { bg: "#B8A4B8", cap: "#6E4A6E", tint: "rgba(110,74,110,0.18)" },
"Selank": { bg: "#A8A0B8", cap: "#5848A0", tint: "rgba(88,72,160,0.20)" }, // lavender + violet
"Semax": { bg: "#A8B4C4", cap: "#3858A8", tint: "rgba(56,88,168,0.20)" },
"Semaglutide": { bg: "#B8C4A8", cap: "#5A8A3A", tint: "rgba(90,138,58,0.20)" },
"Tirzepatide": { bg: "#A0B098", cap: "#3E7A4A", tint: "rgba(62,122,74,0.20)" },
"GHK-Cu": { bg: "#E8C4B8", cap: "#C46A4A", tint: "rgba(196,106,74,0.20)" }, // blush + copper cap
"Glutathione": { bg: "#9CC8B8", cap: "#3A8A6E", tint: "rgba(58,138,110,0.22)" }, // mint + teal cap
"DSIP": { bg: "#9CA8B4", cap: "#3E5A78", tint: "rgba(62,90,120,0.20)" }, // dusty blue + navy cap
"PT-141": { bg: "#9A4A4A", cap: "#FF6B5C", tint: "rgba(255,107,92,0.22)" }, // brick + coral
"Thymosin": { bg: "#3A6B5D", cap: "#5EE6B5", tint: "rgba(94,230,181,0.25)" },
"B12 / MIC": { bg: "#E8B85C", cap: "#C46A1A", tint: "rgba(196,106,26,0.22)" }, // amber + orange (B12 yellow)
"MIC + B12": { bg: "#E8B85C", cap: "#C46A1A", tint: "rgba(196,106,26,0.22)" }, // alias
"STACK 01": { bg: "#181818", cap: "#E8B5A8", tint: "rgba(232,181,168,0.18)" },
};
const getPalette = (name) => PRODUCT_PALETTES[name] || PRODUCT_PALETTES["BPC-157"];
/* Floating syringe / pen */
const Pen = ({ accent = "#E47E3E", bg = "#C29472" }) => (
);
Object.assign(window, { Star, Brandmark, Header, Footer, Vial, ProductShot, Pen, PRODUCT_PALETTES, getPalette });