/* global React */
// Recipeat — Landing page components. Token-sourced from colors_and_type.css
const LC = {
bg: "#FBF9F7",
surf1: "#FFFFFF",
surf2: "#F5F3F1",
surf3: "#EFEDEC",
text: "#1B1C1B",
textVar: "#40493D",
primary: "#0D631B",
primaryDeep: "#0B4E15",
primaryFixed: "#A3F69C",
onPrimaryContainer: "#CBFFC2",
secondary: "#964900",
secondaryFixed: "#FFDCC6",
tertiaryFixed: "#FFDEAC",
peach: "#FFDCC6",
mint: "#A3F69C",
honey: "#FFDEAC",
divider: "#E4E2E0",
};
window.LC = LC;
// MaterialIcons "verified" — app과 동일한 인증 배지
function VerifiedBadge({ size = 12, color = LC.primary, style }) {
return (
);
}
window.VerifiedBadge = VerifiedBadge;
// ─────────────────────────────────────────────────────────────────────────────
// Brand chrome
function NavBar({ variant = "light" }) {
const onDark = variant === "dark";
const fg = onDark ? "#FBF9F7" : LC.text;
const muted = onDark ? "rgba(251,249,247,0.72)" : LC.textVar;
return (
);
}
function AppMark({ size = 28, color = LC.primary }) {
// 앱 아이콘과 동일한 심볼 (client/assets/icons/symbol.svg).
// 원본 viewBox 16.7871 × 27.0605 을 32×32 박스 중앙에 배치.
return (
);
}
function StoreBadge({ store = "app", variant = "dark", disabled = false }) {
const isApp = store === "app";
const dark = variant === "dark";
const bg = dark ? "#111" : "#FFFFFF";
const fg = dark ? "#FFFFFF" : "#111";
const subLabel = isApp
? disabled
? "Coming soon to"
: "Download on the"
: "GET IT ON";
const mainLabel = isApp ? "App Store" : "Google Play";
const onClick = disabled ? (e) => e.preventDefault() : undefined;
return (