/* global React */ const { useState: useStateCd } = React; function CourseDetailPage({ course, onNav }) { const { isMobile, isTablet } = useBreakpoint(); const bp = (d, t, m) => isMobile ? m : isTablet ? t : d; const [sent, setSent] = useStateCd(false); const [form, setForm] = useStateCd({ name: "", email: "", phone: "", profession: "", message: "" }); const [heroRef, heroVis] = useReveal(0.02); const [bodyRef, bodyVis] = useReveal(0.05); const [formRef, formVis] = useReveal(0.05); const set = (k) => (e) => setForm({ ...form, [k]: e.target.value }); if (!course) { return ( Kurs nije pronađen. onNav("kursevi")}>Pogledaj sve kurseve ); } const inp = { width:"100%", padding:"11px 14px", fontSize:14, fontFamily:"inherit", border:"1.5px solid var(--border-default)", borderRadius:8, outline:0, background:"#fff", color:"var(--text-primary)", transition:"all 150ms" }; const lbl = { display:"block", fontSize:11, fontWeight:700, color:"var(--text-secondary)", marginBottom:6, letterSpacing:"0.04em", textTransform:"uppercase" }; const curriculum = course.curriculum || ["Anatomija i biomehanika regiona","Palpatorna dijagnostika","Indikacije i kontraindikacije","Osnove pozicioniranja pacijenta","Vođena praksa tehnika","Klinički slučajevi i primena","Komunikacija sa pacijentom"]; const infoRows = [ { icon:"calendar", label:"Datum početka", value:course.startDate || "Termin na dogovor" }, { icon:"mapPin", label:"Lokacija", value:course.location || "OMT Centar · Beograd, Centar" }, { icon:"clock", label:"Trajanje", value:course.duration + (course.hours ? " · " + course.hours : "") }, { icon:"user", label:"Predavač", value:course.instructor || "Aleksandar Bisić D.O.O." }, { icon:"users", label:"Format", value:course.spots || "1-na-1 individualna obuka" }, { icon:"grad", label:"Nivo", value:course.level }, { icon:"shield", label:"Prijave do", value:course.deadline || "5 dana pre početka kursa" }, ]; return ( {/* HERO */} {course.imageUrl ? ( ) : ( )} onNav("kursevi")} style={{ display:"inline-flex", alignItems:"center", gap:7, background:"rgba(255,255,255,0.08)", border:"1px solid rgba(255,255,255,0.15)", borderRadius:100, padding:"7px 14px", color:"rgba(255,255,255,0.75)", fontSize:12, fontWeight:600, cursor:"pointer", fontFamily:"inherit", marginBottom:24 }}> Svi kursevi {isMobile && ( {course.price} po modulu · uključen sertifikat document.getElementById("reservationForm").scrollIntoView({ behavior:"smooth" })}>Rezerviši mesto )} {course.badge && {course.badge}} {course.region} {course.title} {course.description} {!isMobile && ( {course.price} po modulu · uključen sertifikat Prosečna ocena polaznika document.getElementById("reservationForm").scrollIntoView({ behavior:"smooth" })}>Rezerviši mesto )} {/* BODY */} Program kursa Šta se uči na kursu? {curriculum.map((item, i) => ( {item} ))} {course.techniques && course.techniques.length > 0 && ( Tehnike Savladane tehnike {course.techniques.map(t => ( {t} ))} )} A Aleksandar Bisić D.O.O. Diplomirani osteopata · Fizioterapeut specijalista · 10+ godina iskustva {["Osteopatija","HVLA","Visceralne tehnike"].map(t => ( {t} ))} {/* Sticky info — desktop/tablet only */} {!isMobile && ( Detalji kursa {infoRows.map(({ icon, label, value }) => ( {label} {value} ))} document.getElementById("reservationForm").scrollIntoView({ behavior:"smooth" })}>Rezervišite mesto Besplatna konsultacija pre upisa )} {/* Info table on mobile */} {isMobile && ( Detalji kursa {infoRows.map(({ icon, label, value }) => ( {label} {value} ))} )} {/* FORM */} Rezervacija Pošaljite zahtev za rezervaciju Javićemo se u roku od 24h da potvrdimo termin. {sent ? ( Zahtev primljen! Javićemo se na {form.email || "Vašu email adresu"} u roku od 24h. setSent(false)}>Novi zahtev onNav("kursevi")}>Svi kursevi ) : ( Kurs: {course.title} { e.preventDefault(); setSent(true); }}> Ime i prezime Profesija Email Telefon Napomena (opciono) Saglasan sam sa obradom podataka u skladu sa politikom privatnosti OMT Centra. Pošaljite zahtev )} ); } window.CourseDetailPage = CourseDetailPage;
{course.description}
Javićemo se u roku od 24h da potvrdimo termin.
Javićemo se na {form.email || "Vašu email adresu"} u roku od 24h.