2026-07-05 10:41:28 +02:00

Schnappix-Web Logo

Schnappix-Web

Official website, interactive demo, custom frame uploader, photobooth rental calculator, and community Feedback Hub for the Schnappix Android app.

🇬🇧 English · 🇩🇪 Deutsch


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 (#050510 background, #ff2bd6 primary magenta, #28dfff cyan 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 both uploads/ and the Schnappix Gitea repository, and ntfy push notifications.
  • Photobooth Rental Calculator & Booking (verleih.html + verleih_backend.php): Unlisted (noindex, nofollow) rental configurator with magnetic snap-point slider (0–540 prints in 54-photo packs, or free input up to 9999), backdrop/tripod/cloud selection, validation, ntfy alerts, and JSON booking persistence.
  • Community Feedback Hub (feedback.html + feedback_backend.php): Submit feature requests, bug reports, or praise; filter by category; upvote posts (localStorage tracking); 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 to index.html after 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-shadow glow and glassmorphism (backdrop-filter)

Prerequisites & Installation

Prerequisites

  • A web server with PHP (with fileinfo and curl extensions enabled) for the dynamic backends (upload_backend.php, verleih_backend.php, feedback_backend.php)
  • Write permissions for the web server user on uploads/ and data/ (created automatically if permitted)
  • For static-only frontend previews (without form submissions), any local HTTP server or browser works

Setup

  1. Clone the repository:

    git clone https://git.orfel.de/Jannik/Schnappix-Web.git
    cd Schnappix-Web
    
  2. Configure .env (see Configuration) with your admin password for the Feedback Hub.

  3. Serve the directory with PHP or a PHP-enabled web server (Apache/Nginx + PHP-FPM):

    php -S 127.0.0.1:8080
    

    Then open http://127.0.0.1:8080/index.html.


Configuration

Environment Variables (.env)

feedback_backend.php resolves the admin password in the following order:

  1. System environment variable ADMIN_PASSWORD
  2. .env file in the repository root (ADMIN_PASSWORD=...)
  3. Fallback default 1234 (if neither is set)

Example .env:

ADMIN_PASSWORD=your-secure-admin-password

Runtime Storage Directories

  • uploads/ — Stores validated PNG frames uploaded via upload.html as frame_<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 via verleih.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 normalizes frame_name ([a-z0-9_]) to frame_<name>.png.
  • Verifies uniqueness locally in uploads/ and remotely via https://git.orfel.de/api/v1/repos/Jannik/Schnappix/contents/assets/frames.
  • Saves the PNG to uploads/ and sends an ntfy push alert (with image URL & attachment header) to https://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 nonsensical 0 prints + without cloud combinations.
  • Sends a high-priority ntfy notification to https://ntfy.orfel.de/Schnappix-Frame-Upload and appends the inquiry to data/buchungen.json.

3. GET / POST feedback_backend.php

  • GET — Returns all entries from data/feedback.json.
  • POST JSON action:
    • add: Appends a new feedback item (author, type, title, text).
    • upvote: Increments or decrements (undo: true) upvotes for a given id.
    • verify_password: Checks secret against ADMIN_PASSWORD.
    • answer: Sets or clears an official admin reply on id (requires secret).
    • delete: Removes a feedback entry by id (requires secret).

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.

S
Description
Landingpage, Feature-Übersicht, Fotorahmen-Upload und rechtliche Seiten (Impressum/Datenschutz) für Schnappix.
Readme CC0-1.0
1.6 MiB
0 Stars 1 Watchers 0 Forks
Languages
HTML 66.4%
CSS 20%
JavaScript 7.3%
PHP 6.3%