// Contact section + footer.
function Contato() {
const [sent, setSent] = React.useState(false);
return (
Fale com a Biolife
Estamos prontos para atender você.
Solicite uma proposta comercial, peça informações técnicas ou
entre em contato com nossas sedes. Nosso time responde em até
24h úteis.
);
}
function ContactCard({ label, value, href }) {
const inner = (
<>
{label}
{value}
>
);
const baseStyle = {
display: "block",
padding: "18px 20px",
background: "#fff",
borderRadius: "var(--radius)",
border: "1px solid var(--c-line)",
};
if (href) {
return (
{inner}
);
}
return {inner}
;
}
function AddressCard({ city, lines }) {
return (
{city}
{lines.map((l, i) =>
{l}
)}
);
}
function Field({ label, type = "text", required, placeholder, options }) {
const style = {
width: "100%",
padding: "12px 14px",
fontSize: 14,
fontFamily: "var(--font-sans)",
border: "1px solid var(--c-line)",
borderRadius: "var(--radius)",
background: "#fafbfc",
color: "var(--c-ink)",
outline: "none",
transition: "border-color .15s, background .15s",
};
const labelEl = (
{label} {required && *}
);
const onFocus = e => { e.target.style.borderColor = "var(--c-blue-deep)"; e.target.style.background = "#fff"; };
const onBlur = e => { e.target.style.borderColor = "var(--c-line)"; e.target.style.background = "#fafbfc"; };
return (
);
}
function Footer() {
return (
);
}
function FooterCol({ title, links }) {
return (
{title}
{links.map(l => {
const isString = typeof l === "string";
const label = isString ? l : l.label;
const href = isString ? "#" : (l.href || "#");
const external = href && (href.startsWith("http") || href.startsWith("mailto:") || href.startsWith("tel:"));
return (
{label}
);
})}
);
}
Object.assign(window, { Contato, Footer });