Compare commits

...

10 Commits

Author SHA1 Message Date
6a5ff44135 Add chip selection feature for "s" tags
Implemented a chip selection modal that appears when cycling to the "s" tag. Users can now assign specific chips (e.g., "s.AL") to entries, improving interactivity and flexibility in tagging.
2026-02-03 15:00:31 +01:00
3546500d9e Refactor styles to use central theme tokens for consistency.
Replaced hardcoded colors and styles with reusable `stylesTokens` for improved maintainability and uniformity across the application. Simplified inline styles, cleaned up redundancies, and enhanced readability while adhering to the new dark and gold theme.
2026-02-03 13:52:43 +01:00
6cf7bf506a Add PWA support using vite-plugin-pwa
Integrated the vite-plugin-pwa to enable Progressive Web App functionality. Added service worker registration, manifest configuration, and necessary assets like icons and favicon. This enhances offline capabilities and user experience.
2026-02-03 13:35:52 +01:00
52e1d5f0f8 Update marauders-map-blur.jpg in public assets
Replaced the previous version of the marauders-map-blur.jpg file with an updated one. This ensures the latest version is available in the frontend public assets directory.
2026-02-03 13:18:39 +01:00
e6267986db Update styling for App background elements
Removed unused `bgInkVignette` styles and adjusted `zIndex` for better layering control. Updated background image URL for `bgMap` to ensure proper path resolution. These changes improve overall code clarity and maintainability.
2026-02-03 13:16:35 +01:00
e6d32bc151 Remove redundant background style settings.
The background color settings for `document.body` and `document.documentElement` were removed as they are not needed. This simplifies the global styling without affecting functionality.
2026-02-03 13:11:55 +01:00
9fd8934439 Remove unused bgInkVignette styling and references.
This cleanup removes the bgInkVignette element and its associated styles from the codebase. These changes simplify the component structure and improve maintainability by eliminating unnecessary code.
2026-02-03 13:10:10 +01:00
f65a2b30ee Update comments for background styling configuration
Replaced a single-line comment with a block comment in the background styling configuration. No functional changes were made; this is purely for better readability and maintainability.
2026-02-03 13:07:43 +01:00
def1fb9545 Update background image for the map in App.jsx
Replaced the old background image with a new blurred version to improve visual aesthetics. The updated image is located in the '/public/bg/' directory.
2026-02-03 13:04:36 +01:00
1645de206f Comment out unused CSS styles
Unused CSS styles related to hover, tap highlight, and button states in the App component have been commented out to clean up the file. This change helps to improve code readability and reduce clutter while retaining the styles for potential future use.
2026-02-03 13:03:33 +01:00
7 changed files with 374 additions and 367 deletions

View File

@@ -13,6 +13,7 @@
},
"devDependencies": {
"@vitejs/plugin-react": "^4.3.1",
"vite": "^5.4.8"
"vite": "^5.4.8",
"vite-plugin-pwa": "^0.20.0"
}
}

Binary file not shown.

Before

Width:  |  Height:  |  Size: 48 KiB

After

Width:  |  Height:  |  Size: 47 KiB

BIN
frontend/public/favicon.ico Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 341 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 122 KiB

File diff suppressed because it is too large Load Diff

View File

@@ -1,5 +1,7 @@
import React from "react";
import { createRoot } from "react-dom/client";
import App from "./App.jsx";
import { registerSW } from "virtual:pwa-register";
createRoot(document.getElementById("root")).render(<App />);
registerSW({ immediate: true });

View File

@@ -1,6 +1,34 @@
import { defineConfig } from "vite";
import react from "@vitejs/plugin-react";
import { VitePWA } from "vite-plugin-pwa";
export default defineConfig({
plugins: [react()],
plugins: [
react(),
VitePWA({
registerType: "autoUpdate",
includeAssets: [
"favicon.ico",
"icons/icon-512.png",
"marauders-map.jpg" // oder dein Hintergrund
],
manifest: {
name: "Zauber-Detektiv Notizbogen",
short_name: "Notizbogen",
description: "Cluedo-Magie Sheet",
start_url: "/",
scope: "/",
display: "standalone",
background_color: "#1c140d",
theme_color: "#caa45a",
icons: [
{ src: "/icons/icon-512.png", sizes: "512x512", type: "image/png" }
]
},
workbox: {
// Caching-Default: die App-Shell wird offline verfügbar
globPatterns: ["**/*.{js,css,html,ico,png,jpg,jpeg,svg,webp}"],
}
})
]
});