app / frontend /src /components /landing /ProjectsSection.jsx
Aissugur Kurganbekov
Claude Opus 4.8
Tamga β€” evidence-backed customs document audit
373030b
Raw History Blame Contribute Delete
2.97 kB
import useInViewAnimation from "./useInViewAnimation";
import DocCard from "./DocCards";
import "./sections.css";
/* Three real Tamga capabilities in the reference "projects" layout.
Each visual is a light grid panel staging 1–2 DocCard mockups β€”
self-contained CSS, no external media. */
const PROJECTS = [
{
name: "Packet audit",
desc:
"Upload the full declaration packet β€” invoice, packing list, CMR, certificate β€” and Tamga cross-checks every shared field across documents, flagging each mismatch with the exact source line it read.",
stage: "audit",
visualLabel:
"Mockup: a packing list and an audit report side by side, the report flagging the net-weight mismatch 4,120 kg versus 4,210 kg with a citation",
cards: [
{ variant: "packing", pos: "back" },
{ variant: "report", pos: "front" },
],
},
{
name: "Ask with citations",
desc:
"Ask anything about your documents and get an answer that cites the passage it came from. If the packet does not contain the answer, Tamga abstains and says so β€” it never guesses.",
stage: "ask",
visualLabel:
"Mockup: the question β€œWhat is the HS code?” answered with 9405 11 00 09 and a citation to the declaration",
cards: [{ variant: "answer", pos: "solo" }],
},
{
name: "Evidence reports",
desc:
"Every audit compiles into a findings report: each check, its verdict, and the cited evidence β€” ready to hand to a client or keep on file for the inspector.",
stage: "evidence",
visualLabel:
"Mockup: an audit report with cited findings alongside a stamped certificate of origin",
cards: [
{ variant: "report", pos: "front" },
{ variant: "certificate", pos: "back" },
],
},
];
// Each item fades in independently, so the hook lives in a child component.
function ProjectItem({ project }) {
const [ref, inView] = useInViewAnimation();
return (
<article
ref={ref}
className={inView ? "st-fade-up" : "st-hidden"}
style={{ animationDelay: "0.1s" }}
>
<div className="st-project-text">
<h3 className="st-project-name st-serif">{project.name}</h3>
<p className="st-project-desc">{project.desc}</p>
</div>
<div
className="st-project-visual"
role="img"
aria-label={project.visualLabel}
>
<div className={`st-project-stage st-stage--${project.stage}`}>
{project.cards.map((card) => (
<DocCard
key={card.variant}
variant={card.variant}
className={`st-stage-card st-stage-card--${card.pos}`}
/>
))}
</div>
</div>
</article>
);
}
export default function ProjectsSection() {
return (
<section id="work" className="st-projects" aria-label="What Tamga does">
{PROJECTS.map((p) => (
<ProjectItem key={p.name} project={p} />
))}
</section>
);
}