Schnappix-Web
Official website, interactive demo, custom frame uploader, photobooth rental calculator, and community Feedback Hub for the Schnappix Android app.
Overview
Schnappix-Web is the web presence and backend portal for the Schnappix Photobooth Android app (de.orfel.schnappix, currently aligned with version 23.01.78). It combines static HTML/CSS/JS pages with lightweight PHP backends (upload_backend.php, verleih_backend.php, feedback_backend.php) that handle custom PNG photo frame submissions, photobooth rental requests, and a moderated community Feedback Hub.
Features
- Responsive Neon-Synthwave UI: Matches the Schnappix app aesthetic (
#050510background,#ff2bd6primary magenta,#28dfffcyan accent, glassmorphism cards) across desktop, tablet, and mobile. - Interactive Tablet Demo (
index.html&app.js): Simulates the photobooth flow directly in the hero section with a 3-second countdown, white camera flash, and collage preview. - Feature Showcase & Accordion FAQ (
features.html,faq.html): Highlights Kiosk Mode, silent IPP printing, sticker editor, burst collages, custom frames, and UVC USB camera support. - Custom Photo Frame Uploader (
upload.html+upload_backend.php): Drag-and-drop PNG uploader with live client-side format (image/png) and resolution (1500×1000 px) validation, checkerboard transparency preview, duplicate checks against bothuploads/and the Schnappix Gitea repository, andntfypush notifications. - Photobooth Rental Calculator & Booking (
verleih.html+verleih_backend.php): Unlisted (noindex, nofollow) rental configurator with magnetic snap-point slider (0–540prints in 54-photo packs, or free input up to9999), backdrop/tripod/cloud selection, validation,ntfyalerts, and JSON booking persistence. - Community Feedback Hub (
feedback.html+feedback_backend.php): Submit feature requests, bug reports, or praise; filter by category; upvote posts (localStoragetracking); and moderate via an Admin modal (login, official replies, deletion, JSON export). - Legal & Transition Pages (
impressum.html,datenschutz.html,tester.html): DDG/GDPR-compliant legal pages plus a closed-beta transition notice (tester.html) that auto-redirects toindex.htmlafter 5 seconds.
How It Works & Tech Stack
Tech Stack
| Layer | Technology |
|---|---|
| Markup & Styling | Vanilla HTML5 & CSS3 (style.css?v=23.01.78), CSS Custom Properties |
| Client Logic | Vanilla JavaScript (app.js?v=23.01.78 + page-specific inline scripts in upload.html & verleih.html) |
| Typography & Icons | Google Fonts (Outfit for headings, Inter for body text), Font Awesome 6.4.0 (CDN) |
| Backends | PHP (using fileinfo / finfo_file, curl, JSON file storage in data/ and PNG storage in uploads/) |
| External Integrations | ntfy.orfel.de/Schnappix-Frame-Upload (push alerts), git.orfel.de Gitea API (frame name collision check) |
Design Theme
- Background: Deep navy/black
#050510 - Primary: Neon magenta
#ff2bd6 - Accent: Neon cyan
#28dfff - Effects: Neon
box-shadowglow and glassmorphism (backdrop-filter)
Prerequisites & Installation
Prerequisites
- A web server with PHP (with
fileinfoandcurlextensions enabled) for the dynamic backends (upload_backend.php,verleih_backend.php,feedback_backend.php) - Write permissions for the web server user on
uploads/anddata/(created automatically if permitted) - For static-only frontend previews (without form submissions), any local HTTP server or browser works
Setup
-
Clone the repository:
git clone https://git.orfel.de/Jannik/Schnappix-Web.git cd Schnappix-Web -
Configure
.env(see Configuration) with your admin password for the Feedback Hub. -
Serve the directory with PHP or a PHP-enabled web server (Apache/Nginx + PHP-FPM):
php -S 127.0.0.1:8080Then open http://127.0.0.1:8080/index.html.
Configuration
Environment Variables (.env)
feedback_backend.php resolves the admin password in the following order:
- System environment variable
ADMIN_PASSWORD .envfile in the repository root (ADMIN_PASSWORD=...)- Fallback default
1234(if neither is set)
Example .env:
ADMIN_PASSWORD=your-secure-admin-password
Runtime Storage Directories
uploads/— Stores validated PNG frames uploaded viaupload.htmlasframe_<name>.png.data/feedback.json— Stores Feedback Hub entries (auto-initialized with 3 seed items on first request if absent).data/buchungen.json— Stores photobooth rental inquiries submitted viaverleih.html.
Usage
Static & Interactive Pages
| Page | Purpose |
|---|---|
index.html |
Landing page, Play Store link, and interactive tablet photobooth demo |
features.html |
Detailed breakdown of Kiosk Mode, IPP printing, stickers, frames, collages, and USB cameras |
upload.html |
Custom transparent PNG frame upload (1500×1000 px, sanitized frame_<name>.png) |
verleih.html |
Photobooth rental configurator (50 € base for 1 event day + 15 € per 54-print pack; backdrops, tripod/table setup, and cloud gallery at 0 €) |
feedback.html |
Community Feedback Hub with category filters, upvoting, and Admin moderation modal |
faq.html |
Accordion FAQ covering downloads, Android-only support, kiosk setup, printing, and storage |
tester.html |
Closed-beta completion notice redirecting to index.html after 5 seconds |
impressum.html |
Legal notice (§ 5 DDG / § 18 Abs. 2 MStV) |
datenschutz.html |
Privacy policy for both the website and the Schnappix Android app |
PHP Backend Endpoints
1. POST upload_backend.php
Accepts multipart/form-data (background_image, frame_name, email):
- Validates MIME type strictly as
image/png(finfo_file) and normalizesframe_name([a-z0-9_]) toframe_<name>.png. - Verifies uniqueness locally in
uploads/and remotely viahttps://git.orfel.de/api/v1/repos/Jannik/Schnappix/contents/assets/frames. - Saves the PNG to
uploads/and sends anntfypush alert (with image URL & attachment header) tohttps://ntfy.orfel.de/Schnappix-Frame-Upload.
2. POST verleih_backend.php
Accepts JSON or form-encoded POST requests (name, email, phone, event_date, location, photos, requested_photos, packages, background, tripod, cloud, total_price, notes):
- Validates required contact fields, email format (
FILTER_VALIDATE_EMAIL), option selections, and rejects nonsensical0 prints + without cloudcombinations. - Sends a high-priority
ntfynotification tohttps://ntfy.orfel.de/Schnappix-Frame-Uploadand appends the inquiry todata/buchungen.json.
3. GET / POST feedback_backend.php
GET— Returns all entries fromdata/feedback.json.POSTJSONaction:add: Appends a new feedback item (author,type,title,text).upvote: Increments or decrements (undo: true)upvotesfor a givenid.verify_password: CheckssecretagainstADMIN_PASSWORD.answer: Sets or clears an official admin reply onid(requiressecret).delete: Removes a feedback entry byid(requiressecret).
Project Structure
Schnappix-Web/
├── .env # Local admin password configuration (ADMIN_PASSWORD)
├── .gitignore # Git ignore rules
├── app.js # Mobile nav, tablet demo, FAQ accordion, Feedback Hub & Admin modals
├── datenschutz.html # GDPR privacy policy (website & app)
├── faq.html # Frequently asked questions
├── favicon.png # Site icon / logo
├── features.html # App feature showcase
├── feedback.html # Community Feedback Hub UI
├── feedback_backend.php # JSON API & persistence (data/feedback.json) for Feedback Hub
├── impressum.html # Legal notice (§ 5 DDG)
├── index.html # Landing page with interactive tablet mockup
├── style.css # Neon-synthwave stylesheet
├── tester.html # Closed-beta end notice (5s redirect to index.html)
├── upload.html # Custom PNG frame uploader UI
├── upload_backend.php # PNG validation, duplicate check, storage & ntfy alert
├── verleih.html # Unlisted photobooth rental calculator & booking UI
└── verleih_backend.php # Rental validation, data/buchungen.json persistence & ntfy alert
License
This project's own code and configuration are dedicated to the public domain under CC0 1.0 Universal — see LICENSE.
External dependencies installed via package managers or Docker images retain their respective open-source licenses.