mirror of
https://github.com/bitbaum/vitareba.git
synced 2026-12-04 04:57:22 +01:00
* chore: add a formatter, matching the style this repo already writes singleQuote=false was chosen by counting this repo's own imports, not by fleet decree. The fleet is genuinely split and the two repos that already had a .prettierrc disagreed with each other, so there was no standard to restore. Quote style does not cross repo boundaries; having a gate does. Markdown is ignored for now — prettier rewraps prose, which would bury the real diff. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com> * style: format with prettier (304 files) Mechanical. No behaviour change. This SHA is listed in .git-blame-ignore-revs so `git blame` skips it. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com> * chore: teach git blame to skip the reformat Co-Authored-By: Claude Opus 5 <noreply@anthropic.com> * style: format the two files the reformat pass missed prettier --check flagged app/shared.module.css and lib/domain/clinicians.test.ts on a branch whose whole point was that everything had been formatted. Re-running the same command with the same version fixes both, so the rollout's write step did not finish what it reported. The rollout now runs --check straight after --write and refuses to open a PR unless it comes back clean, so a partial reformat fails at the source instead of in CI. --------- Co-authored-by: Claude Opus 5 <noreply@anthropic.com>
64 lines
2.2 KiB
TypeScript
64 lines
2.2 KiB
TypeScript
import { getTranslations } from "next-intl/server";
|
|
import { COMPANY } from "@/lib/config/company";
|
|
import { PROGRAMME_ENUM_VALUES, PROGRAMME_CONFIG } from "@/lib/config/programmes";
|
|
import styles from "./Programs.module.css";
|
|
|
|
type ProgramItem = {
|
|
note: string;
|
|
desc: string;
|
|
badge: string | null;
|
|
btnLabel: string;
|
|
features: string[];
|
|
};
|
|
|
|
export default async function Programs() {
|
|
const t = await getTranslations("programs");
|
|
const items = t.raw("items") as Record<string, ProgramItem>;
|
|
|
|
return (
|
|
<section id="pricing" className={styles.section}>
|
|
<div className="section-inner">
|
|
<div className="section-header">
|
|
<div className="eyebrow">{t("eyebrow")}</div>
|
|
</div>
|
|
<h2 className="sec-title sec-title-center">
|
|
{t("heading")} <em>{t("headingEm")}</em>
|
|
</h2>
|
|
|
|
<div className={styles.grid}>
|
|
{PROGRAMME_ENUM_VALUES.map((key) => {
|
|
const meta = PROGRAMME_CONFIG[key];
|
|
const prog = items[key];
|
|
if (!prog) return null;
|
|
return (
|
|
<div key={key} className={`${styles.prog} ${meta.featured ? styles.featured : ""}`}>
|
|
{prog.badge && <div className={styles.badge}>{prog.badge}</div>}
|
|
<div className={`${styles.name}${meta.featured ? ` ${styles.nameFeatured}` : ""}`}>
|
|
{meta.label}
|
|
</div>
|
|
<div className={styles.price}>{meta.price}</div>
|
|
<div className={styles.note}>{prog.note}</div>
|
|
<p className={styles.desc}>{prog.desc}</p>
|
|
{prog.features.map((feature) => (
|
|
<div key={feature} className={styles.item}>
|
|
<span className={styles.check}>✦</span>
|
|
{feature}
|
|
</div>
|
|
))}
|
|
<a
|
|
href={`mailto:${COMPANY.email}`}
|
|
className={`${styles.btn} ${
|
|
meta.btnStyle === "primary" ? styles.btnPrimary : styles.btnOutline
|
|
}`}
|
|
>
|
|
{prog.btnLabel}
|
|
</a>
|
|
</div>
|
|
);
|
|
})}
|
|
</div>
|
|
</div>
|
|
</section>
|
|
);
|
|
}
|