Blocks
Website sections
Every section of the VCare website as a block. Installing one pulls in the website kit, theme and panels it uses. Wrap the page (or the block) in .vc-site so it takes the website's look.
App Phones section
A row of phones showing app screenshots.
import AppPhones from "@/registry/vcare/site/AppPhones"
export default function SiteAppPhonesDemo() {
return (
<div className="vc-site py-6">
<AppPhones shots={[["app-doctors", "Doctors"], ["app-home", "Home"], ["app-labs", "Lab tests"]]} />
</div>
)
}import { motion } from 'motion/react';
import Phone from './ui/Phone';
const pos = ['left-0 top-12 w-[40%] -rotate-6', 'left-1/2 top-0 z-10 w-[46%] -translate-x-1/2', 'right-0 top-20 w-[40%] rotate-6'];
const ease = [0.22, 1, 0.36, 1] as const;
/** Three framed screens, the middle one in front. Used on the app and product pages. */
export default function AppPhones({ shots }: { shots: [string, string][] }) {
return (
<div className="relative mx-auto h-[500px] w-full max-w-[500px] sm:h-[600px]">
<div className="absolute left-1/2 top-1/2 h-[400px] w-[400px] -translate-x-1/2 -translate-y-1/2 rounded-full bg-gradient-to-br from-sky-200 to-teal-100 blur-2xl" />
{[shots[0], shots[1], shots[2]].map((s, k) => s && (
<motion.div key={s[0]} className={`absolute ${pos[k]}`} initial={{ opacity: 0, y: 36 }} animate={{ opacity: 1, y: 0 }} transition={{ duration: 0.9, delay: 0.1 + k * 0.1, ease }}>
<Phone srcs={[`/shots/${s[0]}.webp`]} alt={s[1]} />
</motion.div>
))}
</div>
);
}npx shadcn@latest add @vcare/site-app-phonesAlso installs site-kit, site-theme.
Brain AI section
The AI assistant section with the mascot and example tasks.
import BrainAI from "@/registry/vcare/site/BrainAI"
export default function SiteBrainAIDemo() {
return (
<div className="vc-site">
<BrainAI />
</div>
)
}import { motion } from 'motion/react';
import { LuArrowUp, LuCheck, LuChevronDown, LuMessageSquare, LuMic, LuPlus, LuSearch, LuShieldCheck } from 'react-icons/lu';
import { Avatar, Badge, Item } from './ui/kit';
import { Reveal } from './ui/Reveal';
const chats = ['Waiting for the doctor', 'Pending lab results', 'Today’s collections', 'Low stock this week', 'Bed availability'];
const providers = ['#10a37f', '#d97757', '#4285f4', '#0f1b2d', '#e0245e'];
export default function BrainAI() {
return (
<section id="brain-ai" className="relative overflow-hidden section-y">
<div className="container-x text-center">
<Reveal><img src="/art/mascot-thinking.webp" alt="" width="96" height="96" className="mx-auto h-20 w-20 object-contain" /></Reveal>
<Reveal as="h2" className="h-section mx-auto mt-4 max-w-3xl" delay={0.05}>An assistant that can look, but never touch</Reveal>
<Reveal as="p" className="lead mx-auto mt-5 max-w-2xl" delay={0.1}>Brain AI answers using the asker's own permissions. It only reads, and can't change, send or book anything.</Reveal>
</div>
<div className="container-x relative mt-14">
<img src="/art/vivi.webp" alt="" width="768" height="768" loading="lazy" className="float-y absolute -left-2 -top-14 z-10 hidden h-28 w-28 object-contain lg:block xl:-left-10" />
<img src="/art/mascot-done.webp" alt="" width="768" height="768" loading="lazy" className="float-y absolute -right-2 -top-14 z-10 hidden h-28 w-28 object-contain lg:block xl:-right-10" style={{ animationDelay: '-3s' }} />
<Reveal delay={0.1}>
<div className="mx-auto max-w-[1120px] overflow-hidden rounded-[28px] bg-[#f4f6f9] p-3 shadow-[0_40px_90px_-40px_rgb(15_27_45/0.3)] ring-1 ring-black/[0.06] lg:aspect-[16/10]">
<div className="grid gap-3 text-left lg:h-full lg:grid-cols-[230px_1fr_250px]">
<div className="hidden flex-col rounded-2xl bg-white p-3 ring-1 ring-black/[0.05] lg:flex">
<div className="flex items-center justify-between"><span className="rounded-lg bg-primary px-2.5 py-1 text-[11.5px] font-semibold text-white">New chat</span><LuSearch size={14} className="text-[#9aa0ad]" /></div>
<p className="mb-1.5 mt-4 px-1 text-[10.5px] font-semibold uppercase tracking-wide text-[#9aa0ad]">Recent</p>
{chats.map((c, i) => <div key={c} className={`flex items-center gap-2 rounded-lg px-2 py-2 text-[12px] ${i === 0 ? 'bg-primary/10 font-semibold text-primary' : 'text-[#4b5160]'}`}><LuMessageSquare size={13} /><span className="truncate">{c}</span></div>)}
<div className="mt-auto flex items-center gap-2 rounded-xl bg-[#f7f7f9] p-2"><Avatar name="Nora Bennett" size={26} /><div className="leading-tight"><p className="text-[11.5px] font-semibold text-ink">Nora Bennett</p><p className="text-[10px] text-[#6b7280]">Front desk</p></div></div>
</div>
<div className="flex min-h-[420px] flex-col rounded-2xl bg-white p-5 ring-1 ring-black/[0.05] lg:min-h-0">
<Item i={0} className="ml-auto max-w-[75%] rounded-2xl rounded-br-md bg-primary px-4 py-2.5 text-[13px] text-white">How many patients are waiting for the doctor?</Item>
<Item i={1} className="mt-3 flex flex-wrap gap-1.5">{['Read queue', 'Read appointments'].map((t) => <Badge key={t} tone="neutral"><LuCheck size={10} strokeWidth={3} />{t}</Badge>)}</Item>
<Item i={2} className="mt-3 max-w-[85%] rounded-2xl rounded-bl-md bg-[#f1f2f5] px-4 py-3 text-[13px] leading-relaxed text-ink">6 are waiting. The longest wait is 14 minutes: Anna Meyer, Cardiology. Want the full list?</Item>
<Item i={3} className="mt-3 overflow-hidden rounded-xl ring-1 ring-black/[0.06]">
{[['Anna Meyer', 'Cardiology', '14 min'], ['Daniel Reed', 'General', '8 min'], ['Emma Clarke', 'General', '5 min']].map(([n, d, w]) => <div key={n} className="flex items-center gap-2.5 border-b border-[#f1f2f5] px-3 py-2 text-[12px] last:border-0"><Avatar name={n} size={22} /><span className="flex-1 font-semibold text-ink">{n}</span><span className="text-[#6b7280]">{d}</span><Badge tone="amber">{w}</Badge></div>)}
</Item>
<div className="mt-auto flex items-center gap-3 rounded-2xl bg-[#f4f6f9] px-4 py-3 text-[13px] text-[#9aa0ad]"><LuPlus size={16} className="text-ink" /><span className="flex-1">Ask Brain AI about your hospital</span><span className="grid h-8 w-8 place-items-center rounded-full bg-primary text-white"><LuArrowUp size={15} /></span></div>
</div>
<div className="hidden rounded-2xl bg-white p-4 ring-1 ring-black/[0.05] lg:block">
<div className="flex items-center gap-2 text-[13px] font-semibold text-ink"><LuShieldCheck size={15} className="text-vcare" />Reading with your access</div>
<div className="mt-4 space-y-2.5">{['Patients', 'Queue', 'Appointments', 'Billing', 'Lab'].map((t, i) => <div key={t} className="flex items-center justify-between text-[12px] text-[#4b5160]">{t}<span className={`h-4 w-7 rounded-full p-0.5 ${i < 4 ? 'bg-primary' : 'bg-[#dcdee4]'}`}><span className={`block h-3 w-3 rounded-full bg-white transition ${i < 4 ? 'translate-x-3' : ''}`} /></span></div>)}</div>
<Badge tone="teal" className="mt-5">Read only</Badge>
<p className="mt-2 text-[11.5px] leading-relaxed text-[#6b7280]">Permissions, modules and hospital isolation apply exactly as on screen.</p>
</div>
</div>
</div>
</Reveal>
</div>
<div className="container-x mt-20 text-center">
<Reveal as="h3" className="h-sub">Ask anything about your hospital</Reveal>
<Reveal as="p" className="lead mx-auto mt-3 max-w-xl" delay={0.05}>Pick OpenAI, Claude, Gemini or a model on your own network.</Reveal>
<Reveal delay={0.1} className="mt-6 flex justify-center gap-3">{providers.map((c) => <span key={c} className="h-8 w-8 rounded-full ring-2 ring-white shadow" style={{ background: c }} />)}</Reveal>
<Reveal delay={0.15} className="relative mx-auto mt-10 max-w-3xl">
<motion.div aria-hidden="true" className="absolute inset-x-6 -top-1 h-1.5 rounded-full blur-md" style={{ background: 'linear-gradient(90deg,#7dd3fc,#c4b5fd,#f9a8d4)' }} animate={{ opacity: [0.5, 1, 0.5] }} transition={{ duration: 3, repeat: Infinity }} />
<div className="relative flex items-center gap-3 rounded-[28px] bg-white px-5 py-4 text-left shadow-[0_30px_70px_-20px_rgb(15_27_45/0.25)] ring-1 ring-black/[0.06]">
<LuPlus size={20} className="text-ink" /><span className="flex-1 text-[15px] text-[#9aa0ad]">Ask me anything</span>
<span className="hidden items-center gap-1 text-[13px] font-medium text-[#4b5160] sm:flex">Claude Sonnet <LuChevronDown size={14} /></span><LuMic size={18} className="text-[#6b7280]" />
<span className="grid h-10 w-10 place-items-center rounded-full bg-primary text-white"><LuArrowUp size={18} /></span>
</div>
</Reveal>
</div>
</section>
);
}npx shadcn@latest add @vcare/site-brain-aiAlso installs site-kit, site-theme.
Co-designed section
Designed with the people who use it: a card per role with what they told us and what changed.
import CoDesigned from "@/registry/vcare/site/CoDesigned"
export default function SiteCoDesignedDemo() {
return (
<div className="vc-site">
<CoDesigned />
</div>
)
}import type { IconType } from 'react-icons';
import { LuStethoscope, LuFlaskConical, LuActivity, LuHeartPulse, LuPill, LuUsers, LuReceipt, LuScanLine } from 'react-icons/lu';
import { ChipList } from './components/chip-list';
import { FeedbackPanel } from './components/feedback-panel';
import { SectionHeading } from './components/section-heading';
import { TintCard } from './components/tint-card';
interface Person { role: string; Icon: IconType; soft: string; color: string; span: string; title: string; body: string; said: string }
/**
* The people who shaped VCare. Each card is in the Departments card style: a soft tint, a role chip, what VCare does for
* them now, and a small panel with what slowed their day down before. Every "body" is a feature that exists in the app.
*/
const people: Person[] = [
{ role: 'Doctors', Icon: LuStethoscope, soft: 'var(--visit-soft)', color: 'var(--visit)', span: 'md:col-span-3', title: 'Order a test without leaving the visit.', body: 'Notes, orders and prescriptions sit on one visit, and a test you order gets the patient a lab token on its own.', said: 'Ordering a test meant a second trip through another screen.' },
{ role: 'Lab technicians', Icon: LuFlaskConical, soft: 'var(--labs-soft)', color: 'var(--labs)', span: 'md:col-span-3', title: 'Labels and tokens in one step.', body: 'Collect samples and print barcode labels together, with a token queue and a room screen that calls the next patient.', said: 'Hand written sample labels, and patients asking when their turn is.' },
{ role: 'Physiotherapists', Icon: LuActivity, soft: 'var(--active360-soft)', color: 'var(--active360)', span: 'md:col-span-2', title: 'Programmes ready to assign.', body: 'Phase programmes and a basic stretches set, with a session queue of their own.', said: 'The same exercise sheets, written out again for every patient.' },
{ role: 'Nurses', Icon: LuHeartPulse, soft: 'var(--rx-soft)', color: 'var(--rx)', span: 'md:col-span-2', title: 'The whole ward at a glance.', body: 'Rounds, charts and a live bed board, so every bed’s needs are clear.', said: 'Finding out which bed needs what, on a busy shift.' },
{ role: 'Radiographers', Icon: LuScanLine, soft: 'var(--vcare-soft)', color: 'var(--vcare)', span: 'md:col-span-2', title: 'Imaging is its own desk.', body: 'Its own check in, queue, setup and room screen.', said: 'Imaging was a corner of another department.' },
{ role: 'Pharmacists', Icon: LuPill, soft: 'var(--rx-soft)', color: 'var(--rx)', span: 'md:col-span-2', title: 'Safety checks on every prescription.', body: 'Interaction and allergy checks, and stock that goes out earliest expiry first.', said: 'Checking interactions and expiry by memory.' },
{ role: 'Front desk', Icon: LuUsers, soft: 'var(--brain-soft)', color: 'var(--brain)', span: 'md:col-span-2', title: 'One box for every walk in.', body: 'Type the mobile number: the family on it shows up, or the new patient is typed right there.', said: 'Two searches and a long form for every walk in.' },
{ role: 'Billing', Icon: LuReceipt, soft: '#fff3d6', color: '#b45309', span: 'md:col-span-2', title: 'Bill first, and the lab follows.', body: 'Remove a test from the bill and it is cancelled, and every invoice shows who the patient is.', said: 'A test removed from the bill was still waiting in the lab.' },
];
const roles = ['Doctors', 'Lab technicians', 'Physiotherapists', 'Nurses', 'Pharmacists', 'Front desk'];
export default function CoDesigned() {
return (
<section id="designed-with" className="section-y">
<div className="container-x">
<SectionHeading
title="Designed by the people who use it, together with us."
lead="Doctors, lab technicians, physiotherapists and nurses sat with us, told us what slowed their day down, and tried each screen until it fit their work. So every role gets an experience made for it."
>
<ChipList items={roles} />
</SectionHeading>
<div className="mt-14 grid gap-5 md:grid-cols-6">
{people.map((p, i) => (
<TintCard
key={p.role}
index={i}
label={p.role}
icon={p.Icon}
title={p.title}
tint={[p.soft, p.color]}
span={p.span}
footer={
<FeedbackPanel who={p.role} color={p.color}>
{p.said}
</FeedbackPanel>
}
>
{p.body}
</TintCard>
))}
</div>
</div>
</section>
);
}npx shadcn@latest add @vcare/site-co-designedAlso installs site-chip-list, site-feedback-panel, site-section-heading, site-theme, site-tint-card.
Call to action section
The closing call to action on a sky background.
import Cta from "@/registry/vcare/site/Cta"
export default function SiteCtaDemo() {
return (
<div className="vc-site">
<Cta appUrl="#" />
</div>
)
}import { useEffect, useState, type ReactNode } from 'react';
import { motion } from 'motion/react';
import { LuArrowRight, LuSmartphone } from 'react-icons/lu';
import { ProfileCard } from './widgets/profile-card';
import { BarCard } from './widgets/bar-card';
import { DonutCard } from './widgets/donut-card';
import { PatientsTable } from './widgets/patients-table';
import { SideNav } from './widgets/side-nav';
import { Heatmap } from './widgets/heatmap';
import { QuickActions } from './widgets/quick-actions';
import { Reveal } from './ui/Reveal';
const ease = [0.25, 1, 0.5, 1] as const;
function Cell({ i, className, children }: { i: number; className: string; children: ReactNode }) {
return (
<motion.div className={className} initial={{ opacity: 0, y: 40 }} whileInView={{ opacity: 1, y: 0 }} viewport={{ once: true, amount: 0.1 }} transition={{ duration: 0.9, delay: i * 0.07, ease }}>
{children}
</motion.div>
);
}
/**
* The closing band: the sky artwork (2000 × 667) with its framed panel, the heading and buttons sitting inside the panel on wide
* screens. These are the panel's edges as a share of the artwork.
*/
function SkyCta({ appUrl }: { appUrl: string }) {
return (
<section className="relative mt-10 overflow-hidden sm:mt-16">
<div className="relative md:aspect-[2000/667]">
<img src="/art/footer-sky.webp" alt="" aria-hidden="true" loading="lazy" className="absolute inset-0 h-full w-full object-cover md:object-fill" />
<div className="relative z-10 flex flex-col items-center justify-center px-5 py-24 text-center md:absolute md:left-[16%] md:right-[15%] md:top-[9%] md:h-[72.3%] md:px-8 md:py-0">
<Reveal as="h2" className="h-section mx-auto max-w-3xl !text-white">Start running your hospital on VCare</Reveal>
<Reveal as="p" className="mx-auto mt-4 max-w-xl text-[clamp(15px,1.15vw,18px)] leading-[1.6] text-white/85" delay={0.08}>Book a short walkthrough with the team and see VCare running on a sample clinic.</Reveal>
<Reveal delay={0.15} className="mt-8 flex flex-col items-center justify-center gap-3 sm:flex-row">
<a href={appUrl} className="inline-flex h-12 items-center gap-2 rounded-xl bg-[#1b3fd9] px-6 text-[15.5px] font-semibold text-white shadow-[0_10px_30px_-10px_rgb(8_20_80/0.7),inset_0_1px_0_rgb(255_255_255/0.25)] ring-1 ring-white/25 transition hover:-translate-y-0.5 hover:bg-[#1736c4]">Book a demo <LuArrowRight size={16} /></a>
<a href="#patient-app" className="inline-flex h-12 items-center gap-2 rounded-xl bg-[#0f1424] px-6 text-[15.5px] font-semibold text-white shadow-[0_10px_30px_-10px_rgb(8_12_30/0.7)] ring-1 ring-white/10 transition hover:-translate-y-0.5 hover:bg-black"><LuSmartphone size={16} /> See the mobile apps</a>
</Reveal>
</div>
</div>
</section>
);
}
export default function Cta({ appUrl }: { appUrl: string }) {
// While choosing a look, `?cta=classic` shows the earlier collage band instead of the sky.
const [classic, setClassic] = useState(false);
useEffect(() => setClassic(new URLSearchParams(window.location.search).get('cta') === 'classic'), []);
if (!classic) return <SkyCta appUrl={appUrl} />;
return (
<section className="relative overflow-hidden pt-16 sm:pt-24">
{/* A flat collage of real screens that bleeds off both edges and fades out under the heading. */}
<div aria-hidden="true" className="pointer-events-none relative h-[420px] sm:h-[540px] [mask-image:linear-gradient(to_bottom,#000_38%,transparent_92%)]">
<div className="absolute left-1/2 top-8 w-[1560px] -translate-x-1/2">
<div className="grid grid-cols-5 gap-4">
<Cell i={0} className="col-span-2 h-[270px]"><Heatmap /></Cell>
<Cell i={1} className="h-[270px]"><BarCard /></Cell>
<Cell i={2} className="h-[270px]"><DonutCard /></Cell>
<Cell i={3} className="h-[270px]"><ProfileCard /></Cell>
<Cell i={4} className="col-span-3 h-[340px]"><PatientsTable /></Cell>
<Cell i={5} className="h-[340px]"><QuickActions /></Cell>
<Cell i={6} className="h-[340px]"><SideNav active="Dashboard" /></Cell>
</div>
</div>
</div>
<div className="container-x relative z-10 -mt-8 pb-20 text-center sm:-mt-10 sm:pb-28">
<Reveal as="h2" className="h-section mx-auto max-w-3xl">Start running your hospital on VCare</Reveal>
<Reveal as="p" className="lead mx-auto mt-4 max-w-xl" delay={0.08}>Book a short walkthrough with the team and see VCare running on a sample clinic.</Reveal>
<Reveal delay={0.15} className="mt-8 flex flex-col items-center justify-center gap-3 sm:flex-row">
<a href={appUrl} className="btn btn-primary">Book a demo <LuArrowRight size={16} /></a>
<a href="#patient-app" className="btn btn-ghost"><LuSmartphone size={16} /> See the mobile apps</a>
</Reveal>
</div>
</section>
);
}npx shadcn@latest add @vcare/site-ctaAlso installs site-bar-card, site-donut-card, site-heatmap, site-kit, site-patients-table, site-profile-card, site-quick-actions, site-side-nav, site-theme.
Departments section
Department cards in soft tints, each with a live panel.
import Departments from "@/registry/vcare/site/Departments"
export default function SiteDepartmentsDemo() {
return (
<div className="vc-site">
<Departments />
</div>
)
}import type { ComponentType } from 'react';
import { LuBedDouble, LuClipboardList, LuFlaskConical, LuLandmark, LuMessageCircle, LuPackage, LuPill, LuScanLine, LuShieldCheck, LuUsersRound } from 'react-icons/lu';
import type { IconType } from 'react-icons';
import { SectionHeading } from './components/section-heading';
import { TintCard } from './components/tint-card';
import Pharmacy from './panels/Pharmacy';
import BedBoard from './panels/BedBoard';
import Forms from './panels/Forms';
import Finance from './panels/Finance';
import Crm from './panels/Crm';
import Lab from './panels/Lab';
import Imaging from './panels/Imaging';
import Inventory from './panels/Inventory';
import Insurance from './panels/Insurance';
import Hr from './panels/Hr';
interface Department { id: string; name: string; title: string; body: string; Icon: IconType; Panel: ComponentType; span: string; soft: string; color: string }
const departments: Department[] = [
{ id: 'pharmacy', name: 'Pharmacy', title: 'Dispense with the safety net on.', body: 'Allergy, interaction and duplicate therapy checks the pharmacist must acknowledge. FEFO batches, substitutes, partial fills and a controlled drug register.', Icon: LuPill, Panel: Pharmacy, span: 'md:col-span-3', soft: 'var(--rx-soft)', color: 'var(--rx)' },
{ id: 'inpatient', name: 'Inpatient', title: 'A live bed board for every ward.', body: 'Admit, transfer and discharge. Rounds, medication charts, vitals trends and room charges per billing cycle.', Icon: LuBedDouble, Panel: BedBoard, span: 'md:col-span-3', soft: 'var(--visit-soft)', color: 'var(--visit)' },
{ id: 'forms', name: 'Forms engine', title: 'Build any clinical form, no code.', body: 'Drag and drop builder with 27 field types, conditional logic, scoring and versioning.', Icon: LuClipboardList, Panel: Forms, span: 'md:col-span-2', soft: 'var(--labs-soft)', color: 'var(--labs)' },
{ id: 'accounts', name: 'Accounts', title: 'Books that keep themselves.', body: 'Billing, stock and payroll post to a general ledger. P&L, balance sheet, GST and TDS extracts.', Icon: LuLandmark, Panel: Finance, span: 'md:col-span-2', soft: 'var(--active360-soft)', color: 'var(--active360)' },
{ id: 'crm', name: 'Patient CRM', title: 'WhatsApp enquiries in one inbox.', body: 'Instagram and Messenger too. Follow up in a pipeline and book from the chat.', Icon: LuMessageCircle, Panel: Crm, span: 'md:col-span-2', soft: 'var(--brain-soft)', color: 'var(--brain)' },
{ id: 'lab', name: 'Laboratory', title: 'From sample to verified result.', body: 'Samples, results, reference range flags, verification and doctor review.', Icon: LuFlaskConical, Panel: Lab, span: 'md:col-span-2', soft: 'var(--labs-soft)', color: 'var(--labs)' },
{ id: 'imaging', name: 'Imaging', title: 'Studies, reports and a viewer.', body: 'Receive orders, attach images, report and verify, with an in browser viewer.', Icon: LuScanLine, Panel: Imaging, span: 'md:col-span-2', soft: 'var(--vcare-soft)', color: 'var(--vcare)' },
{ id: 'inventory', name: 'Inventory', title: 'Every batch and expiry in sight.', body: 'Batches, expiry, suppliers, purchases and a partner portal for stock updates.', Icon: LuPackage, Panel: Inventory, span: 'md:col-span-2', soft: '#fff3d6', color: '#b45309' },
{ id: 'insurance', name: 'Insurance', title: 'Claims that do not get lost.', body: 'Eligibility, pre authorisation, claims, rejection and resubmission.', Icon: LuShieldCheck, Panel: Insurance, span: 'md:col-span-3', soft: 'var(--vcare-soft)', color: 'var(--vcare)' },
{ id: 'hr', name: 'HR and payroll', title: 'People, rosters and payslips.', body: 'Recruitment, leave, attendance, rosters, payroll with PF, ESI and PT, and a staff app.', Icon: LuUsersRound, Panel: Hr, span: 'md:col-span-3', soft: 'var(--visit-soft)', color: 'var(--visit)' },
];
export default function Departments() {
return (
<section id="modules" className="section-y">
<div className="container-x">
<SectionHeading title="Deep where it matters. Connected everywhere." lead="Each module is built end to end, then wired into the same visit, patient and ledger." />
<div className="mt-14 grid gap-5 md:grid-cols-6">
{departments.map((d, i) => (
<TintCard key={d.id} index={i} label={d.name} icon={d.Icon} title={d.title} tint={[d.soft, d.color]} span={d.span} bleed footer={<d.Panel />}>
{d.body}
</TintCard>
))}
</div>
</div>
</section>
);
}npx shadcn@latest add @vcare/site-departmentsAlso installs site-bed-board-panel, site-crm-panel, site-finance-panel, site-forms-panel, site-hr-panel, site-imaging-panel, site-insurance-panel, site-inventory-panel, site-lab-panel, site-pharmacy-panel, site-section-heading, site-theme, site-tint-card.
Ecosystem section
The app family around one patient record.
import Ecosystem from "@/registry/vcare/site/Ecosystem"
export default function SiteEcosystemDemo() {
return (
<div className="vc-site">
<Ecosystem />
</div>
)
}import { useRef, useState } from 'react';
import { AnimatePresence, motion, useInView, useReducedMotion } from 'motion/react';
import { LuCalendarCheck, LuPackageCheck, LuFileCheck, LuActivity, LuLock, LuRefreshCw, LuUserRound, LuStethoscope, LuPill, LuFlaskConical, LuHeartPulse, LuBrain, LuBuilding2 } from 'react-icons/lu';
import type { IconType } from 'react-icons';
import { Reveal } from './ui/Reveal';
import { Frame } from './ui/Frame';
import Phone from './ui/Phone';
/** One gentle curve for everything in this section, so nothing bounces or wobbles. */
const ease = [0.22, 1, 0.36, 1] as const;
const MS = 5200;
interface Product { id: string; name: string; title: string; desc: string; logo: string; color: string; soft: string; shot: string; patient: [IconType, string]; staff: [IconType, string] }
const products: Product[] = [
{ id: 'vcare', name: 'VCare', title: 'The hospital OS', desc: 'Front desk, clinical, pharmacy, wards, billing, accounts and HR for your staff, and the hub every patient app connects to.', logo: 'vcare', color: 'var(--vcare)', soft: 'var(--vcare-soft)', shot: 'app-home', patient: [LuRefreshCw, 'One record at every hospital'], staff: [LuBuilding2, 'Each hospital keeps its own data'] },
{ id: 'visit', name: 'visitDoc', title: 'Find and book doctors', desc: 'Appointments and video consults, booked from the patient app in a few taps.', logo: 'visit', color: 'var(--visit)', soft: 'var(--visit-soft)', shot: 'app-doctors', patient: [LuCalendarCheck, 'Booked for 10:30 tomorrow'], staff: [LuStethoscope, 'New booking in Dr. Rivera’s calendar'] },
{ id: 'rx', name: 'RxNow', title: 'Medicines, delivered', desc: 'Prescription refills and a medicine shop with pickup or delivery from your own pharmacy.', logo: 'rx', color: 'var(--rx)', soft: 'var(--rx-soft)', shot: 'app-rx', patient: [LuPackageCheck, 'Order packed, out for delivery'], staff: [LuPill, 'App order in the pharmacy queue'] },
{ id: 'labs', name: 'LabEasy', title: 'Tests and reports', desc: 'Order lab tests, collect at home or in the lab, and get the report on the phone.', logo: 'labs', color: 'var(--labs)', soft: 'var(--labs-soft)', shot: 'app-labs', patient: [LuFileCheck, 'CBC report is ready'], staff: [LuFlaskConical, 'Result verified by the lab'] },
{ id: 'active360', name: 'Active360', title: 'Know your health age', desc: 'A preventive healthspan programme with a score, a blood age and a personal plan.', logo: 'active360', color: 'var(--active360)', soft: 'var(--active360-soft)', shot: 'app-active360', patient: [LuActivity, 'Healthspan score 70'], staff: [LuHeartPulse, 'Clinician released the plan'] },
{ id: 'brain', name: 'Brain AI', title: 'An assistant that reads', desc: 'Ask in plain language. It looks things up with your own access and never changes a record.', logo: 'brain', color: 'var(--brain)', soft: 'var(--brain-soft)', shot: 'app-brain', patient: [LuLock, 'Reads only, never edits'], staff: [LuBrain, 'Uses the asker’s permissions'] },
];
function Chip({ icon: Icon, text, color, side, label }: { icon: IconType; text: string; color: string; side: 'left' | 'right'; label: string }) {
return (
<motion.div initial={{ opacity: 0, y: 8 }} animate={{ opacity: 1, y: 0 }} exit={{ opacity: 0 }} transition={{ duration: 0.7, ease }} className={`absolute z-20 ${side === 'left' ? 'left-0 top-[24%]' : 'right-0 bottom-[22%]'}`}>
<div className="flex max-w-[230px] items-center gap-2.5 rounded-2xl bg-white py-2.5 pl-2.5 pr-4 shadow-[0_12px_30px_-14px_rgb(15_27_45/0.28),0_0_0_1px_rgb(22_24_29/0.06)]">
<span className="grid h-8 w-8 shrink-0 place-items-center rounded-xl text-white" style={{ background: color }}><Icon size={16} /></span>
<span className="leading-tight"><span className="block text-[10.5px] font-semibold uppercase tracking-wider text-muted-foreground">{label}</span><span className="block text-[13px] font-semibold text-ink">{text}</span></span>
</div>
</motion.div>
);
}
export default function Ecosystem() {
const [active, setActive] = useState(0);
const [hover, setHover] = useState(false);
const ref = useRef<HTMLDivElement>(null);
const visible = useInView(ref, { amount: 0.4 });
const reduce = useReducedMotion();
const playing = visible && !hover && !reduce;
const p = products[active];
return (
<section id="platform" className="relative overflow-hidden section-y">
<div className="container-x">
<Frame className="mx-auto max-w-3xl text-center">
<Reveal as="h2" className="h-section" delay={0.05}>Your hospital, and every patient's pocket.</Reveal>
<Reveal as="p" className="lead mt-5" delay={0.1}>Staff run the hospital in VCare. Patients get one app that connects all of it, across every facility they visit.</Reveal>
</Frame>
<div ref={ref} onMouseEnter={() => setHover(true)} onMouseLeave={() => setHover(false)} className="mt-14 grid items-center gap-12 lg:grid-cols-[0.95fr_1fr]">
<div>
<div role="tablist" aria-label="Products" className="relative rounded-[28px] bg-white/70 p-2 ring-1 ring-black/[0.05]">
{products.map((x, i) => {
const on = i === active;
return (
<button key={x.id} role="tab" aria-selected={on} onClick={() => setActive(i)} className="relative flex h-[72px] w-full items-center gap-4 rounded-[22px] px-4 text-left outline-offset-[-2px]">
{on && <motion.span layoutId="eco-active" transition={{ type: 'spring', stiffness: 240, damping: 34, mass: 0.9 }} className="absolute inset-0 rounded-[22px] bg-white shadow-[0_1px_2px_rgb(15_27_45/0.05),0_10px_26px_-12px_rgb(15_27_45/0.22)] ring-1 ring-black/[0.06]" />}
<span className="relative grid h-11 w-11 shrink-0 place-items-center overflow-hidden rounded-xl bg-white shadow-[0_0_0_1px_rgb(22_24_29/0.08)]"><img src={`/img/app-${x.logo}.png`} alt={`${x.name} logo`} width="44" height="44" loading="lazy" className="h-full w-full object-contain p-0.5" /></span>
<span className="relative min-w-0 flex-1 leading-tight">
<span className={`block text-[16.5px] font-semibold tracking-tight transition-colors duration-500 ${on ? 'text-ink' : 'text-(--body)/70'}`}>{x.name}</span>
<span className="block truncate text-[13.5px] text-muted-foreground">{x.title}</span>
</span>
{on && (
<span className="absolute inset-x-5 bottom-1.5 h-[2px] overflow-hidden rounded-full bg-black/5">
<span key={`${active}-${playing}`} className="block h-full origin-left rounded-full" style={{ background: x.color, ...(playing ? { animation: `step-fill ${MS}ms linear forwards` } : { transform: 'scaleX(1)' }) }} onAnimationEnd={() => setActive((a) => (a + 1) % products.length)} />
</span>
)}
</button>
);
})}
</div>
<div className="mt-6 min-h-[96px] px-3">
<AnimatePresence mode="wait">
<motion.p key={p.id} initial={{ opacity: 0, y: 6 }} animate={{ opacity: 1, y: 0 }} exit={{ opacity: 0 }} transition={{ duration: 0.5, ease }} className="max-w-[460px] text-[16.5px] leading-relaxed text-(--body)/80">
<span className="font-semibold text-ink">{p.name}. </span>{p.desc}
</motion.p>
</AnimatePresence>
</div>
</div>
<div className="relative mx-auto flex h-[560px] w-full max-w-[520px] items-center justify-center sm:h-[620px]">
<span aria-hidden="true" className="absolute h-[400px] w-[400px] rounded-full blur-3xl transition-colors duration-[900ms] ease-out" style={{ backgroundColor: p.soft }} />
<Phone srcs={products.map((x) => `/shots/${x.shot}.webp`)} active={active} alt={`${p.name} in the VCare patient app`} className="relative z-10 w-[58%]" />
<div className="pointer-events-none absolute inset-0">
<AnimatePresence mode="wait">
<motion.div key={p.id} className="absolute inset-0" exit={{ opacity: 0 }} transition={{ duration: 0.35 }}>
<Chip icon={p.patient[0]} text={p.patient[1]} color={p.color} side="left" label="On the phone" />
<Chip icon={p.staff[0]} text={p.staff[1]} color="var(--ink)" side="right" label="In VCare" />
</motion.div>
</AnimatePresence>
</div>
</div>
</div>
</div>
</section>
);
}npx shadcn@latest add @vcare/site-ecosystemAlso installs site-kit, site-theme.
FAQ section
Frequently asked questions as an accordion.
import Faq from "@/registry/vcare/site/Faq"
const items = [
{ q: "Can we start with one department?", a: "Yes. Turn on the modules you need, and add the rest when you are ready." },
{ q: "Does it work on phones?", a: "The web app works on any screen, and there are Android and iOS apps for patients and staff." },
{ q: "Can we move our old records in?", a: "Patients, items and prices import from spreadsheets, and we help with the first import." },
]
export default function SiteFaqDemo() {
return (
<div className="vc-site">
<Faq items={items} />
</div>
)
}import { motion } from 'motion/react';
import { LuChevronDown } from 'react-icons/lu';
import { Reveal } from './ui/Reveal';
export interface QA { q: string; a: string }
const logos = [
{ src: '/img/app-visit.png', cls: 'left-[4%] top-[12%]', d: 0 },
{ src: '/img/app-rx.png', cls: 'right-[5%] top-[8%]', d: 1.2 },
{ src: '/img/app-labs.png', cls: 'left-[8%] bottom-[22%]', d: 2.2 },
{ src: '/img/app-active360.png', cls: 'right-[9%] bottom-[30%]', d: 0.6 },
{ src: '/img/app-brain.png', cls: 'left-[2%] top-[52%]', d: 1.8 },
];
export default function Faq({ items }: { items: QA[] }) {
return (
<section id="faq" className="relative overflow-hidden section-y">
{logos.map((l) => (
<motion.img key={l.src} src={l.src} alt="" width="64" height="64" loading="lazy" className={`absolute hidden h-16 w-16 rounded-2xl bg-white p-1.5 shadow-[0_12px_30px_-8px_rgb(15_27_45/0.25),0_0_0_1px_rgb(22_24_29/0.06)] xl:block ${l.cls}`} animate={{ y: [0, -12, 0] }} transition={{ duration: 6, repeat: Infinity, ease: 'easeInOut', delay: l.d }} />
))}
<div className="container-x relative max-w-3xl">
<div className="text-center">
<Reveal as="h2" className="h-section mt-4" delay={0.05}>Frequently asked questions</Reveal>
<Reveal as="p" className="lead mt-4" delay={0.1}>Everything about running, configuring and rolling out VCare.</Reveal>
</div>
<div className="mt-12 divide-y divide-black/[0.07] rounded-3xl bg-white/80 px-6 ring-1 ring-black/[0.05] backdrop-blur">
{items.map(({ q, a }) => (
<details key={q} className="group py-5">
<summary className="flex cursor-pointer list-none items-center justify-between gap-4 text-[16px] font-medium text-ink [&::-webkit-details-marker]:hidden">{q}<LuChevronDown size={18} className="shrink-0 text-muted-foreground transition-transform duration-300 group-open:rotate-180" /></summary>
<p className="mt-3 pr-8 text-[15px] leading-relaxed text-muted-foreground">{a}</p>
</details>
))}
</div>
</div>
</section>
);
}npx shadcn@latest add @vcare/site-faqAlso installs site-kit, site-theme.
Gallery section
A gallery of product screens.
import Gallery from "@/registry/vcare/site/Gallery"
export default function SiteGalleryDemo() {
return (
<div className="vc-site">
<Gallery />
</div>
)
}import type { ReactNode } from 'react';
import { SectionHeading } from './components/section-heading';
import { PreviewTile } from './components/preview-tile';
import { BedMini } from './minis/bed-mini';
import { DateMini } from './minis/date-mini';
import { InvoiceMini } from './minis/invoice-mini';
import { PaymentMini } from './minis/payment-mini';
import { PayslipMini } from './minis/payslip-mini';
import { PrescriptionMini } from './minis/prescription-mini';
import { QueueCardMini } from './minis/queue-card-mini';
import { ReminderMini } from './minis/reminder-mini';
import { ResultFlagMini } from './minis/result-flag-mini';
import { RosterMini } from './minis/roster-mini';
import { SearchMini } from './minis/search-mini';
import { SlotPickerMini } from './minis/slot-picker-mini';
import { StepperMini } from './minis/stepper-mini';
import { StockMini } from './minis/stock-mini';
import { UploadMini } from './minis/upload-mini';
import { VitalsMini } from './minis/vitals-mini';
const items: { title: string; body: string; preview: ReactNode }[] = [
{ title: 'Patient search', body: 'Find by name, phone, MRN or visit, with a duplicate warning.', preview: <SearchMini /> },
{ title: 'Slot picker', body: 'Live free slots that respect hours, holidays and double booking.', preview: <SlotPickerMini /> },
{ title: 'Queue card', body: 'One primary action per card, wait time and priority at a glance.', preview: <QueueCardMini /> },
{ title: 'Vitals tile', body: 'Blood pressure, pulse, temperature and BMI that calculates itself.', preview: <VitalsMini /> },
{ title: 'Prescription line', body: 'Allergy and interaction warnings while the doctor writes.', preview: <PrescriptionMini /> },
{ title: 'Result flag', body: 'Reference ranges flag every value before the doctor reviews.', preview: <ResultFlagMini /> },
{ title: 'Invoice total', body: 'Tax, discounts and the insurance split built from your price lists.', preview: <InvoiceMini /> },
{ title: 'Payment received', body: 'Partial payments, refunds and receipts that post to the ledger.', preview: <PaymentMini /> },
{ title: 'Bed card', body: 'Free, occupied, reserved or cleaning, with the admit action in place.', preview: <BedMini /> },
{ title: 'Roster shift', body: 'Morning, evening and night shifts with leave and swaps.', preview: <RosterMini /> },
{ title: 'Payslip', body: 'PF, ESI and PT worked out, with consultant payouts from billing.', preview: <PayslipMini /> },
{ title: 'Stock batch', body: 'Batches, expiry dates and low stock alerts for every item.', preview: <StockMini /> },
{ title: 'Claim stepper', body: 'Eligibility, pre authorisation, claim and settlement in one trail.', preview: <StepperMini /> },
{ title: 'Document upload', body: 'Drop reports and scans onto the patient, stored securely.', preview: <UploadMini /> },
{ title: 'Date selector', body: 'Clinic date format, localised month and day names, no native inputs.', preview: <DateMini /> },
{ title: 'Reminder', body: 'WhatsApp, SMS or email reminders on a schedule you set.', preview: <ReminderMini /> },
];
export default function Gallery() {
return (
<section id="components" className="section-y">
<div className="container-x">
<SectionHeading title="Every screen built from the same parts" lead="Tables, forms, boards and dialogs share one language, so a new module feels familiar the first time your team opens it." />
<div className="mt-14 grid gap-x-5 gap-y-6 sm:grid-cols-2 lg:grid-cols-4">
{items.map((it, i) => (
<PreviewTile key={it.title} index={i} title={it.title} preview={it.preview}>
{it.body}
</PreviewTile>
))}
</div>
</div>
</section>
);
}npx shadcn@latest add @vcare/site-galleryAlso installs site-bed-mini, site-date-mini, site-invoice-mini, site-payment-mini, site-payslip-mini, site-prescription-mini, site-preview-tile, site-queue-card-mini, site-reminder-mini, site-result-flag-mini, site-roster-mini, site-search-mini, site-section-heading, site-slot-picker-mini, site-stepper-mini, site-stock-mini, site-theme, site-upload-mini, site-vitals-mini.
Header section
The site header with mega menus, language switcher and a mobile menu.
import Header, { type MenuGroup } from "@/registry/vcare/site/Header"
const menu: MenuGroup[] = [
{
id: "platform",
label: "Platform",
cols: [
{ title: "Product", items: [
{ href: "#", icon: "grid", title: "Overview", desc: "Every department on one platform" },
{ href: "#", icon: "brain", title: "Brain AI", desc: "An assistant that knows the record" },
] },
{ title: "Trust", items: [{ href: "#", icon: "shield", title: "Security", desc: "Roles, audit and backups" }] },
],
feature: { title: "See it with your data", text: "A 30 minute walk through.", cta: "Book a demo", href: "demo", art: "/art/vivi.webp", tone: "vcare" },
},
{
id: "departments",
label: "Departments",
cols: [
{ title: "Clinical", items: [
{ href: "#", icon: "stethoscope", title: "Doctors", desc: "Notes, orders and prescriptions" },
{ href: "#", icon: "flask", title: "Lab", desc: "Samples, labels and reports" },
] },
{ title: "Operations", items: [
{ href: "#", icon: "pill", title: "Pharmacy", desc: "Dispense, stock and billing" },
{ href: "#", icon: "receipt", title: "Billing", desc: "Bills, insurance and accounts" },
] },
],
feature: { title: "Lab and imaging desks", text: "Tokens, queues and room screens.", cta: "Learn more", href: "#", art: "/art/mascot-done.webp", tone: "visit" },
},
]
export default function SiteHeaderDemo() {
return (
<div className="vc-site relative h-[420px] overflow-hidden rounded-2xl border [transform:translateZ(0)] [&>header]:absolute">
<Header
menu={menu}
demoUrl="#"
homeHref="#"
contactHref="#"
current="en"
lang={[{ code: "en", label: "English", href: "#" }, { code: "ml", label: "മലയാളം", href: "#" }]}
labels={{ home: "Home", contact: "Contact", liveDemo: "Book a demo", openMenu: "Open menu", closeMenu: "Close menu", language: "Language" }}
/>
<p className="grid h-full place-items-center text-sm text-muted-foreground">Hover Platform or Departments.</p>
</div>
)
}import { useCallback, useEffect, useRef, useState } from 'react';
import { AnimatePresence, motion } from 'motion/react';
import { LuArrowRight, LuChevronDown, LuGlobe, LuMenu, LuX } from 'react-icons/lu';
import { ICONS } from './icons';
const ease = [0.22, 1, 0.36, 1] as const;
export interface MenuPage { href: string; icon: string; title: string; desc: string }
export interface HeaderLabels { home: string; contact: string; liveDemo: string; openMenu: string; closeMenu: string; language: string }
export interface LangLink { code: string; label: string; href: string }
export interface MenuGroup { id: string; label: string; cols: { title: string; items: MenuPage[] }[]; feature: { title: string; text: string; cta: string; href: string; art: string; tone: string } }
const tones: Record<string, string> = { vcare: 'var(--vcare-soft)', visit: 'var(--visit-soft)', active360: 'var(--active360-soft)', brain: 'var(--brain-soft)', rx: 'var(--rx-soft)' };
const tints = ['bg-[#e6efff] text-[#1d4ed8]', 'bg-[#e3f4f1] text-[#0b7f73]', 'bg-[#efeaff] text-[#5b3fd0]', 'bg-[#fde7ee] text-[#c01f52]', 'bg-[#fff3d6] text-[#92400e]'];
function Item({ page, i, onNavigate }: { page: MenuPage; i: number; onNavigate?: () => void }) {
const Icon = ICONS[page.icon];
return (
<a href={page.href} onClick={onNavigate} className="group flex items-start gap-3 rounded-2xl p-3 transition-colors hover:bg-[#f4f6f9] focus-visible:bg-[#f4f6f9]">
<span className={`grid h-10 w-10 shrink-0 place-items-center rounded-xl ${tints[i % tints.length]}`}>{Icon && <Icon size={18} />}</span>
<span className="min-w-0 leading-snug">
<span className="flex items-center gap-1 text-[15px] font-semibold text-ink">{page.title}<LuArrowRight size={13} className="-translate-x-1 opacity-0 transition-all duration-300 group-hover:translate-x-0 group-hover:opacity-60" /></span>
<span className="mt-0.5 block text-[13px] text-muted-foreground">{page.desc}</span>
</span>
</a>
);
}
function Feature({ f, demo, onNavigate }: { f: MenuGroup['feature']; demo: string; onNavigate?: () => void }) {
const href = f.href === 'demo' ? demo : f.href;
return (
<a href={href} onClick={onNavigate} className="group relative flex h-full min-h-[210px] flex-col justify-between overflow-hidden rounded-[24px] p-6" style={{ background: `linear-gradient(160deg, ${tones[f.tone]}, #fff 120%)` }}>
<img src={f.art} alt="" width="120" height="120" loading="lazy" className="absolute -bottom-3 -right-2 h-28 w-28 object-contain transition-transform duration-500 ease-out group-hover:-translate-y-1" />
<span className="relative max-w-[210px]"><span className="block text-[17px] font-semibold leading-tight text-ink">{f.title}</span><span className="mt-2 block text-[13.5px] leading-snug text-(--body)/70">{f.text}</span></span>
<span className="relative mt-4 inline-flex items-center gap-1.5 text-[14px] font-semibold text-primary">{f.cta}<LuArrowRight size={14} className="transition-transform duration-300 group-hover:translate-x-1" /></span>
</a>
);
}
export default function Header({ menu, demoUrl, labels, homeHref, contactHref, lang, current: currentLang, dir = 'ltr', overHero = false }: { menu: MenuGroup[]; demoUrl: string; labels: HeaderLabels; homeHref: string; contactHref: string; lang: LangLink[]; current: string; dir?: 'ltr' | 'rtl'; /** The page opens on the blue hero: the bar is clear with white text until the page scrolls or a menu opens. */ overHero?: boolean }) {
const [open, setOpen] = useState<string | null>(null);
const [drawer, setDrawer] = useState(false);
const [acc, setAcc] = useState<string | null>('platform');
const [scrolled, setScrolled] = useState(false);
const closeTimer = useRef<ReturnType<typeof setTimeout>>(undefined);
const openTimer = useRef<ReturnType<typeof setTimeout>>(undefined);
const root = useRef<HTMLElement>(null);
const hoverOpen = useCallback((id: string) => { clearTimeout(closeTimer.current); clearTimeout(openTimer.current); openTimer.current = setTimeout(() => setOpen(id), open ? 0 : 90); }, [open]);
const hoverClose = useCallback(() => { clearTimeout(openTimer.current); clearTimeout(closeTimer.current); closeTimer.current = setTimeout(() => setOpen(null), 140); }, []);
useEffect(() => { const on = () => setScrolled(window.scrollY > 6); on(); window.addEventListener('scroll', on, { passive: true }); return () => window.removeEventListener('scroll', on); }, []);
useEffect(() => { const k = (e: KeyboardEvent) => { if (e.key === 'Escape') { setOpen(null); setDrawer(false); } }; window.addEventListener('keydown', k); return () => window.removeEventListener('keydown', k); }, []);
useEffect(() => { document.documentElement.style.overflow = drawer ? 'hidden' : ''; return () => { document.documentElement.style.overflow = ''; }; }, [drawer]);
useEffect(() => { const w = () => { if (window.innerWidth >= 1024) setDrawer(false); }; window.addEventListener('resize', w); return () => window.removeEventListener('resize', w); }, []);
const current = menu.find((m) => m.id === open);
const light = overHero && !scrolled && !open && !drawer;
const soft = light ? 'text-white/85 hover:text-white' : 'text-(--body)/75 hover:text-ink';
return (
<header dir={dir} ref={root} onMouseLeave={hoverClose} onBlur={(e) => { if (!root.current?.contains(e.relatedTarget as Node)) setOpen(null); }} className="fixed inset-x-0 top-0 z-50">
<div className={`relative border-b transition-colors duration-300 ${scrolled || open || drawer ? 'border-black/[0.07] bg-white/90 backdrop-blur-xl' : light ? 'border-white/10 bg-transparent' : 'border-transparent bg-white/60 backdrop-blur-md'}`}>
<div className="container-x flex h-[64px] items-center justify-between gap-4">
<a href={homeHref} className="flex shrink-0 items-center gap-2.5" aria-label={labels.home}>
<img src="/img/logo.png" alt="" width="30" height="30" className="h-[30px] w-[30px] rounded-lg" />
<span className={`text-[19px] font-semibold tracking-tight ${light ? 'text-white' : 'text-ink'}`}>VCare</span>
</a>
<nav className="hidden flex-1 items-center justify-center gap-0.5 lg:flex" aria-label="Primary">
{menu.map((m) => (
<button key={m.id} type="button" aria-expanded={open === m.id} aria-controls={`mega-${m.id}`} onMouseEnter={() => hoverOpen(m.id)} onFocus={() => hoverOpen(m.id)} onClick={() => setOpen(open === m.id ? null : m.id)} className={`whitespace-nowrap rounded-lg px-3.5 py-2 text-[14.5px] font-medium transition-colors ${open === m.id ? 'text-ink' : soft}`}>
{m.label}
</button>
))}
</nav>
<div className="flex items-center gap-2">
{lang.length > 1 && (
<label className={`relative hidden h-10 items-center gap-1.5 rounded-lg px-2 transition sm:flex ${soft}`}>
<LuGlobe size={16} aria-hidden="true" />
<span className="sr-only">{labels.language}</span>
<select value={currentLang} onChange={(e) => { const l = lang.find((x) => x.code === e.target.value); if (l) window.location.href = l.href; }} className="h-10 cursor-pointer appearance-none bg-transparent text-[14px] font-medium uppercase text-inherit outline-none">
{lang.map((l) => <option key={l.code} value={l.code}>{l.code}</option>)}
</select>
</label>
)}
<a href={contactHref} className={`hidden h-10 items-center px-3 text-[14.5px] font-medium transition sm:flex ${soft}`}>{labels.contact}</a>
<a href={demoUrl} className={`btn btn-primary !h-10 !rounded-xl !px-4 !text-[14px] ${light ? 'ring-1 ring-white/30' : ''}`}>{labels.liveDemo}</a>
<button type="button" aria-label={drawer ? labels.closeMenu : labels.openMenu} aria-expanded={drawer} aria-controls="mobile-drawer" onClick={() => setDrawer((d) => !d)} className="grid h-10 w-10 place-items-center rounded-xl bg-white text-ink ring-1 ring-black/10 lg:hidden">
{drawer ? <LuX size={18} /> : <LuMenu size={18} />}
</button>
</div>
</div>
{/* Mega panel, desktop */}
<AnimatePresence>
{current && (
<motion.div key="mega" id={`mega-${current.id}`} initial={{ opacity: 0, y: -6 }} animate={{ opacity: 1, y: 0 }} exit={{ opacity: 0, y: -4 }} transition={{ duration: 0.28, ease }} onMouseEnter={() => clearTimeout(closeTimer.current)} className="absolute inset-x-0 top-full hidden border-b border-black/[0.07] bg-white shadow-[0_30px_60px_-30px_rgb(15_27_45/0.25)] lg:block">
<div className="container-x py-6">
<AnimatePresence mode="wait" initial={false}>
<motion.div key={current.id} initial={{ opacity: 0 }} animate={{ opacity: 1 }} exit={{ opacity: 0 }} transition={{ duration: 0.18 }} className="grid gap-6 lg:grid-cols-[1fr_300px]">
<div className="grid grid-cols-2 gap-x-4">
{current.cols.map((c, ci) => (
<div key={c.title} className={current.cols.length === 1 ? 'col-span-2' : ''}>
<p className="mb-1.5 px-3 text-[11.5px] font-semibold uppercase tracking-wider text-muted-foreground">{c.title}</p>
<div className={current.cols.length === 1 ? 'grid grid-cols-2 gap-x-4' : ''}>
{c.items.map((p, i) => <Item key={p.href} page={p} i={ci * 5 + i} onNavigate={() => setOpen(null)} />)}
</div>
</div>
))}
</div>
<Feature f={current.feature} demo={demoUrl} onNavigate={() => setOpen(null)} />
</motion.div>
</AnimatePresence>
</div>
</motion.div>
)}
</AnimatePresence>
</div>
{/* Page dim behind the open mega panel */}
<AnimatePresence>{open && <motion.div key="dim" initial={{ opacity: 0 }} animate={{ opacity: 1 }} exit={{ opacity: 0 }} transition={{ duration: 0.25 }} className="pointer-events-none fixed inset-0 -z-10 hidden bg-ink/10 lg:block" />}</AnimatePresence>
{/* Mobile drawer */}
<AnimatePresence>
{drawer && (
<motion.div key="drawer" id="mobile-drawer" initial={{ opacity: 0, y: -10 }} animate={{ opacity: 1, y: 0 }} exit={{ opacity: 0, y: -8 }} transition={{ duration: 0.3, ease }} className="fixed inset-x-0 bottom-0 top-[64px] flex flex-col overflow-hidden bg-white lg:hidden">
<div className="flex-1 overflow-y-auto overscroll-contain px-4 pb-6 pt-3">
{menu.map((m) => {
const on = acc === m.id;
return (
<div key={m.id} className="border-b border-black/[0.06]">
<button type="button" aria-expanded={on} onClick={() => setAcc(on ? null : m.id)} className="flex w-full items-center justify-between py-4 text-left text-[18px] font-semibold text-ink">
{m.label}<LuChevronDown size={18} className={`text-muted-foreground transition-transform duration-300 ${on ? 'rotate-180' : ''}`} />
</button>
<AnimatePresence initial={false}>
{on && (
<motion.div initial={{ height: 0, opacity: 0 }} animate={{ height: 'auto', opacity: 1 }} exit={{ height: 0, opacity: 0 }} transition={{ duration: 0.35, ease }} className="overflow-hidden">
<div className="pb-3">
{m.cols.map((c, ci) => (
<div key={c.title}>
{m.cols.length > 1 && <p className="px-3 pb-1 pt-2 text-[11.5px] font-semibold uppercase tracking-wider text-muted-foreground">{c.title}</p>}
{c.items.map((p, i) => <Item key={p.href} page={p} i={ci * 5 + i} onNavigate={() => setDrawer(false)} />)}
</div>
))}
</div>
</motion.div>
)}
</AnimatePresence>
</div>
);
})}
</div>
<div className="grid grid-cols-2 gap-3 border-t border-black/[0.07] bg-white p-4 pb-[max(1rem,env(safe-area-inset-bottom))]">
<a href={contactHref} onClick={() => setDrawer(false)} className="btn btn-ghost !rounded-xl">{labels.contact}</a>
<a href={demoUrl} className="btn btn-primary !rounded-xl">{labels.liveDemo}</a>
</div>
</motion.div>
)}
</AnimatePresence>
</header>
);
}npx shadcn@latest add @vcare/site-headerAlso installs site-kit, site-theme.
Hero section
The home page hero: sky artwork, headline, calls to action and the product rising out of the sky.
import Hero from "@/registry/vcare/site/Hero"
export default function SiteHeroDemo() {
return (
<div className="vc-site">
<Hero appUrl="#" />
</div>
)
}import { useEffect, useState } from 'react';
import { LuArrowRight, LuPlus } from 'react-icons/lu';
import { motion } from 'motion/react';
import { BarCard } from './widgets/bar-card';
import { DonutCard } from './widgets/donut-card';
import { CalendarCard } from './widgets/calendar-card';
import { PatientsTable } from './widgets/patients-table';
import { SideNav } from './widgets/side-nav';
import { QueueMini } from './widgets/queue-mini';
const ease = [0.25, 1, 0.5, 1] as const;
const apps = ['vcare', 'visit', 'rx', 'labs', 'active360', 'brain'] as const;
/** Facts we can stand behind: the app family, the interface languages, one record per patient. */
const proof = [
['6', 'apps in one family'],
['11', 'languages'],
['1', 'record for every patient'],
] as const;
/**
* The sky artwork is drawn on a 1586 × 992 canvas with a framed panel in the middle. On wide screens the background keeps that
* shape and the headline sits exactly inside the panel; these are the panel's edges as a share of the canvas.
*/
const PANEL = { left: '11.73%', top: '17.34%', height: '47.58%' }; // keep in step with the xl: classes on the text block
/** The sky artwork, in whichever of these formats was saved. */
const SKY_FILES = ['/art/hero-sky.webp', '/art/hero-sky.png', '/art/hero-sky.jpg'];
const up = (delay: number, y = 18) => ({ initial: { opacity: 0, y }, animate: { opacity: 1, y: 0 }, transition: { duration: 0.9, delay, ease } });
/** Stand-in for the sky artwork until the file is in place: the same blue, frame and light streaks, drawn in CSS. */
function SkyFallback() {
const line = 'absolute h-px bg-white/20';
const glint = 'absolute h-px bg-gradient-to-r from-transparent via-white to-transparent';
return (
<div aria-hidden="true" className="absolute inset-0 overflow-hidden" style={{ background: 'radial-gradient(70% 50% at 50% 35%, #3b6dfb 0%, transparent 70%), linear-gradient(180deg, #1238d6 0%, #2457f2 45%, #3f7cf8 100%)' }}>
<div className="absolute inset-x-0 bottom-0 h-1/3 bg-[radial-gradient(40%_80%_at_0%_100%,rgb(255_255_255/0.9),transparent_70%),radial-gradient(45%_90%_at_100%_100%,rgb(255_255_255/0.95),transparent_70%)]" />
<div className="hidden xl:block">
<span className={`${line} inset-x-0 top-[11.9%]`} />
<span className={`${glint} left-[22%] top-[11.9%] w-[18%]`} />
<span className={`${line} inset-x-0 top-[68.6%]`} />
<span className={`${glint} right-[18%] top-[68.6%] w-[14%]`} />
<span className="absolute rounded-[3vw] border border-white/25" style={{ left: PANEL.left, right: PANEL.left, top: PANEL.top, height: PANEL.height }} />
<span className={`${glint} left-[24%] top-[17.34%] w-[12%]`} />
<span className="absolute -left-4 top-[25.8%] h-[7.2%] w-[12.3%] rounded-r-[1.6vw] border border-white/20" />
<span className="absolute -left-4 top-[35.7%] h-[41.5%] w-[12.3%] rounded-r-[1.6vw] border border-white/20" />
<span className="absolute -right-4 top-[25.8%] h-[7.2%] w-[8.5%] rounded-l-[1.6vw] border border-white/20" />
<span className="absolute -right-4 top-[35.7%] h-[41.5%] w-[8.5%] rounded-l-[1.6vw] border border-white/20" />
</div>
</div>
);
}
/** The product, in a browser window that rises out of the sky. */
function AppWindow() {
const tabs = ['Overview', 'Patients', 'Pharmacy', 'Billing'];
return (
<div className="overflow-hidden rounded-[22px] bg-white shadow-[0_40px_120px_-30px_rgb(8_20_80/0.55),0_0_0_1px_rgb(255_255_255/0.6)]">
<div className="flex items-center gap-2 border-b border-[#ebecf0] bg-[#f7f8fa] px-4 py-2.5">
<span className="flex gap-1.5">
<i className="h-3 w-3 rounded-full bg-[#ff5f57]" />
<i className="h-3 w-3 rounded-full bg-[#febc2e]" />
<i className="h-3 w-3 rounded-full bg-[#28c840]" />
</span>
<span className="mx-auto rounded-md bg-white px-3 py-1 text-[12px] text-muted-foreground ring-1 ring-black/5">app.vcarehms.com</span>
</div>
<div className="grid grid-cols-[220px_1fr] gap-4 bg-[#f5f6f8] p-4">
<div className="h-[640px]">
<SideNav active="Dashboard" />
</div>
<div className="min-w-0 space-y-4">
<div className="flex flex-wrap items-end justify-between gap-3 px-1 pt-1">
<div>
<p className="text-[22px] font-semibold tracking-tight text-ink">Good morning, Dr Meera 👋</p>
<p className="text-[13.5px] text-muted-foreground">Here is how the hospital is running right now.</p>
</div>
<span className="inline-flex items-center gap-1.5 rounded-xl bg-primary px-3.5 py-2 text-[13px] font-semibold text-white">
<LuPlus size={14} /> New visit
</span>
</div>
<div className="inline-flex gap-1 rounded-xl bg-white p-1 ring-1 ring-black/[0.06]">
{tabs.map((t, i) => (
<span key={t} className={`rounded-lg px-3 py-1.5 text-[13px] font-medium ${i === 0 ? 'bg-[#f1f3f7] text-ink' : 'text-muted-foreground'}`}>
{t}
</span>
))}
</div>
<div className="grid grid-cols-4 gap-4">
<div className="h-[260px]"><BarCard /></div>
<div className="h-[260px]"><DonutCard /></div>
<div className="col-span-2 h-[260px]"><CalendarCard /></div>
<div className="col-span-3 h-[300px]"><PatientsTable /></div>
<div className="h-[300px]"><QueueMini /></div>
</div>
</div>
</div>
</div>
);
}
export default function Hero({ appUrl }: { appUrl: string }) {
// Show the CSS sky first and swap in the artwork once it has loaded, so a missing file never shows a broken image.
const [sky, setSky] = useState<string | null>(null);
// While choosing a look, `?sky=css` keeps the CSS sky even when the artwork is there (and `?sky=image` is the default).
useEffect(() => {
if (new URLSearchParams(window.location.search).get('sky') === 'css') return;
let gone = false;
const tryFile = (i: number) => {
if (i >= SKY_FILES.length) return;
const img = new Image();
img.onload = () => !gone && setSky(SKY_FILES[i]!);
img.onerror = () => tryFile(i + 1);
img.src = SKY_FILES[i]!;
};
tryFile(0);
return () => {
gone = true;
};
}, []);
return (
<section className="relative overflow-hidden bg-white">
{/* Sky: the artwork when it is there, its CSS stand-in when it is not. */}
{/* Pulled up a little on wide screens so the panel sits closer to the header; only empty sky at the top is cut. */}
<div className="relative xl:-mt-[3.5%] xl:aspect-[1586/992]">
{sky ? <img src={sky} alt="" aria-hidden="true" className="absolute inset-0 h-full w-full object-cover object-top xl:object-fill" /> : <SkyFallback />}
{/* Fades the bottom of the sky into the page, so the product window lands on white. */}
<div aria-hidden="true" className="absolute inset-x-0 bottom-0 h-[22%] bg-gradient-to-b from-transparent to-white" />
<div
className="relative z-10 flex flex-col items-center justify-center px-5 pb-40 pt-28 text-center sm:pt-32 xl:absolute xl:left-[11.73%] xl:right-[11.73%] xl:top-[17.34%] xl:h-[47.58%] xl:px-10 xl:py-0"
>
<motion.a
href="#patient-app"
{...up(0, 10)}
className="group inline-flex items-center gap-3 rounded-full bg-white/10 py-1.5 pl-1.5 pr-4 text-[14px] text-white ring-1 ring-white/25 backdrop-blur-md transition hover:bg-white/15"
>
<span className="flex -space-x-2">
{apps.map((n, i) => (
<span key={n} className={`${i > 3 ? 'hidden sm:grid' : 'grid'} h-7 w-7 place-items-center overflow-hidden rounded-full bg-white ring-2 ring-[#2f5ff0]`}>
<img src={`/img/app-${n}.png`} alt="" width="28" height="28" className="h-full w-full object-contain p-[1px]" />
</span>
))}
</span>
<span className="whitespace-nowrap">
<b className="font-semibold">One system</b>
<span className="text-white/80"> for every department</span>
</span>
<span className="hidden h-4 w-px bg-white/30 sm:block" />
<span className="hidden items-center gap-1 whitespace-nowrap text-white/90 sm:inline-flex">
Web, Android and iOS <LuArrowRight size={14} className="transition-transform group-hover:translate-x-0.5" />
</span>
</motion.a>
<motion.h1 {...up(0.08, 24)} className="mt-7 font-[var(--font-weight-heading)] text-[clamp(38px,4.6vw,78px)] leading-[1.02] tracking-[-0.035em] text-white">
Hospital management software
<br />
<span className="text-white/95">for your whole hospital.</span>
</motion.h1>
<motion.p {...up(0.16)} className="mt-5 max-w-[640px] text-[clamp(15px,1.15vw,18px)] leading-[1.6] text-white/85">
Front desk, doctors, pharmacy, lab, wards, billing, accounts and HR on one platform, with a single record for every patient.{' '}
<a href="#designed-with" className="font-semibold text-white underline decoration-white/40 underline-offset-4 transition hover:decoration-white">
Designed together with doctors, lab technicians, physiotherapists and nurses.
</a>
</motion.p>
<motion.div {...up(0.24)} className="mt-7 flex flex-col items-center gap-3 sm:flex-row">
<a href={appUrl} className="inline-flex h-12 items-center rounded-xl bg-[#1b3fd9] px-6 text-[15.5px] font-semibold text-white shadow-[0_10px_30px_-10px_rgb(8_20_80/0.7),inset_0_1px_0_rgb(255_255_255/0.25)] ring-1 ring-white/25 transition hover:-translate-y-0.5 hover:bg-[#1736c4]">
Book a demo
</a>
<a href="#workflow" className="inline-flex h-12 items-center rounded-xl bg-[#0f1424] px-6 text-[15.5px] font-semibold text-white shadow-[0_10px_30px_-10px_rgb(8_12_30/0.7)] ring-1 ring-white/10 transition hover:-translate-y-0.5 hover:bg-black">
See how a visit works
</a>
</motion.div>
<motion.ul {...up(0.32, 10)} className="mt-7 flex flex-wrap items-center justify-center gap-x-5 gap-y-2 text-[14.5px] text-white/75">
{proof.map(([n, t], i) => (
<li key={t} className="flex items-center gap-5">
{i > 0 && <i className="h-1 w-1 rounded-full bg-white/40" aria-hidden="true" />}
<span>
<b className="font-semibold text-white">{n}</b> {t}
</span>
</li>
))}
</motion.ul>
</div>
</div>
{/* The product rises out of the sky; on wide screens it overlaps the lower third of the artwork. */}
<div className="relative z-10 -mt-6 px-4 xl:-mt-[18.8%]">
<div className="pointer-events-none absolute z-20 hidden md:block" style={{ left: 'min(calc(50% + 520px), calc(100% - 170px))', top: -96, width: 150 }}>
<motion.img src="/art/vivi.webp" alt="" width="768" height="768" {...up(0.9, 24)} className="h-[150px] w-[150px] -scale-x-100 object-contain drop-shadow-[0_14px_18px_rgb(8_20_80/0.35)]" />
</div>
<div className="relative h-[560px] overflow-hidden sm:h-[720px] [mask-image:linear-gradient(to_bottom,#000_70%,transparent)]">
<motion.div {...up(0.4, 40)} className="absolute left-1/2 top-0 w-[1240px] -translate-x-1/2">
<AppWindow />
</motion.div>
</div>
</div>
</section>
);
}npx shadcn@latest add @vcare/site-heroAlso installs site-bar-card, site-calendar-card, site-donut-card, site-patients-table, site-queue-mini, site-side-nav, site-theme.
Integrations section
Integrations by category, with filters.
import Integrations from "@/registry/vcare/site/Integrations"
export default function SiteIntegrationsDemo() {
return (
<div className="vc-site">
<Integrations />
</div>
)
}import { useEffect, useRef, useState } from 'react';
import { useInView, useReducedMotion } from 'motion/react';
import type { CSSProperties } from 'react';
import { LuMail, LuFileSpreadsheet, LuFingerprint, LuChevronLeft, LuChevronRight } from 'react-icons/lu';
import { FaWhatsapp, FaInstagram, FaFacebookMessenger, FaAws } from 'react-icons/fa6';
import { SiClaude, SiGooglegemini, SiFirebase, SiCloudflare, SiMinio, SiOllama } from 'react-icons/si';
import { TbBrandTwilio } from 'react-icons/tb';
import { RiOpenaiFill } from 'react-icons/ri';
import type { IconType } from 'react-icons';
import { Reveal } from './ui/Reveal';
type Cat = 'Messaging' | 'AI' | 'Storage' | 'Alerts' | 'Data';
interface Tool { name: string; Icon: IconType; color: string; cat: Cat; desc: string }
/** Only things VCare really connects to. */
const tools: Tool[] = [
{ name: 'WhatsApp Cloud API', Icon: FaWhatsapp, color: '#25d366', cat: 'Messaging', desc: 'Receive enquiries and send reminders from your hospital’s own WhatsApp number.' },
{ name: 'Instagram', Icon: FaInstagram, color: '#e1306c', cat: 'Messaging', desc: 'Answer Instagram messages from the same shared patient inbox.' },
{ name: 'Messenger', Icon: FaFacebookMessenger, color: '#0084ff', cat: 'Messaging', desc: 'Facebook Page conversations land beside WhatsApp and Instagram.' },
{ name: 'Twilio', Icon: TbBrandTwilio, color: '#f22f46', cat: 'Messaging', desc: 'SMS and WhatsApp for one time codes, reminders and messages.' },
{ name: 'Email', Icon: LuMail, color: '#1a82e2', cat: 'Messaging', desc: 'Email reminders and receipts through SendGrid.' },
{ name: 'OpenAI', Icon: RiOpenaiFill, color: '#10a37f', cat: 'AI', desc: 'Power Brain AI with an OpenAI model of your choice.' },
{ name: 'Claude', Icon: SiClaude, color: '#d97757', cat: 'AI', desc: 'Use Anthropic Claude for Brain AI answers and summaries.' },
{ name: 'Gemini', Icon: SiGooglegemini, color: '#4285f4', cat: 'AI', desc: 'Use Google Gemini as the model behind Brain AI.' },
{ name: 'Ollama and vLLM', Icon: SiOllama, color: '#172026', cat: 'AI', desc: 'Run any OpenAI compatible model on your own network.' },
{ name: 'Amazon S3', Icon: FaAws, color: '#ff9900', cat: 'Storage', desc: 'Documents, images and encrypted database backups.' },
{ name: 'Cloudflare R2', Icon: SiCloudflare, color: '#f38020', cat: 'Storage', desc: 'An S3 compatible bucket for files and backups.' },
{ name: 'MinIO', Icon: SiMinio, color: '#c72e49', cat: 'Storage', desc: 'Keep files on your own servers with S3 compatible storage.' },
{ name: 'Firebase Cloud Messaging', Icon: SiFirebase, color: '#ffa000', cat: 'Alerts', desc: 'Push notifications to staff browsers when the app is closed.' },
{ name: 'CSV, TSV and JSON', Icon: LuFileSpreadsheet, color: '#16a34a', cat: 'Data', desc: 'Import and export every list with a review step and undo.' },
{ name: 'Biometric machines', Icon: LuFingerprint, color: '#6d3fe0', cat: 'Data', desc: 'Import punches from attendance machines into HR.' },
];
const cats: ('All' | Cat)[] = ['All', 'Messaging', 'AI', 'Storage', 'Alerts', 'Data'];
const ROWS = [50, 120, 190, 260, 330];
/** Ten tools and ten tasks, two per lane. Each lane shows one at a time, so nothing ever overlaps. */
const toolLane = [
{ i: 0, x: 70, row: 0, d: 0 }, { i: 7, x: 150, row: 0, d: 5 },
{ i: 5, x: 40, row: 1, d: 1 }, { i: 1, x: 130, row: 1, d: 6 },
{ i: 6, x: 100, row: 2, d: 2 }, { i: 9, x: 50, row: 2, d: 7 },
{ i: 3, x: 60, row: 3, d: 3 }, { i: 12, x: 140, row: 3, d: 8 },
{ i: 2, x: 110, row: 4, d: 4 }, { i: 10, x: 40, row: 4, d: 9 },
];
const taskLane = [
{ text: 'Confirm tomorrow\u2019s 10:30 booking', tag: 'Auto', x: 640, row: 0, d: 0.4 }, { text: 'Remind about the follow up visit', tag: 'Auto', x: 650, row: 0, d: 5.4 },
{ text: 'Send the CBC report ready message', tag: 'Auto', x: 660, row: 1, d: 1.4 }, { text: 'Verify the lab result', tag: 'Needs you', x: 650, row: 1, d: 6.4 },
{ text: 'Reply to a new WhatsApp enquiry', tag: 'Needs you', x: 640, row: 2, d: 2.4 }, { text: 'Book from the chat', tag: 'Auto', x: 670, row: 2, d: 7.4 },
{ text: 'Push: your order is out for delivery', tag: 'Auto', x: 650, row: 3, d: 3.4 }, { text: 'Dispense the prescription', tag: 'Needs you', x: 660, row: 3, d: 8.4 },
{ text: 'Email the invoice receipt', tag: 'Auto', x: 660, row: 4, d: 4.4 }, { text: 'Back up tonight\u2019s database', tag: 'Scheduled', x: 645, row: 4, d: 9.4 },
];
const HUB = { x: 480, y: 190 };
function Hex() {
return (
<svg aria-hidden="true" width="960" height="380" className="pointer-events-none absolute inset-0" fill="none">
<defs><pattern id="hexgrid" width="120" height="104" patternUnits="userSpaceOnUse" patternTransform="scale(1)"><path d="M30 0h60l30 52-30 52H30L0 52z" stroke="rgb(15 27 45 / 0.07)" strokeWidth="1" /></pattern>
<radialGradient id="hexfade" cx="50%" cy="50%" r="60%"><stop offset="0" stopColor="#fff" /><stop offset="1" stopColor="#000" /></radialGradient>
<mask id="hexmask"><rect width="100%" height="100%" fill="url(#hexfade)" /></mask></defs>
<rect width="100%" height="100%" fill="url(#hexgrid)" mask="url(#hexmask)" />
</svg>
);
}
function useScale(ref: React.RefObject<HTMLDivElement | null>) {
const [w, setW] = useState(960);
useEffect(() => {
const el = ref.current; if (!el) return;
const ro = new ResizeObserver(([e]) => setW(e.contentRect.width));
ro.observe(el); setW(el.getBoundingClientRect().width);
return () => ro.disconnect();
}, [ref]);
return w;
}
export default function Integrations() {
const [cat, setCat] = useState<'All' | Cat>('All');
const scroller = useRef<HTMLDivElement>(null);
const frame = useRef<HTMLDivElement>(null);
const width = useScale(frame);
const scale = Math.min(1.15, width / 960);
const compact = width < 620;
const shown = tools.filter((t) => cat === 'All' || t.cat === cat);
const scrollBy = (dir: number) => scroller.current?.scrollBy({ left: dir * 480, behavior: 'smooth' });
const [hover, setHover] = useState(false);
const inView = useInView(scroller, { amount: 0.3 });
const reduce = useReducedMotion();
// Auto play: step one card every few seconds, wrap to the start, pause on hover and when off screen.
useEffect(() => {
if (!inView || hover || reduce) return;
const id = setInterval(() => {
const el = scroller.current; if (!el) return;
const card = el.firstElementChild as HTMLElement | null; if (!card) return;
const step = card.offsetWidth + 16;
if (el.scrollLeft + el.clientWidth >= el.scrollWidth - 8) el.scrollTo({ left: 0, behavior: 'smooth' });
else el.scrollBy({ left: step, behavior: 'smooth' });
}, 3200);
return () => clearInterval(id);
}, [inView, hover, reduce, cat]);
useEffect(() => { scroller.current?.scrollTo({ left: 0 }); }, [cat]);
const tileCls = 'grid h-14 w-14 place-items-center rounded-2xl bg-white shadow-[0_8px_22px_-14px_rgb(15_27_45/0.22),0_0_0_1px_rgb(22_24_29/0.05)]';
return (
<section id="integrations" className="relative overflow-hidden section-y">
<div className="container-x">
<div className="max-w-[820px]">
<Reveal as="h2" className="h-section-lg">Your hospital, WhatsApp and AI should be on speaking terms.</Reveal>
<Reveal as="p" className="lead mt-5 max-w-[640px]" delay={0.08}>Connect the chat apps your patients already use, the AI model you trust and the storage you control. Bookings, results and bills stay on one record as the conversation grows.</Reveal>
</div>
<Reveal delay={0.1} className="mt-12">
<div ref={frame}>
{compact ? (
<div className="px-5 py-8" role="img" aria-label="Messaging apps and AI tools connect into VCare, which turns them into ready to run hospital tasks">
<div className="flex flex-wrap justify-center gap-3">{tools.slice(0, 6).map((t) => <span key={t.name} className="grid h-12 w-12 place-items-center rounded-2xl bg-white shadow-[0_0_0_1px_rgb(22_24_29/0.07)]" style={{ color: t.color }}><t.Icon size={22} aria-hidden="true" /></span>)}</div>
<div className="mx-auto my-4 h-8 w-px bg-gradient-to-b from-transparent to-primary/40" />
<span className="hub-pulse mx-auto grid h-[88px] w-[88px] place-items-center overflow-hidden rounded-[26px] bg-white ring-1 ring-black/[0.07]"><img src="/img/app-vcare.png" alt="VCare" width="88" height="88" className="h-full w-full object-contain p-2" /></span>
<div className="mx-auto my-4 h-8 w-px bg-gradient-to-b from-primary/40 to-transparent" />
<div className="mx-auto flex max-w-[320px] flex-col gap-2">{taskLane.filter((_, i) => i % 2 === 0).slice(0, 3).map((k) => <span key={k.text} className="flex items-center gap-2 rounded-xl bg-white py-2 pl-3 pr-2 text-[13px] font-medium text-ink shadow-[0_0_0_1px_rgb(22_24_29/0.07)]"><span className="grid h-4 w-4 place-items-center rounded border border-black/20" />{k.text}<span className="ml-auto rounded-md bg-primary/10 px-1.5 py-0.5 text-[10.5px] font-semibold text-primary">{k.tag}</span></span>)}</div>
</div>
) : (
<div className="relative mx-auto" style={{ width: 960 * scale, height: 380 * scale }} role="img" aria-label="Messaging apps and AI tools flow into VCare, which turns them into ready to run hospital tasks">
<div className="absolute left-0 top-0" style={{ width: 960, height: 380, transform: `scale(${scale})`, transformOrigin: 'top left' }}>
<Hex />
{toolLane.map((l) => { const t = tools[l.i]; return (
<span key={`${l.row}-${l.d}`} className={`flow-item flow-tool ${tileCls}`} style={{ '--x0': `${l.x}px`, '--y0': `${ROWS[l.row]}px`, '--hx': `${HUB.x - 92}px`, '--hy': `${HUB.y + (ROWS[l.row] - HUB.y) * 0.7}px`, animationDelay: `${l.d}s`, color: t.color } as CSSProperties}>
<t.Icon size={26} aria-hidden="true" />
</span>
); })}
{taskLane.map((k) => (
<span key={k.text} className="flow-item flow-task flex items-center gap-2 whitespace-nowrap rounded-xl bg-white py-2 pl-3 pr-2 text-[14px] font-medium text-ink shadow-[0_8px_22px_-16px_rgb(15_27_45/0.22),0_0_0_1px_rgb(22_24_29/0.05)]" style={{ '--tx0': `${HUB.x + 56}px`, '--ty0': `${HUB.y + (ROWS[k.row] - HUB.y) * 0.7}px`, '--tx1': `${k.x}px`, '--ty1': `${ROWS[k.row]}px`, animationDelay: `${k.d}s` } as CSSProperties}>
<span className="grid h-4 w-4 place-items-center rounded border border-black/20" />{k.text}
<span className="rounded-md bg-primary/10 px-1.5 py-0.5 text-[11px] font-semibold text-primary">{k.tag}</span>
</span>
))}
<span className="hub-pulse absolute z-10 grid h-[112px] w-[112px] place-items-center overflow-hidden rounded-[30px] bg-white ring-1 ring-black/[0.07]" style={{ left: HUB.x - 56, top: HUB.y - 56 }}>
<img src="/img/app-vcare.png" alt="VCare" width="112" height="112" className="h-full w-full object-contain p-2" />
</span>
</div>
</div>
)}
</div>
</Reveal>
<div className="mt-14 grid gap-8 lg:grid-cols-[320px_minmax(0,1fr)]">
<div>
<div role="tablist" aria-label="Integration categories" className="flex flex-wrap gap-2">
{cats.map((c) => <button key={c} role="tab" aria-selected={cat === c} onClick={() => setCat(c)} className={`rounded-lg px-3.5 py-2 text-[14px] font-medium transition-colors ${cat === c ? 'bg-ink text-white' : 'bg-white text-(--body) ring-1 ring-black/10 hover:text-ink'}`}>{c}</button>)}
</div>
</div>
<div className="relative">
<div ref={scroller} onMouseEnter={() => setHover(true)} onMouseLeave={() => setHover(false)} onFocus={() => setHover(true)} onBlur={() => setHover(false)} className="-mx-2 flex snap-x gap-4 overflow-x-auto px-2 py-3 [scroll-padding-inline:8px] [scrollbar-width:none] [&::-webkit-scrollbar]:hidden">
{shown.map((t) => (
<article key={t.name} className="flex w-[216px] shrink-0 snap-start flex-col rounded-[20px] border border-black/[0.1] bg-white p-4 shadow-[0_1px_2px_rgb(15_27_45/0.05)] transition-all duration-300 hover:-translate-y-0.5 hover:border-black/[0.16] hover:shadow-[var(--shadow-lift)]">
<span className="grid h-10 w-10 place-items-center rounded-xl bg-muted" style={{ color: t.color }}><t.Icon size={20} aria-hidden="true" /></span>
<h3 className="h-card mt-3.5 !text-[16px]">{t.name}</h3>
<p className="mt-1.5 flex-1 text-[13.5px] leading-snug text-muted-foreground">{t.desc}</p>
<span className="mt-3 w-fit rounded-md bg-muted px-2 py-1 text-[11.5px] font-medium text-(--body)">{t.cat}</span>
</article>
))}
</div>
<div className="hidden justify-end gap-2 sm:flex">
<button type="button" aria-label="Scroll left" onClick={() => scrollBy(-1)} className="grid h-9 w-9 place-items-center rounded-full bg-white ring-1 ring-black/10 hover:bg-black/[0.03]"><LuChevronLeft size={16} /></button>
<button type="button" aria-label="Scroll right" onClick={() => scrollBy(1)} className="grid h-9 w-9 place-items-center rounded-full bg-white ring-1 ring-black/10 hover:bg-black/[0.03]"><LuChevronRight size={16} /></button>
</div>
</div>
</div>
</div>
</section>
);
}npx shadcn@latest add @vcare/site-integrationsAlso installs site-kit, site-theme.
Journey section
A patient's journey step by step, with the screen for each step.
import Journey from "@/registry/vcare/site/Journey"
export default function SiteJourneyDemo() {
return (
<div className="vc-site">
<Journey />
</div>
)
}import { useRef, useState, type ComponentType } from 'react';
import { AnimatePresence, motion, useInView, useReducedMotion } from 'motion/react';
import { LuBellRing, LuClipboardList, LuFlaskConical, LuListOrdered, LuReceipt, LuUserPlus, LuWallet } from 'react-icons/lu';
import type { IconType } from 'react-icons';
import { Reveal } from './ui/Reveal';
import { Frame } from './ui/Frame';
import { SideNav } from './widgets/side-nav';
import { PatientScreen } from './screens/patient-screen';
import { QueueScreen } from './screens/queue-screen';
import { FormsScreen } from './screens/forms-screen';
import { OrdersScreen } from './screens/orders-screen';
import { BillingScreen } from './screens/billing-screen';
import { CheckoutScreen } from './screens/checkout-screen';
import { FollowUpScreen } from './screens/follow-up-screen';
import { ProfileCard } from './widgets/profile-card';
import { QuickActions } from './widgets/quick-actions';
import { BarCard } from './widgets/bar-card';
import FormsPanel from './panels/Forms';
import LabPanel from './panels/Lab';
import InsurancePanel from './panels/Insurance';
import FinancePanel from './panels/Finance';
import CrmPanel from './panels/Crm';
interface Step { label: string; Icon: IconType; text: string; route: string; Screen: ComponentType }
const steps: Step[] = [
{ label: 'Patient', Icon: LuUserPlus, route: '/patients/NV000002', Screen: () => <div className="grid gap-4 lg:grid-cols-[250px_1fr]"><ProfileCard /><PatientScreen /></div>, text: 'Register once with a duplicate warning, or merge records later. A profile with 14 tabs keeps everything about the person together.' },
{ label: 'Queue and visit', Icon: LuListOrdered, route: '/queue', Screen: () => <div className="grid gap-4 lg:grid-cols-[1.5fr_1fr]"><QueueScreen /><div className="grid gap-4"><QuickActions /><BarCard title="Visits today" value="42" delta="+6%" /></div></div>, text: 'Check in from an appointment or as a walk in. A live board moves each person from vitals to the doctor, with wait times and priority.' },
{ label: 'Clinical forms', Icon: LuClipboardList, route: '/visits/NV10019/forms', Screen: () => <div className="grid gap-4 lg:grid-cols-2"><FormsPanel /><FormsScreen /></div>, text: 'Notes, vitals, scores and body diagrams on a configurable forms engine, with 24 templates for physio, nursing, OT and OPD.' },
{ label: 'Orders', Icon: LuFlaskConical, route: '/visits/NV10019/orders', Screen: () => <div className="grid gap-4 lg:grid-cols-2"><OrdersScreen /><LabPanel /></div>, text: 'Lab, imaging, procedures, referrals and prescriptions flow to the right department, and results come back for review.' },
{ label: 'Billing', Icon: LuReceipt, route: '/invoices/NV10019', Screen: () => <div className="grid gap-4 lg:grid-cols-2"><BillingScreen /><InsurancePanel /></div>, text: 'The invoice builds itself when the visit completes: tax, discounts and the insurance split, all from your price lists.' },
{ label: 'Checkout', Icon: LuWallet, route: '/payments/new', Screen: () => <div className="grid gap-4 lg:grid-cols-2"><CheckoutScreen /><FinancePanel /></div>, text: 'Take full or partial payments, handle refunds, and let the books post themselves to the general ledger.' },
{ label: 'Follow up', Icon: LuBellRing, route: '/communications', Screen: () => <div className="grid gap-4 lg:grid-cols-2"><FollowUpScreen /><CrmPanel /></div>, text: 'Reminders on WhatsApp, SMS or email, results in the patient app, and a next visit booked before they leave.' },
];
const NAV_FOR = ['Patients', 'Queue', 'Visits', 'Lab', 'Invoices', 'Invoices', 'Appointments'];
const STEP_MS = 5000;
/** The same PC sized window as the roles section: a grey desk, a sidebar card, white panels. 16:10. */
function AppWindow({ active }: { active: number }) {
const { Screen, label } = steps[active];
return (
<div className="mx-auto max-w-[1120px] overflow-hidden rounded-[28px] bg-[#eef2f7] p-3 shadow-[0_40px_90px_-40px_rgb(15_27_45/0.35)] ring-1 ring-black/[0.06] sm:p-4 lg:aspect-[16/10]">
<div className="grid gap-4 lg:h-full lg:grid-cols-[240px_1fr]">
<div className="hidden lg:block lg:h-full"><SideNav active={NAV_FOR[active]} /></div>
<div className="min-h-[440px] overflow-hidden lg:min-h-0">
<p className="mb-3 px-1 text-[13px] font-medium text-[#6b7280]">Step {active + 1} of {steps.length} · {label}</p>
<AnimatePresence mode="wait">
<motion.div key={active} initial={{ opacity: 0, y: 14 }} animate={{ opacity: 1, y: 0 }} exit={{ opacity: 0, y: -8 }} transition={{ duration: 0.45, ease: [0.22, 1, 0.36, 1] }}>
<Screen />
</motion.div>
</AnimatePresence>
</div>
</div>
</div>
);
}
export default function Journey() {
const [active, setActive] = useState(0);
const [hover, setHover] = useState(false);
const rootRef = useRef<HTMLDivElement>(null);
const visible = useInView(rootRef, { amount: 0.35 });
const reduce = useReducedMotion();
const playing = visible && !hover && !reduce;
const step = steps[active];
return (
<section id="workflow" className="relative overflow-hidden section-y">
<div className="absolute inset-0 -z-10" style={{ background: 'linear-gradient(180deg, #ffffff 0%, #f1f8fd 40%, #eaf6fb 70%, #ffffff 100%)' }} />
<div className="container-x relative">
<Frame className="mx-auto max-w-3xl text-center">
<Reveal as="h2" className="h-section" delay={0.05}>Nothing rekeyed. Nothing lost between desks.</Reveal>
<Reveal as="p" className="lead mt-5" delay={0.1}>One record travels from the front desk to the ledger. Every handoff is a state change on the same visit, so each team sees the same truth, live.</Reveal>
</Frame>
<div ref={rootRef} onMouseEnter={() => setHover(true)} onMouseLeave={() => setHover(false)} className="mt-14">
<Reveal delay={0.1}><AppWindow active={active} /></Reveal>
<div role="tablist" aria-label="Patient journey steps" className="mx-auto mt-8 grid max-w-[1120px] grid-cols-4 gap-2 sm:grid-cols-7">
{steps.map((s, i) => {
const on = i === active;
return (
<button key={s.label} role="tab" aria-selected={on} onClick={() => setActive(i)} className="group relative rounded-xl px-2 pb-3 pt-2 text-left">
<span className="absolute inset-x-2 top-0 h-[3px] overflow-hidden rounded-full bg-black/10">
{on && <span key={`${active}-${playing}`} className="block h-full origin-left rounded-full bg-primary" style={playing ? { animation: `step-fill ${STEP_MS}ms linear forwards` } : { transform: 'scaleX(1)' }} onAnimationEnd={() => setActive((a) => (a + 1) % steps.length)} />}
</span>
<span className={`mt-3 flex items-center gap-2 text-[13px] font-semibold transition-colors ${on ? 'text-primary' : 'text-muted-foreground group-hover:text-ink'}`}>
<s.Icon size={15} aria-hidden="true" /><span className="truncate">{s.label}</span>
</span>
</button>
);
})}
</div>
<div className="mx-auto mt-4 min-h-[72px] max-w-2xl text-center">
<AnimatePresence mode="wait">
<motion.p key={active} initial={{ opacity: 0, y: 8 }} animate={{ opacity: 1, y: 0 }} exit={{ opacity: 0 }} transition={{ duration: 0.3 }} className="text-[17px] leading-relaxed text-(--body)">
<span className="font-semibold text-ink">Step {active + 1}. </span>{step.text}
</motion.p>
</AnimatePresence>
</div>
</div>
</div>
</section>
);
}npx shadcn@latest add @vcare/site-journeyAlso installs site-bar-card, site-billing-screen, site-checkout-screen, site-crm-panel, site-finance-panel, site-follow-up-screen, site-forms-panel, site-forms-screen, site-insurance-panel, site-kit, site-lab-panel, site-orders-screen, site-patient-screen, site-profile-card, site-queue-screen, site-quick-actions, site-side-nav, site-theme.
Mobile Apps section
The patient and staff mobile apps, with phone screens.
import MobileApps from "@/registry/vcare/site/MobileApps"
export default function SiteMobileAppsDemo() {
return (
<div className="vc-site">
<MobileApps />
</div>
)
}import { useState } from 'react';
import { AnimatePresence, motion } from 'motion/react';
import { FaAndroid, FaApple } from 'react-icons/fa6';
import { LuCalendarCheck, LuPill, LuFlaskConical, LuFolderOpen, LuClock, LuCalendarDays, LuWallet, LuMessageCircle, LuFileText } from 'react-icons/lu';
import type { IconType } from 'react-icons';
import Phone from './ui/Phone';
const ease = [0.25, 1, 0.5, 1] as const;
interface App { id: string; tab: string; title: string; text: string; features: [IconType, string][]; shots: [string, string][] }
const apps: App[] = [
{
id: 'patient', tab: 'Patient app', title: 'One app. Every hospital they visit.',
text: 'Patients sign in with a WhatsApp or SMS code and see their records from every facility. English, Arabic and Malayalam, today.',
features: [[LuCalendarCheck, 'Book and video consult with doctors'], [LuPill, 'Order medicines for pickup or delivery'], [LuFlaskConical, 'Lab and imaging reports on the phone'], [LuFolderOpen, 'Visits, bills and prescriptions from every hospital']],
shots: [['app-doctors', 'Book a doctor screen of the VCare patient app'], ['app-home', 'Home screen of the VCare patient app'], ['app-labs', 'Lab tests screen of the VCare patient app']],
},
{
id: 'staff', tab: 'Staff app', title: 'Your shift, leave and payslips in a pocket.',
text: 'Doctors, nurses and every employee check in, apply for leave, read the roster and raise HR requests from their own phone.',
features: [[LuClock, 'Mark attendance and see your shift'], [LuCalendarDays, 'Apply for leave and track requests'], [LuWallet, 'Roster, payslips and advances'], [LuMessageCircle, 'Chat with colleagues'], [LuFileText, 'Policies, circulars and documents']],
shots: [['staff-attendance', 'Attendance screen of the VCare staff app'], ['staff-today', 'Today screen of the VCare staff app'], ['staff-more', 'More screen of the VCare staff app']],
},
];
/** A store button that is not live yet. */
function Store({ icon: Icon, platform }: { icon: IconType; platform: string }) {
return (
<span aria-disabled="true" className="flex cursor-not-allowed items-center gap-3 rounded-xl bg-white px-4 py-2.5 text-left opacity-90 shadow-[0_0_0_1px_rgb(22_24_29/0.12)]">
<Icon size={24} className="text-ink" />
<span className="leading-tight"><span className="block text-[11px] font-medium text-muted-foreground">Coming soon</span><span className="block text-[15px] font-semibold text-ink">{platform}</span></span>
</span>
);
}
export default function MobileApps() {
const [i, setI] = useState(0);
const a = apps[i];
const pos = ['left-0 top-12 w-[40%] -rotate-6', 'left-1/2 top-0 z-10 w-[46%] -translate-x-1/2', 'right-0 top-20 w-[40%] rotate-6'];
return (
<section id="patient-app" className="relative overflow-hidden section-y">
<div className="absolute inset-x-0 top-0 -z-10 h-full" style={{ background: 'linear-gradient(180deg,#fff,var(--brain-soft) 50%,#fff)' }} />
<div className="container-x">
<div role="tablist" aria-label="Mobile apps" className="mx-auto flex w-fit gap-1 rounded-xl bg-white p-1.5 shadow-[0_0_0_1px_rgb(22_24_29/0.07)]">
{apps.map((x, n) => <button key={x.id} role="tab" aria-selected={n === i} onClick={() => setI(n)} className={`rounded-lg px-5 py-2 text-[14px] font-medium transition-colors ${n === i ? 'bg-primary text-white shadow-md' : 'text-(--body) hover:text-ink'}`}>{x.tab}</button>)}
</div>
<AnimatePresence mode="wait">
<motion.div key={a.id} initial={{ opacity: 0, y: 18 }} animate={{ opacity: 1, y: 0 }} exit={{ opacity: 0, y: -12 }} transition={{ duration: 0.4, ease }} className="mt-14 grid items-center gap-16 lg:grid-cols-2">
<div>
<h2 className="h-section">{a.title}</h2>
<p className="lead mt-5">{a.text}</p>
<ul className="mt-8 space-y-3.5">
{a.features.map(([Icon, t]) => <li key={t} className="flex items-center gap-3.5 text-[16.5px] font-medium text-ink"><span className="grid h-11 w-11 shrink-0 place-items-center rounded-2xl bg-white text-primary shadow-[0_0_0_1px_rgb(22_24_29/0.07)]"><Icon size={20} /></span>{t}</li>)}
</ul>
<div className="mt-9 flex flex-wrap gap-3"><Store icon={FaAndroid} platform="Android" /><Store icon={FaApple} platform="iOS" /></div>
</div>
<div className="relative mx-auto h-[540px] w-full max-w-[520px] sm:h-[640px]">
<div className="absolute left-1/2 top-1/2 h-[420px] w-[420px] -translate-x-1/2 -translate-y-1/2 rounded-full bg-gradient-to-br from-sky-200 to-teal-100 blur-2xl" />
{a.shots.map(([n, alt], k) => (
<motion.div key={n} className={`absolute ${pos[k]}`} initial={{ opacity: 0, y: 40 }} animate={{ opacity: 1, y: 0 }} transition={{ duration: 0.8, delay: 0.15 + k * 0.1, ease }}>
<Phone srcs={[`/shots/${n}.webp`]} alt={alt} />
</motion.div>
))}
</div>
</motion.div>
</AnimatePresence>
</div>
</section>
);
}npx shadcn@latest add @vcare/site-mobile-appsAlso installs site-kit, site-theme.
Reports section
Reports and analytics, with live charts.
import Reports from "@/registry/vcare/site/Reports"
export default function SiteReportsDemo() {
return (
<div className="vc-site">
<Reports />
</div>
)
}import type { ReactNode } from 'react';
import { motion } from 'motion/react';
import { Badge } from './ui/kit';
import { Reveal } from './ui/Reveal';
import { Frame } from './ui/Frame';
const ease = [0.25, 1, 0.5, 1] as const;
const C = { blue: '#2f6fed', teal: '#16b8a6', violet: '#8b5cf6', rose: '#e0245e', amber: '#f59e0b', green: '#16a34a' };
function Card({ title, value, delta, legend, children, name, body }: { title: string; value: string; delta: string; legend: [string, string, string][]; children: ReactNode; name: string; body: string }) {
return (
<Reveal>
<div className="rounded-[24px] bg-[#f4f6f9] p-4 ring-1 ring-black/[0.04]">
<div className="rounded-2xl bg-white p-4 shadow-[0_1px_2px_rgb(15_27_45/0.04)]">
<div className="flex items-start justify-between"><div><p className="text-[12px] text-[#6b7280]">{title}</p><p className="mt-0.5 flex items-center gap-2 text-[22px] font-semibold text-ink">{value}<Badge tone="green">{delta}</Badge></p></div><span className="rounded-lg bg-[#f4f5f7] px-2 py-1 text-[11px] font-medium text-[#4b5160]">Last 14 days</span></div>
<div className="mt-4 h-[190px]">{children}</div>
<div className="mt-3 grid grid-cols-3 gap-2 border-t border-[#f1f2f5] pt-3">{legend.map(([c, l, v]) => <div key={l}><p className="flex items-center gap-1.5 text-[10.5px] text-[#6b7280]"><i className="h-2 w-2 rounded-full" style={{ background: c }} />{l}</p><p className="text-[12.5px] font-semibold text-ink">{v}</p></div>)}</div>
</div>
</div>
<h3 className="mt-3 text-[15px] font-semibold">{name}</h3>
<p className="mt-1 text-[13.5px] leading-relaxed text-muted-foreground">{body}</p>
</Reveal>
);
}
function Bars({ data, colour }: { data: number[]; colour: string }) {
return (
<div className="flex h-full items-end gap-2">
{data.map((h, i) => <div key={i} className="relative h-full flex-1 overflow-hidden rounded-lg bg-[#f1f3f6]"><motion.div className="absolute inset-x-0 bottom-0 rounded-lg" style={{ background: colour }} initial={{ height: 0 }} whileInView={{ height: `${h}%` }} viewport={{ once: true }} transition={{ duration: 0.9, delay: i * 0.05, ease }} /></div>)}
</div>
);
}
function Funnel() {
const seg: [string, number][] = [[C.teal, 100], [C.blue, 78], [C.violet, 64], [C.rose, 52]];
return (
<div className="flex h-full items-center gap-1">
{seg.map(([c, h], i) => <motion.div key={c} className="flex-1 rounded-xl" style={{ background: c }} initial={{ height: 0 }} whileInView={{ height: `${h}%` }} viewport={{ once: true }} transition={{ duration: 0.9, delay: i * 0.12, ease }} />)}
</div>
);
}
function HBars() {
const rows: [string, number, string][] = [['General', 92, C.teal], ['Cardiology', 70, C.blue], ['Orthopaedics', 48, C.violet], ['Paediatrics', 30, C.rose], ['Physio', 22, C.amber]];
return (
<div className="flex h-full flex-col justify-center gap-2.5">
{rows.map(([l, w, c], i) => <div key={l} className="flex items-center gap-2 text-[11px] text-[#6b7280]"><span className="w-20 shrink-0">{l}</span><div className="h-3.5 flex-1 rounded-full bg-[#f1f3f6]"><motion.div className="h-full rounded-full" style={{ background: c }} initial={{ width: 0 }} whileInView={{ width: `${w}%` }} viewport={{ once: true }} transition={{ duration: 0.9, delay: i * 0.08, ease }} /></div></div>)}
</div>
);
}
function Donut() {
const parts: [string, number][] = [[C.teal, 0.4], [C.blue, 0.3], [C.violet, 0.2], [C.amber, 0.1]];
const r = 52, circ = 2 * Math.PI * r;
let acc = 0;
return (
<svg viewBox="0 0 140 140" className="mx-auto h-full -rotate-90">
<circle cx="70" cy="70" r={r} fill="none" stroke="#f1f3f6" strokeWidth="18" />
{parts.map(([c, f], i) => { const off = -acc * circ; acc += f; return <motion.circle key={c} cx="70" cy="70" r={r} fill="none" stroke={c} strokeWidth="18" strokeDasharray={`${circ * f - 3} ${circ}`} strokeDashoffset={off} initial={{ opacity: 0 }} whileInView={{ opacity: 1 }} viewport={{ once: true }} transition={{ delay: i * 0.15, duration: 0.6 }} />; })}
</svg>
);
}
function Gauge() {
const r = 70, len = Math.PI * r;
return (
<svg viewBox="0 0 180 110" className="mx-auto h-full">
<path d="M20 95 A70 70 0 0 1 160 95" fill="none" stroke="#f1f3f6" strokeWidth="18" strokeLinecap="round" />
{[[C.teal, 0.34, 0], [C.blue, 0.2, 0.36], [C.violet, 0.12, 0.58]].map(([c, f, o], i) => <motion.path key={String(c)} d="M20 95 A70 70 0 0 1 160 95" fill="none" stroke={String(c)} strokeWidth="18" strokeLinecap="round" strokeDasharray={`${len * Number(f)} ${len}`} strokeDashoffset={-len * Number(o)} initial={{ opacity: 0 }} whileInView={{ opacity: 1 }} viewport={{ once: true }} transition={{ delay: i * 0.2, duration: 0.6 }} />)}
<text x="90" y="88" textAnchor="middle" fontSize="22" fontWeight="600" fill="#0f1b2d">87%</text>
</svg>
);
}
function Area() {
const p = [60, 52, 58, 44, 48, 36, 40, 28, 32, 20, 24, 14];
const pts = p.map((y, i) => `${(i / 11) * 300},${y + 90}`).join(' ');
return (
<svg viewBox="0 0 300 190" className="h-full w-full" preserveAspectRatio="none">
{[40, 90, 140].map((y) => <line key={y} x1="0" x2="300" y1={y} y2={y} stroke="#eef0f3" />)}
<motion.polygon points={`0,190 ${pts} 300,190`} fill="url(#ag)" initial={{ opacity: 0 }} whileInView={{ opacity: 1 }} viewport={{ once: true }} transition={{ duration: 1 }} />
<motion.polyline points={pts} fill="none" stroke={C.blue} strokeWidth="2.5" strokeLinejoin="round" initial={{ pathLength: 0 }} whileInView={{ pathLength: 1 }} viewport={{ once: true }} transition={{ duration: 1.4, ease }} />
<defs><linearGradient id="ag" x1="0" y1="0" x2="0" y2="1"><stop offset="0" stopColor={C.blue} stopOpacity="0.28" /><stop offset="1" stopColor={C.blue} stopOpacity="0" /></linearGradient></defs>
</svg>
);
}
export default function Reports() {
return (
<section id="reports" className="section-y">
<div className="container-x">
<Frame className="mx-auto max-w-3xl text-center">
<Reveal as="h2" className="h-section mt-4" delay={0.05}>Charts that make your data worth reading</Reveal>
<Reveal as="p" className="lead mt-5" delay={0.1}>22 reports with charts, drill downs and CSV export, drawn straight from the books and the visit, never from a spreadsheet.</Reveal>
</Frame>
<div className="mt-14 grid gap-x-6 gap-y-12 md:grid-cols-2">
<Card title="Patient flow" value="1,284" delta="+8%" name="Patient flow funnel" body="See where people drop off between registration, the doctor and the cashier." legend={[[C.teal, 'Registered', '1,284'], [C.blue, 'Seen', '1,002'], [C.rose, 'Billed', '668']]}><Funnel /></Card>
<Card title="Revenue" value="$420K" delta="+12%" name="Daily revenue" body="Revenue by day with department and payer breakdowns underneath." legend={[[C.teal, 'Cash', '$190K'], [C.blue, 'Insurance', '$160K'], [C.violet, 'Credit', '$70K']]}><Bars colour={C.teal} data={[44, 58, 40, 66, 72, 54, 80, 62, 70, 88, 64, 76, 92, 84]} /></Card>
<Card title="Visits" value="2,610" delta="+5%" name="Department load" body="Which departments carry the day, and which have room." legend={[[C.teal, 'General', '960'], [C.blue, 'Cardiology', '640'], [C.violet, 'Ortho', '410']]}><HBars /></Card>
<Card title="Payer mix" value="$980K" delta="+3%" name="Payer mix" body="Self pay, insurance and corporate accounts at a glance." legend={[[C.teal, 'Self pay', '40%'], [C.blue, 'Insurance', '30%'], [C.violet, 'Corporate', '20%']]}><Donut /></Card>
<Card title="Collection" value="87%" delta="+2%" name="Collection rate" body="How much of what you billed has actually been collected." legend={[[C.teal, 'Collected', '$850K'], [C.blue, 'Pending', '$100K'], [C.violet, 'Written off', '$20K']]}><Gauge /></Card>
<Card title="Occupancy" value="18%" delta="+1%" name="Occupancy trend" body="Beds in use over time, per ward and bed class." legend={[[C.blue, 'General', '12%'], [C.teal, 'Semi private', '20%'], [C.violet, 'Private', '31%']]}><Area /></Card>
</div>
</div>
</section>
);
}npx shadcn@latest add @vcare/site-reportsAlso installs site-kit, site-theme.
Roles section
Tabs per role, each showing that role's screen.
import Roles from "@/registry/vcare/site/Roles"
export default function SiteRolesDemo() {
return (
<div className="vc-site">
<Roles />
</div>
)
}import { useState } from 'react';
import { AnimatePresence, motion } from 'motion/react';
import { LuHeartPulse, LuLandmark, LuStethoscope, LuUsers } from 'react-icons/lu';
import { Reveal } from './ui/Reveal';
import { Frame } from './ui/Frame';
import { SideNav } from './widgets/side-nav';
import { PatientsTable } from './widgets/patients-table';
import { QueueMini } from './widgets/queue-mini';
import { QuickActions } from './widgets/quick-actions';
import { BarCard } from './widgets/bar-card';
import { Heatmap } from './widgets/heatmap';
import Pharmacy from './panels/Pharmacy';
import BedBoard from './panels/BedBoard';
import Finance from './panels/Finance';
import Lab from './panels/Lab';
import Forms from './panels/Forms';
const roles = [
{ id: 'front', label: 'Front desk', Icon: LuUsers, nav: 'Queue', note: 'Register, book and check in from one screen.', view: () => <div className="grid gap-4 lg:grid-cols-[1.4fr_1fr]"><PatientsTable /><div className="grid gap-4"><QueueMini /><QuickActions /></div></div> },
{ id: 'doctor', label: 'Doctors', Icon: LuStethoscope, nav: 'Visits', note: 'Notes, orders and prescriptions on one visit.', view: () => <div className="grid gap-4 lg:grid-cols-2"><Forms /><div className="grid gap-4"><Lab /><Pharmacy /></div></div> },
{ id: 'nurse', label: 'Nursing', Icon: LuHeartPulse, nav: 'Inpatient', note: 'Rounds, charts and the live bed board.', view: () => <div className="grid gap-4 lg:grid-cols-2"><BedBoard /><Heatmap /></div> },
{ id: 'admin', label: 'Admin and finance', Icon: LuLandmark, nav: 'Accounts', note: 'Daily MIS, ledgers, approvals and audit.', view: () => <div className="grid gap-4 lg:grid-cols-2"><Finance /><BarCard title="Revenue this week" value="$420K" delta="+8%" /></div> },
] as const;
export default function Roles() {
const [i, setI] = useState(0);
const r = roles[i];
return (
<section id="roles" className="bg-page section-y">
<div className="container-x">
<Frame className="mx-auto max-w-3xl text-center">
<Reveal as="h2" className="h-section mt-4" delay={0.05}>Each person sees the screen they need</Reveal>
<Reveal as="p" className="lead mt-5" delay={0.1}>The sidebar, routes and dashboards adapt to the signed in role, so nobody wades through what isn't theirs.</Reveal>
</Frame>
<div role="tablist" aria-label="Roles" className="mx-auto mt-10 flex w-fit max-w-full gap-1 overflow-x-auto rounded-xl bg-white p-1.5 shadow-[0_0_0_1px_rgb(22_24_29/0.07)]">
{roles.map((x, n) => (
<button key={x.id} role="tab" aria-selected={n === i} onClick={() => setI(n)} className={`flex shrink-0 items-center gap-2 rounded-lg px-4 py-2 text-[14px] font-medium transition-colors ${n === i ? 'bg-primary text-white shadow-md' : 'text-(--body) hover:text-ink'}`}><x.Icon size={15} />{x.label}</button>
))}
</div>
<Reveal delay={0.1} className="mt-8">
<div className="mx-auto max-w-[1120px] overflow-hidden rounded-[28px] bg-[#eef2f7] p-3 shadow-[0_40px_90px_-40px_rgb(15_27_45/0.35)] ring-1 ring-black/[0.06] sm:p-4 lg:aspect-[16/10]">
<div className="grid gap-4 lg:h-full lg:grid-cols-[240px_1fr]">
<div className="hidden lg:block lg:h-full"><SideNav active={r.nav} /></div>
<div className="min-h-[440px] overflow-hidden lg:min-h-0">
<p className="mb-3 px-1 text-[13px] font-medium text-[#6b7280]">{r.note}</p>
<AnimatePresence mode="wait">
<motion.div key={r.id} initial={{ opacity: 0, y: 16 }} animate={{ opacity: 1, y: 0 }} exit={{ opacity: 0, y: -10 }} transition={{ duration: 0.35, ease: [0.25, 1, 0.5, 1] }}>{r.view()}</motion.div>
</AnimatePresence>
</div>
</div>
</div>
</Reveal>
</div>
</section>
);
}npx shadcn@latest add @vcare/site-rolesAlso installs site-bar-card, site-bed-board-panel, site-finance-panel, site-forms-panel, site-heatmap, site-kit, site-lab-panel, site-patients-table, site-pharmacy-panel, site-queue-mini, site-quick-actions, site-side-nav, site-theme.
Store Buttons section
App Store and Google Play buttons, with a coming soon state.
import StoreButtons from "@/registry/vcare/site/StoreButtons"
export default function SiteStoreButtonsDemo() {
return (
<div className="vc-site flex justify-center p-6">
<StoreButtons />
</div>
)
}import { FaAndroid, FaApple } from 'react-icons/fa6';
import type { IconType } from 'react-icons';
function Store({ icon: Icon, platform, soon }: { icon: IconType; platform: string; soon: string }) {
return (
<span aria-disabled="true" className="flex cursor-not-allowed items-center gap-3 rounded-xl bg-white px-4 py-2.5 text-left shadow-[0_0_0_1px_rgb(22_24_29/0.12)]">
<Icon size={24} className="text-ink" aria-hidden="true" />
<span className="leading-tight"><span className="block text-[11px] font-medium text-muted-foreground">{soon}</span><span className="block text-[15px] font-semibold text-ink">{platform}</span></span>
</span>
);
}
/** Store buttons for apps that are not published yet. */
export default function StoreButtons({ comingSoon = 'Coming soon', android = 'Android', ios = 'iOS' }: { comingSoon?: string; android?: string; ios?: string }) {
return <div className="flex flex-wrap gap-3"><Store icon={FaAndroid} platform={android} soon={comingSoon} /><Store icon={FaApple} platform={ios} soon={comingSoon} /></div>;
}npx shadcn@latest add @vcare/site-store-buttonsAlso installs site-theme.
Trust section
Security, privacy and reliability, with supporting visuals.
import Trust from "@/registry/vcare/site/Trust"
export default function SiteTrustDemo() {
return (
<div className="vc-site">
<Trust />
</div>
)
}import { useEffect, useState, type ReactNode } from 'react';
import { AnimatePresence, motion, useReducedMotion } from 'motion/react';
import { LuDatabase, LuShieldCheck, LuScrollText, LuSettings2, LuLanguages, LuHardDrive, LuLock, LuCheck, LuX, LuChevronDown, LuCloudUpload, LuBan } from 'react-icons/lu';
import { Avatar, Badge, Btn, Panel } from './ui/kit';
import { Reveal } from './ui/Reveal';
import { Frame } from './ui/Frame';
const ease = [0.25, 1, 0.5, 1] as const;
function Card({ icon, tone, title, body, className = '', children }: { icon: ReactNode; tone: string; title: string; body: string; className?: string; children: ReactNode }) {
return (
<Reveal className={`group relative flex flex-col overflow-hidden rounded-[32px] bg-white ring-1 ring-black/[0.06] transition-shadow duration-500 hover:shadow-[var(--shadow-lift)] ${className}`}>
<div className="absolute inset-x-0 top-0 -z-0 h-40 opacity-70" style={{ background: `radial-gradient(70% 100% at 50% 0%, ${tone}, transparent)` }} />
<div className="relative px-7 pt-7">
<span className="grid h-11 w-11 place-items-center rounded-2xl bg-white text-ink shadow-[0_0_0_1px_rgb(22_24_29/0.08),0_6px_16px_-8px_rgb(15_27_45/0.25)]">{icon}</span>
<h3 className="mt-4 h-card">{title}</h3>
<p className="mt-1.5 text-[14px] leading-relaxed text-muted-foreground">{body}</p>
</div>
<div className="relative mt-auto px-5 pb-5 pt-6">{children}</div>
</Reveal>
);
}
function Isolation() {
const hospitals = [['Northview Clinic', ['Anna Meyer', 'Daniel Reed', 'James Carter']], ['Lakeside Hospital', ['Sofia Novak', 'David Moreno', 'Sarah Collins']]] as const;
return (
<div className="relative grid grid-cols-[1fr_auto_1fr] items-center gap-2">
{hospitals.map(([h, names], k) => (
<Panel key={h} className={k === 1 ? 'order-3' : ''} title={<span className="flex items-center gap-1.5 text-[12px]"><LuLock size={12} className="text-vcare" />{h}</span>}>
{names.map((n) => <div key={n} className="flex items-center gap-2 border-b border-[#f1f2f5] px-3 py-2 text-[11.5px] font-medium text-ink last:border-0"><Avatar name={n} size={20} /><span className="truncate">{n}</span></div>)}
</Panel>
))}
<div className="order-2 flex w-14 flex-col items-center gap-2 sm:w-20">
<motion.span animate={{ x: [-6, 6, -6] }} transition={{ duration: 2.4, repeat: Infinity, ease: 'easeInOut' }} className="h-0.5 w-full border-t-2 border-dashed border-[#e0245e]/50" />
<Badge tone="red" className="!px-2"><LuBan size={11} />Blocked</Badge>
<span className="text-center text-[10px] leading-tight text-[#6b7280]">Cross hospital read</span>
</div>
</div>
);
}
function Matrix() {
const cols = ['View', 'Create', 'Edit', 'Delete', 'Approve'];
const rows: [string, boolean[]][] = [['Patients', [true, true, true, false, false]], ['Billing', [true, true, true, true, true]], ['Pharmacy', [true, true, false, false, true]], ['Lab', [true, false, false, false, false]]];
return (
<Panel>
<div className="grid grid-cols-[1.3fr_repeat(5,1fr)] gap-1 bg-[#f7f7f9] px-4 py-2 text-[10.5px] font-semibold uppercase tracking-wide text-[#9aa0ad]"><span>Module</span>{cols.map((c) => <span key={c} className="text-center">{c}</span>)}</div>
{rows.map(([m, v], r) => (
<div key={m} className="grid grid-cols-[1.3fr_repeat(5,1fr)] items-center gap-1 border-t border-[#f1f2f5] px-4 py-2.5 text-[12px]">
<span className="font-semibold text-ink">{m}</span>
{v.map((on, c) => (
<motion.span key={c} className={`mx-auto grid h-5 w-5 place-items-center rounded-md ${on ? 'bg-primary text-white' : 'bg-[#f1f2f5] text-[#c5cad3]'}`} initial={{ scale: 0.6, opacity: 0 }} whileInView={{ scale: 1, opacity: 1 }} viewport={{ once: true }} transition={{ delay: 0.2 + (r * 5 + c) * 0.03, duration: 0.4, ease }}>
{on ? <LuCheck size={12} strokeWidth={3.5} /> : <LuX size={11} />}
</motion.span>
))}
</div>
))}
</Panel>
);
}
const log: [string, string, string][] = [
['Nora Bennett', 'edited patient NV000002', 'blue'], ['Dr. Rivera', 'signed prescription Rx2291', 'green'], ['Mia Hughes', 'approved vendor bill VB118', 'violet'],
['Adrian Stone', 'closed period October', 'amber'], ['Grace Chen', 'exported the lab report CSV', 'neutral'], ['Alice Turner', 'refunded invoice NV10019', 'red'],
];
function Audit() {
const [start, setStart] = useState(0);
const reduce = useReducedMotion();
useEffect(() => { if (reduce) return; const t = setInterval(() => setStart((s) => (s + 1) % log.length), 2600); return () => clearInterval(t); }, [reduce]);
const shown = [0, 1, 2, 3].map((i) => ({ k: (start + i) % log.length, ...(() => { const [a, b, c] = log[(start + i) % log.length]; return { a, b, c }; })(), n: start + i }));
return (
<Panel title="Audit log" action={<Badge tone="green">Live</Badge>}>
<ul className="relative h-[196px] overflow-hidden px-4 py-1">
<AnimatePresence initial={false}>
{shown.map((e) => (
<motion.li key={e.n} layout initial={{ opacity: 0, y: -22 }} animate={{ opacity: 1, y: 0 }} exit={{ opacity: 0, y: 22 }} transition={{ duration: 0.5, ease }} className="flex items-center gap-2.5 border-b border-[#f1f2f5] py-2.5 text-[12px] last:border-0">
<Avatar name={e.a} size={24} /><span className="min-w-0 flex-1 truncate"><span className="font-semibold text-ink">{e.a}</span> <span className="text-[#6b7280]">{e.b}</span></span><Badge tone={e.c as 'blue'}>Logged</Badge>
</motion.li>
))}
</AnimatePresence>
</ul>
</Panel>
);
}
function Config() {
const [on, setOn] = useState([true, false, true]);
const rows: [string, string][] = [['Currency', '$ USD'], ['Date format', 'DD/MM/YYYY']];
const toggles = ['Tax on invoices', 'Metric units', 'Insurance split'];
return (
<Panel title="Settings">
<div className="space-y-2.5 p-4 text-[12px]">
{rows.map(([l, v]) => <div key={l} className="flex items-center justify-between"><span className="text-[#6b7280]">{l}</span><span className="flex items-center gap-1.5 rounded-lg bg-[#f4f5f7] px-2.5 py-1 font-semibold text-ink">{v}<LuChevronDown size={11} /></span></div>)}
{toggles.map((t, i) => (
<button key={t} onClick={() => setOn((o) => o.map((x, k) => (k === i ? !x : x)))} className="flex w-full items-center justify-between text-left" aria-pressed={on[i]}>
<span className="text-[#6b7280]">{t}</span>
<span className={`h-5 w-9 rounded-full p-0.5 transition-colors ${on[i] ? 'bg-primary' : 'bg-[#dcdee4]'}`}><span className={`block h-4 w-4 rounded-full bg-white shadow transition-transform duration-300 ${on[i] ? 'translate-x-4' : ''}`} /></span>
</button>
))}
</div>
</Panel>
);
}
const langs: [string, string, string, boolean?][] = [['English', 'Welcome back', 'en'], ['العربية', 'أهلاً بعودتك', 'ar', true], ['Deutsch', 'Willkommen zurück', 'de'], ['Español', 'Bienvenido de nuevo', 'es'], ['Français', 'Bon retour', 'fr'], ['हिन्दी', 'वापसी पर स्वागत है', 'hi'], ['日本語', 'おかえりなさい', 'ja'], ['മലയാളം', 'വീണ്ടും സ്വാഗതം', 'ml'], ['Português', 'Bem vindo de volta', 'pt'], ['Русский', 'С возвращением', 'ru'], ['中文', '欢迎回来', 'zh']];
function Languages() {
const [i, setI] = useState(0);
const reduce = useReducedMotion();
useEffect(() => { if (reduce) return; const t = setInterval(() => setI((x) => (x + 1) % langs.length), 2200); return () => clearInterval(t); }, [reduce]);
const [, greet, , rtl] = langs[i];
return (
<div>
<div className="rounded-2xl bg-white p-4 text-center shadow-[0_1px_2px_rgb(15_27_45/0.04),0_10px_28px_-10px_rgb(15_27_45/0.14)] ring-1 ring-black/[0.06]">
<AnimatePresence mode="wait"><motion.p key={i} dir={rtl ? 'rtl' : 'ltr'} initial={{ opacity: 0, y: 10 }} animate={{ opacity: 1, y: 0 }} exit={{ opacity: 0, y: -10 }} transition={{ duration: 0.3 }} className="text-[22px] font-semibold text-ink">{greet}</motion.p></AnimatePresence>
<p className="mt-1 text-[11px] text-[#9aa0ad]">{rtl ? 'Right to left layout' : 'Clinic date and currency formats'}</p>
</div>
<div className="mt-3 flex flex-wrap gap-1.5">
{langs.map(([n], k) => <button key={n} onClick={() => setI(k)} className={`rounded-full px-2.5 py-1 text-[11.5px] font-medium transition-colors ${k === i ? 'bg-primary text-white' : 'bg-white text-[#4b5160] ring-1 ring-black/[0.08] hover:text-ink'}`}>{n}</button>)}
</div>
</div>
);
}
function Backups() {
return (
<Panel>
{[['Nightly backup', '02:00 · 1.8 GB', 100, 'Encrypted'], ['Patients import', 'CSV · 1,204 rows verified', 78, 'Undo ready']].map(([n, d, p, b], i) => (
<div key={String(n)} className="flex items-center gap-4 border-b border-[#f1f2f5] px-4 py-3 last:border-0">
<span className="grid h-10 w-10 shrink-0 place-items-center rounded-xl bg-[#e3f4f1] text-vcare">{i === 0 ? <LuHardDrive size={18} /> : <LuCloudUpload size={18} />}</span>
<div className="min-w-0 flex-1"><p className="text-[13px] font-semibold text-ink">{n}</p><p className="text-[11.5px] text-[#6b7280]">{d}</p>
<div className="mt-2 h-1.5 rounded-full bg-[#eef0f3]"><motion.div className="h-full rounded-full bg-vcare" initial={{ width: 0 }} whileInView={{ width: `${p}%` }} viewport={{ once: true }} transition={{ duration: 1.2, delay: 0.3, ease }} /></div></div>
<Badge tone="teal">{b}</Badge>
{i === 0 && <Btn variant="outline" className="hidden sm:inline-flex">Restore</Btn>}
</div>
))}
</Panel>
);
}
export default function Trust() {
return (
<section id="trust" className="bg-page section-y">
<div className="container-x">
<Frame className="mx-auto max-w-3xl text-center">
<Reveal as="h2" className="h-section" delay={0.05}>Built for clinics that answer to patients and auditors.</Reveal>
<Reveal as="p" className="lead mt-5" delay={0.1}>No country or clinic assumptions baked in. You decide how it behaves, and the platform enforces it.</Reveal>
</Frame>
<div className="mt-14 grid gap-5 md:grid-cols-6">
<Card className="md:col-span-3" icon={<LuDatabase size={20} />} tone="var(--vcare-soft)" title="Hospitals stay separate" body="Each hospital has its own patients, books, stock and settings. The database itself stops one hospital reading another's rows."><Isolation /></Card>
<Card className="md:col-span-3" icon={<LuShieldCheck size={20} />} tone="var(--visit-soft)" title="Permissions by role and module" body="View, create, edit, delete, approve, complete and export, set per role, controlling every screen and API call."><Matrix /></Card>
<Card className="md:col-span-2" icon={<LuScrollText size={20} />} tone="var(--labs-soft)" title="An audit trail for everything" body="Every change is logged and searchable, with segregation of duties on finance approvals."><Audit /></Card>
<Card className="md:col-span-2" icon={<LuSettings2 size={20} />} tone="var(--active360-soft)" title="Configured, never hardcoded" body="Currency, dates, units, taxes, departments, services and forms are all configuration."><Config /></Card>
<Card className="md:col-span-2" icon={<LuLanguages size={20} />} tone="var(--brain-soft)" title="Speaks your language" body="Eleven languages including Arabic with full right to left layout."><Languages /></Card>
<Card className="md:col-span-6" icon={<LuHardDrive size={20} />} tone="#fff3d6" title="Your data, backed up" body="Encrypted database backups to S3 compatible storage, plus import and export for every list, with a review step and undo."><Backups /></Card>
</div>
</div>
</section>
);
}npx shadcn@latest add @vcare/site-trustAlso installs site-kit, site-theme.