A light five-page website for an online course school where every course is seven lessons: seven tangram pieces build every picture, the logo and a lesson player you scrub.
React + HTML
5 halaman
$69
Alamat halaman: /
Selengkapnya di bawah ↓
Sudah termasuk
Yang Anda dapat
Hanya terangDibuat untuk halaman terang
Desktop, tablet, dan ponselLayar yang didukung
Paket…
Ukuran kode…
Hemat baterai30 fps, diam saat tidak bergerak
Berhenti saat tersembunyiDi luar layar atau tab lain
Kurangi gerakanTenang bagi yang memintanya
Dicek di setiap perubahan
Pengecekan tipeTypeScript strict
Lint dan formatESLint · Prettier
Tes dan buildTangkapan layar terang dan gelap
Audit keamananTanpa advisori tinggi atau kritis
Usia paketSetiap versi sudah publik 7+ hari
CPU saat diamDi bawah setengah core saat diam, ≤ 30 fps
Kode
Ada yang janggal dengan template ini? Kirim masukan ›
course-tangramHTML
index.htmlpageThe home page and all its text, one marked block per section.
courses.htmlpageThe courses page and all its text, one marked block per section.
course.htmlpageThe course page and all its text, one marked block per section.
lesson.htmlpageThe lesson page and all its text, one marked block per section.
checkout.htmlpageThe checkout page and all its text, one marked block per section.
theme.cssthemeThe colors and fonts in one place.
send.jsformThe one function the form calls: plug in your form endpoint here.
sectionssectionsOne file per page section.
catalog.csssectionThe catalog: its title, the search box, the topic and level filters, the result count, the cards and the nothing-matches panel.
catalog.jssectionThe catalog: the topic and level filters from the address (courses.html?topic=code&level=beginner), the search that filters as you type, and the cards that match.
checkout.csssectionThe checkout: the course summary with the practice notice, the pretend payment form, and the enrolled view.
checkout.jssectionThe checkout (checkout.html?c=<slug>): the course summary, each field checked by its data-pattern, then placeEnrolment and the square snapping whole. Nothing is charged.
course.csssectionOne course: the top with its cover, the enroll box that stays in view on wide screens, what you'll gain, the seven lessons, the teacher, the ratings and three more courses.
course.jssectionOne course (course.html?c=<slug>): fills in its top, the enroll box or your progress, what you'll gain, the seven lessons, the teacher, the ratings and three more courses.
featured.csssectionThree courses to start with, and the link to all twelve.
hero.csssectionThe home page's first screen: the giant headline, two buttons, and the cobalt board with the topic chips.
hero.jssectionThe hero's board: tap a topic chip and the seven pieces rebuild into it; left alone, it plays through the topics while in view, with a button to pause it.
lesson.csssectionOne lesson: its title, mark done with previous and next, the notes, the locked panel before you enroll, and the side list with your square.
lesson.jssectionOne lesson (lesson.html?c=<slug>&n=<1-7>): the player or the locked panel, mark done, previous and next, your notes, and the course's lesson list with your square.
missing.csssectionWhat the course, lesson and checkout pages show when the address names no course.
numbers.csssectionThe sun band: four numbers that count up as they scroll into view.
player.csssectionThe lesson player: the dark dotted screen with the pieces and the caption, the big play button, and the control bar.
player.jssectionThe lesson player: a drawn video where the seven pieces build the lesson's figure in step with the captions; scrub to rebuild it piece by piece.
reviews.csssectionWhat learners say: three quotes, each beside a small tangram of the topic they studied.
start.csssectionThe closing band: the free first lesson, beside the seven pieces snapping into a whole square.
steps.csssectionHow a course works, on the cobalt band: three steps, each with the progress square a little fuller.
topics.csssectionSix topic tiles, each a tangram on its own color that builds as it scrolls in.
partspartsWhat several sections share.
card.csspartThe course card and the grid the cards sit in.
card.jspartThe course card (cover tangram on the topic's color, title, teacher, length, rating, price), and filling every [data-cards] list with them.
count-up.jspartCounts every [data-count-up] number up from zero the first time it scrolls into view (the numbers band).
courses.jspartThe catalog, the same as courses.ts: topics, teachers and the twelve courses (their lessons are in parts/syllabus.js).
footer.csspartThe footer on every page: the whole square, the topics, the school's links and how to ask a question.
header.csspartThe top bar on every page: the live logo, the links, the free-lesson button and the phone menu.
header.jspartThe top bar: the phone menu (closes on Escape), the current page's link, "My learning" once you have opened a lesson, and the live logo.
icons.jspartThe small line icons the scripts draw: star, clock, check, lock, play, pause, replay, back and next.
motion.jspartThe shared helpers, as the site's one global: window.courseTangram (motion checks, the words scripts write, prices, the page's address).
page.csspartWhat every page shares: the reset, the page column, titles, buttons, fields, pills, the focus ring and the reveals.
progress.jspartDraws every <svg data-progress="<done>"> as the progress square: one piece in place for each lesson done, until the square is whole.
reveal.jspartHolds back every [data-reveal] element below the fold until it scrolls into view; each one's CSS says how it arrives.
store.jspartWhat the browser remembers: courses you enrolled in, lessons marked done, your notes and where you left off (the same key as the React version).
syllabus.jspartWhat each course teaches, the same as syllabus.ts: what you can do at the end, its seven lessons and the player's tips.
tangram.jspartBuilds every <svg data-tangram="figure"> on the page and moves its pieces when the figure changes or first comes into view.
tans.csspartThe seven pieces: their colors, the seam in the color of what they sit on, how they glide between figures, and the progress square.
tans.jspartThe seven tangram pieces, the figures they make, how a piece moves between figures, and drawing them into an <svg>.
index.html
The home page and all its text, one marked block per section.
Memuat…
Cocok untuk
Online schools, tutors and course creators who want a full front end: home, catalog, course, lesson player and checkout.
Cara kerjanya
Seven pieces rebuild into each section's figure as you scroll; scrub a lesson to rebuild it, and each lesson done fills your square.
Cara memakai
Buka index.html, atau taruh folder di server statis mana pun. Teksnya ada di index.html, warna dan font di theme.css, fungsi kirim formulir di send.js. Bagian Plain HTML di README.md berisi sisanya.