Skip to content

Anica-blip/3c-quiz-admin

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

185 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

3c-quiz-admin

Visual Admin/Editor App for 3c-quiz
Dark Purple Edition — v3.2.0

This app lets you visually create, edit, and manage quiz content for the 3c-quiz platform.
Design your quizzes using a drag-and-drop WYSIWYG interface: position, style, and preview text blocks directly on your background images for each page.


Credits

Originally architected by GitHub Copilot.
Refined to professional standards by Claude Sonnet 4.6 (Anthropic) in collaboration with Chef Anica / 3C Thread To Success.

"Think it. Do it. Own it." — 3C Active Thinking Approach


Features

  • Dark Purple UI — full dark mode with purple accent theme
  • Mobile-first canvas with fixed aspect ratio, matching the quiz app
  • Live preview of each quiz page with the real background image
  • Drag, resize, and style text blocks for titles, questions, answers, and results
  • Font size and color controls for each text block
  • Slide-out Block Settings drawer — opens on first block click, stays silent after close; reopen manually via ⚙ Block Settings button
  • Add, edit, or delete quizzes with automatic quiz ID assignment (e.g., quiz.01, quiz.02)
  • Export/import quiz data as JSON for use in the quiz app
  • Quiz Archive table — view, edit, copy URL, and open all saved quizzes
  • Supabase + Cloudflare R2 integration — quiz JSON stored in R2, index in Supabase
  • Supports up to 8 questions and 4 answers per quiz

Getting Started

  1. Clone this repository

    git clone https://github.com/Anica-blip/3c-quiz-admin.git
    
  2. Open index.html in your browser
    No build step required. All files are static.

  3. Add your images
    Place your background images in the static/ folder. Use the same filenames as in your quiz app (1.png, 2.png, etc).

  4. Start editing!

    • Create new quizzes or edit existing ones from the Quiz Archive
    • Drag and style your text blocks on the canvas
    • Use ⚙ Block Settings to fine-tune position, size, color, and alignment
    • Save/export your quiz data for the main app

Layout

┌─────────────────────────────────────────────────────┐
│  TOPBAR  — Title · Credits · Save Quiz · Export · Import │
├─────────────────────────────────────────────────────┤
│  SUBBAR  — New Quiz · Quiz ID · Title · Page Nav · BG │
├────────────┬────────────────────────┬───────────────┤
│  PAGES     │      CANVAS            │  ADD BLOCK    │
│  sidebar   │   (360 × 640 preview)  │  panel        │
│  (left)    │                        │  (right)      │
└────────────┴────────────────────────┴───────────────┘
│  QUIZ ARCHIVE — full table of saved quizzes          │
└──────────────────────────────────────────────────────┘
         [Block Settings drawer slides in from right]

Project Structure

index.html       — main app entry point (clean, no inline bloat)
admin.app.js     — full editor logic (quiz CRUD, canvas, Supabase, R2)
admin.css        — dark purple theme, layout, drawer, archive styles
static/          — background images used for quiz pages

Tech Stack

  • Vanilla JS + CSS (no framework, no build step)
  • Supabase — quiz index storage
  • Cloudflare R2 via Worker — quiz JSON storage
  • Google Fonts — Outfit + Open Sans

License

MIT


See Also

About

3C Thread To Success transformation and personal growth. Quiz desktop admin/editor only works with url to static landing page, to link to 3-quiz app to load json files (exported from the admin/editor), designed and created for the 3C project.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors