Aller au contenu

Lingo Magpie

v1.0

An online language school workspace on a white bento grid with a teal-blue accent: classes, learners by CEFR level, courses, homework, tutors and reports, with a level ladder you drag learners up.

$69

Adresse de la page : /

Intégré

Ce que vous obtenez
  • Clair et sombreUtilise les couleurs de votre thème
  • Ordinateur, tablette et téléphoneLes écrans pour lesquels il est conçu
  • Paquets…
  • Taille du code…
  • Économe en batterie30 i/s, au repos quand rien ne bouge
  • Pause quand masquéHors écran ou autre onglet
  • Mouvement réduitCalme pour ceux qui le demandent

Vérifié à chaque modification

Sécurité vérifiée le 3 déc.
  • Vérification des typesTypeScript strict
  • Lint et formatESLint · Prettier
  • Tests et buildCaptures claires et sombres
  • Audit de sécuritéAucune vulnérabilité élevée ou critique
  • Ancienneté des paquetsChaque version publique depuis 7 jours ou plus
  • CPU au reposMoins d’un demi-cœur au repos, ≤ 30 i/s

Code

lingo-magpieReact
  • lingo-magpie.tsxThe page: the sections in order.
  • content.tsEvery word and number: brand, nav links, each section's copy and lists.
  • theme.tsThe colors as CSS variables, and the shared class strings.
  • README.mdHow to install it, and where to change the text, colors and form.
  • pagesOne file per page: the sections it shows, in order.
    • classes.tsxClasses (#/classes): the timetable a day at a time by tutor, filtered by tutor, level and kind in the address, with what runs now, today's seats and the group / 1:1 mix.
    • course.tsxOne course (#/courses/<id>): its units and lessons to edit, learners at its level to assign to it, and how the learners on it are doing; rename or delete it.
    • courses.tsxCourses (#/courses): every course as a tile with its level, units, lessons and how many learners are on it; the busiest one leads, and the last tile adds a course.
    • homework.tsxHomework (#/homework): what is due today, waiting to be marked and how scores run, then every piece by status to set, edit, hand in, mark or delete.
    • learner.tsxOne learner (#/learners/<id>): their level, streak and words; goals to tick, add and remove; tutor notes; attendance and classes; their course with the units unlocked, and a new course to assign.
    • learners.tsxLearners (#/learners): four numbers on the school's 400 learners, then the list to search, filter by level or streak at risk, sort and page through, and add a learner.
    • overview.tsxOverview (#/): the school today as a bento grid: the streak hero, classes live now, words learned, homework due, the level ladder, level-ups, the course a level-up unlocked, the next classes and homework to mark.
    • reports.tsxReports (#/reports): level-ups by week, attendance and homework scores over 4 weeks, 12 weeks or the term (in the address), a course by course table and a CSV export.
    • settings.tsxSettings (#/settings): the school's name and weekly words goal, when a streak day ends, a new class's length, and Appearance (style, theme and language).
    • sign-in.tsxThe sign-in page (#/sign-in): the form on one card beside a tinted panel with the level ladder and a line from the school, without the top bar.
    • tutor.tsxOne tutor (#/tutors/<id>): who they are, their weekly availability to toggle hour by hour, hours to log, their rating and reviews to add, and their classes this week.
    • tutors.tsxTutors (#/tutors): the team's hours and rating this week, hours by tutor, then a tile per tutor with their languages, rating, hours against target and whether they are free now.
  • sectionsOne file per page section.
    • account-menu.tsxThe account menu under the avatar in the top bar: who is signed in, Settings and Sign out; the arrow keys move through it, Escape, Tab or a click outside closes it.
    • appearance.tsxSettings → Appearance: the style (Glass or Solid) and the theme (System, Dark or Light), each choice shown as a small preview, and the language (System or one of locales/list.ts).
    • class-dialog.tsxThe class dialog: add or edit a group or 1:1 class (course, tutor, level, day, time, length, seats), take this week's attendance, or delete it.
    • class-week.tsxThe timetable tile: one day at a time, a row per tutor with their group and 1:1 classes along the hours and a now line that moves; on phones the day's classes as a list.
    • course-dialog.tsxThe course dialog: add a course or rename one, with its language and CEFR level.
    • homework-dialogs.tsxHomework dialogs: set homework for a course's learners or edit one piece, and mark a handed-in piece with a score and a comment.
    • ladder.tsxThe level ladder, Overview's signature tile: the six CEFR rungs with how many learners stand on each, and the learners assessed this week waiting beside their rung. Drag one up (or pick it and press the arrow keys, then Enter) to move them up a level: the badge turns, the rung's count grows, the next unit of their course unlocks and the level-ups chart grows.
    • learner-dialog.tsxThe learner dialog: add a learner or edit one (name, email, CEFR level, course and tutor); the course list follows the level picked.
    • learner-notes.tsxA learner's goals to tick, add and remove, and the tutor notes to add, edit and remove.
    • overview-live.tsxOverview's live tiles: the streak hero (who kept their streak today, the countdown to the day's end, the last seven days), the classes on now and the words learned today, all on the shared clock.
    • overview-tiles.tsxOverview's still tiles: homework due today, level-ups by week, the course a level-up just unlocked a unit in, the next classes and the homework waiting to be marked.
    • sign-in-form.tsxThe sign-in form: email and password with their errors under them, show or hide the password, keep me signed in, and the demo account to fill in; a wrong pair says so above the fields.
    • skeleton.tsxA page's loading state: its own bento grid with calm still tiles in every area, so nothing jumps when the data lands.
    • top-bar.tsxThe top bar: the logo, the page tabs with a pill that glides to the current one, search, the theme switch and the account menu; on phones the tabs move into a menu sheet.
    • tutor-dialog.tsxThe tutor dialog: add a tutor or edit one (name, email, the languages they teach and their weekly hours target).
    • units-editor.tsxA course's units and lessons to edit: open a unit to see its lessons, rename it, move it up or down, delete it, add lessons and add a unit; every change saves at once.
  • partsWhat several sections share.
    • buildWhat several sections share.
      • cardsWhat several sections share.
        • wave.tsThe wave card style: cards arrive in a wave by grid position from the top-left.
      • rowsWhat several sections share.
        • turn.tsThe turn row motion: each row on screen swings in from behind, hinged on its left edge, from faint (its free edge never comes forward, so it never widens the page).
      • core.tsxThe page's build-in: on first load and on every page switch the cards arrive in the app's card style and their contents build: bars grow, lines draw, rings fill, the list rows on screen ripple in in the app's row motion, numbers count. The two picks are wired in ./index.ts.
      • index.tsThe app's two build-in picks, wired here and nowhere else: its card style (cards/) and its row motion (rows/). npm run new-app copies only the two it is given (--cards, --rows).
    • appearance.tsHow the app looks right now: dark or light, Glass or Solid, from Settings → Appearance, the page around it and the Style setting.
    • avatar.tsxA person's initials in a round badge, tinted with the primary.
    • backdrop.tsxThe Glass style's backdrop: an exercise-book dot grid in the tint under two soft lights of the primary and the tint, faded out in Solid; with followBackground it paints your background instead.
    • charts.tsxThe charts: rounded bars with the current one in the primary, a smooth line with a soft area under it, and a ring; each grows, draws or fills as its page builds in and glides when its data changes.
    • command-palette.tsxThe command palette (⌘K or Ctrl K): type to find a page or an action, then Enter.
    • dialog.tsxA centered modal dialog (a form, a confirm): rises in, plays its way out, Escape or a tap outside closes it, and the focus goes back where it was.
    • field.tsxA labeled form field (a text input or a select) with its error line under it, tied together for screen readers.
    • format.tsHow numbers and dates are written: by Intl, the current language's way ("1,240", "1.240"; "Nov 19", "19 nov."). Add a helper here when a page needs money, times or a list.
    • icons.tsxThe logo and the line icons, drawn on a 24-unit grid with round ends.
    • language.tsThe app's language: the words every page reads (useWords), how dates and numbers are written (parts/format.ts) and the reading direction. Picked in Settings → Appearance (or System: the page's own language) and kept in this browser; English is built in, any other language loads only when it shows (locales/list.ts).
    • live.tsThe one clock every live tile runs on: at most 30 frames a second, only for parts on screen, paused in a hidden tab and still under reduced motion.
    • moments.tsThe animations the sidebar, the sign-in card, menus, dialogs, the phone sheet and toasts play, timed by their moments in theme.ts.
    • motion.tsMotion helpers: the reduced-motion check, live, and run-once-in-view.
    • router.tsThe page switcher: reads the app's page from the address hash (#/settings, #/?status=open).
    • school.tsWhat every page loads (one hook per kind, through the fake API), the loading gate for several at once, and how school times and days are written.
    • scroll-to-view.tsScrolls an element into view moving only its own scroll container, never the page around it.
    • select-box.tsxA native select dressed to match the app: no browser arrow, a drawn chevron instead.
    • session.tsWhether someone is signed in: a first visit is signed in as the demo account; Sign out holds until the next sign-in, and a sign-in without Keep me signed in lasts only this tab.
    • sheet.tsxThe phone sheet: a modal panel that springs in from the left with the sidebar; Escape, a tap outside or its close button slides it away.
    • states.tsxThe data states every page shares: a calm skeleton while loading, an error with Try again, and an empty note with a way out.
    • store.tsThe app-wide state several parts share: the theme mode and style (kept in the browser) and the toasts.
    • ticker.tsxA number that counts up while its page builds in, and rolls to its new value whenever it changes.
    • tile.tsxThe parts every bento page is built from: a tile, a stat tile, the level badge, a streak flame, the page header and a save helper.
    • toasts.tsxThe toasts: short notes that confirm what just happened, at the bottom end.
    • use-api.tsLoads data through the fake API with loading, error and retry, remembering each answer so a page you come back to shows at once.
    • use-dialog.tsOpens and closes a native <dialog> as a modal; on close it plays its way out first (data-closing), so dialogs, sheets and the palette never vanish in one frame.
  • dataThe pretend data and the fake API: swap it for your backend.
    • account.tsThe demo account: who is signed in (the account menu shows them) and the email and password the sign-in page takes.
    • api.tsThe fake API: every page loads and saves through these functions, so wiring a real backend happens here only.
    • clock.tsThe demo's "now": today's real date at 10:40 school time when the app opens, then running with the real clock, so classes are live and today is never thin at any hour.
    • seed-courses.tsThe school's eight courses, each eight units of lessons, and a small seeded random for the rest of the pretend data.
    • seed-people.tsThe school's 12 tutors and 400 learners: levels, streaks, goals and notes, seeded so every visit shows the same people.
    • seed-school.tsThe week's timetable, homework, level-ups and the school's history (attendance, scores, streaks), seeded from the learners and today's date.
    • types.tsThe shapes the fake API answers with: learners, tutors, courses, classes, homework and level-ups of a small online language school.
  • localesEvery word the app shows, one JSON file a language; list.ts names them.
    • en.jsonOne language's words, with the keys of en.json.
    • es.jsonOne language's words, with the keys of en.json.
    • list.tsThe languages the app offers, in the picker's order: one JSON file each, en.json the source. To remove one, delete its file and its line; to add one, copy es.json, translate it and add a line. English is built in; the rest load only when picked. TypeScript checks each file has en.json's keys, scripts/check/check-locales.mjs the rest (no extra keys, plural forms, {slots}).

lingo-magpie.tsx

The page: the sections in order.

Chargement…
Idéal pour
Language schools and tutoring teams that run group and 1:1 classes and track levels, streaks and homework.
Fonctionnement
Drag an assessed learner up the CEFR ladder: their badge changes, their course unlocks a unit and the level-ups chart grows.
Utilisation
Edit words in content.ts and colors in theme.ts, and swap the bodies in data/api.ts for calls to your backend.