courses-course
A course’s page on a studio’s site (stage 42): its description, trailer and outline with lesson titles and minutes, the free previews, and either “buy” or “open”. Whether the visitor holds the course, and its price, are the host’s (useCourse); buying is the host’s order and the provider’s page (useBuy); a trailer plays with a token the host signs (usePlayback). What must be agreed to first (stage 44: the course’s terms) is the host’s answer too: when “Buy” is refused with it, the documents are shown inline (the web-agree block’s step) and “Buy” is tried again (issue #292). A visitor’s agreements travel in the buying call, held in memory until then; a member’s are recorded as they agree. A minor is told a parent or guardian buys it.
| Skin | web |
| Pack | courses |
| Add it | cos add courses-course |
| Files | course-page.tsx, LICENSE |
| Depends on | ui-button, ui-input, ui-label, web-agree |
| Packages | @composable-os/client, @composable-os/pack-courses |
Operations it calls
Section titled “Operations it calls”Through its hooks; the host decides what each caller may do.
x.courses.coursex.courses.buyorder.checkoutmedia.playme.agreements.dueme.agreements.acceptagreement.guestVersions
Source: packs/courses/blocks/courses-course.