All files / src/components KlarbefundShowcase.tsx

100% Statements 6/6
50% Branches 1/2
100% Functions 1/1
100% Lines 6/6

Press n or j to go to the next uncovered block, b, p or k for the previous block.

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 1012x                   2x   2x   2x     24x 24x                                                                                                                                                                    
"use client";
 
import { Smartphone } from "lucide-react";
import { IS_STATIC } from "@/lib/static-export";
import { TestflightJoin } from "@/components/TestflightJoin";
import { KlarbefundTourPhone } from "@/components/KlarbefundTourPhone";
import { T, useT } from "@/lib/i18n/translate";
 
/** The GitHub Pages export is served under a basePath; plain <video> and <img>
 *  URLs must carry it (same pattern as the journey page). */
const BASE_PATH = IS_STATIC ? "/MinimumViableHealthDataspacev2" : "";
const TOUR_ALT =
  "A tour through the Klarbefund app with invented data: the list of reports, a report's values and its scan, trends against published ranges, earlier measurements, connecting to the EHDS record, the three consents, asking an AI, and the privacy page";
 
const STRONG = <strong className="text-(--text-primary)" />;
 
export function KlarbefundShowcase() {
  const t = useT("home");
  return (
    <section
      className="mb-12 sm:mb-16 animate-fade-in-up grid grid-cols-1 lg:grid-cols-[minmax(0,1fr)_auto] gap-8 lg:gap-12 items-center"
      style={{ animationDelay: "100ms" }}
      aria-labelledby="klarbefund-title"
    >
      <div>
        <div className="flex items-center gap-2 mb-2">
          <Smartphone
            size={18}
            className="text-teal-800 dark:text-teal-300"
            aria-hidden="true"
          />
          <h2 id="klarbefund-title" className="text-lg sm:text-xl font-bold">
            <T area="home">
              {"Klarbefund: real data for the dataspace, held by the patient"}
            </T>
          </h2>
        </div>
        <p className="text-(--text-secondary) text-sm leading-relaxed max-w-2xl mb-3">
          {t(
            "Health dataspaces run on synthetic patients, this one included. That shows the plumbing, not the rules: GDPR, the EHDS and the AI Act are about data that belongs to a person. Real data is what is missing, and it is the hardest to bring in lawfully.",
          )}
        </p>
        <p className="text-(--text-secondary) text-sm leading-relaxed max-w-2xl mb-4">
          {t(
            "Klarbefund brings it in from the person's side. Scan a paper lab report or import the PDF, and the iPhone turns it into LOINC-coded values set against published reference ranges, each marked with its source. They reach the dataspace only when the person decides.",
          )}
        </p>
        <ul className="text-(--text-secondary) text-sm leading-relaxed max-w-2xl mb-4 space-y-2">
          <li>
            <T area="home" tags={{ b: STRONG }}>
              {
                "<b>GDPR.</b> Values stay on the phone, encrypted, until the person sends them (Art. 25). Export as PDF, FHIR and OMOP (Art. 20); delete the account in the app (Art. 17)."
              }
            </T>
          </li>
          <li>
            <T area="home" tags={{ b: STRONG }}>
              {
                "<b>EHDS.</b> The person creates an account on this hub and adds their values to their own record: FHIR R4 Observations, LOINC-coded, marked preliminary and with their source. Research use is a separate consent."
              }
            </T>
          </li>
          <li>
            <T area="home" tags={{ b: STRONG }}>
              {
                "<b>AI Act.</b> An AI answers only when asked, names provider and model each time, and never calls it a diagnosis (Art. 50)."
              }
            </T>
          </li>
        </ul>
        <p className="text-(--text-secondary) text-sm leading-relaxed max-w-2xl mb-3">
          <T area="home" tags={{ b: STRONG }}>
            {
              "The app is in a <b>public TestFlight beta</b> for iPhone with iOS 26. Join with one tap."
            }
          </T>
        </p>
        <div className="flex flex-wrap gap-3 text-sm mb-5">
          <a
            href={`${BASE_PATH}/docs/klarbefund/klarbefund-user-guide`}
            className="text-(--accent) underline underline-offset-2 hover:text-(--text-primary) transition-colors"
          >
            {t("The app, screen by screen")}
          </a>
          <a
            href={`${BASE_PATH}/meinbefund/privacy.html`}
            className="text-(--accent) underline underline-offset-2 hover:text-(--text-primary) transition-colors"
          >
            {t("Privacy policy")}
          </a>
        </div>
        <div className="max-w-xl">
          <TestflightJoin basePath={BASE_PATH} />
        </div>
      </div>
 
      <KlarbefundTourPhone basePath={BASE_PATH} alt={t(TOUR_ALT)} />
    </section>
  );
}