Small changes 1

This commit is contained in:
LionTion committed 2026-10-12 12:31:16 +02:00
1 parent 7ad7c4bd57
commit 381313f91f
13 files changed
+22 -15

No files matched your search

-1
View File
@@ -10,7 +10,6 @@ import Intro from "@/components/screens/Intro";
import { useLocalStorage } from "@/hooks/useLocalStorage";
import { PREF } from "@/utils/const";
import { Player } from "@/types/player";
import { formatPlayerData, parsePlayerData } from "@/utils/dataparser";
import { parse } from "path";
import Tour from "@/components/screens/Tour";
import clsx from "clsx";
+1 -1
View File
@@ -105,7 +105,7 @@ export default function ChargedButton({
<span
className={styles["charged-button-frame"]}
aria-hidden="true"
style={{ backgroundImage: red ? "url(/buttons/Button_rot_lang.webp)" : "url(/buttons/Button_blau_lang.webp)" }}
style={{ backgroundImage: "url(/buttons/Button_leer.webp)" }}
/>
<span
+3 -3
View File
@@ -6,9 +6,9 @@ import 'maplibre-gl/dist/maplibre-gl.css';
import styles from '@/css/MapView.module.css';
export interface PlaceMarker {
id: number;
lat: number;
lng: number;
id: number | undefined;
lat: number | undefined;
lng: number | undefined;
title?: string;
description?: string;
}
+6 -4
View File
@@ -57,6 +57,11 @@ export default function Riddle_4({
<div className={styles["content"]}>
<p>Hört euch die Unterhaltung der beiden Bauern aufmerksam an.</p>
<p>Irgendetwas daran stimmt nicht.</p>
<div className="center-flex" style={{marginBottom: "2rem"}}>
<audio controls controlsList="nodownload nofullscreen" preload="auto" style={{width: "100%"}} playsInline={true}>
<source src="/res/tour/riddle_4/audio.mp3" type="audio/mpeg" />
</audio>
</div>
<p>Wenn ihr glaubt, die Unterhaltung verstanden zu haben, beantwortet folgende Frage:</p>
<p style={{fontWeight: "bold", textAlign: "center"}}>Was ist nach Ansicht der Bauern die einzige Chance des Auserwählten, sich als würdiger König zu erweisen?</p>
<div className={extraStyles["selections"]}>
@@ -65,10 +70,7 @@ export default function Riddle_4({
<SelectionButton selected={selection === 2} onSelect={() => setSelection(2)} klein={false}>Merlins Unterstützung gewinnen und damit seinen Anspruch bestätigen</SelectionButton>
<SelectionButton selected={selection === 3} onSelect={() => setSelection(3)} klein={false}>Den Bund der Tafelrunde neu schmieden</SelectionButton>
</div>
<div style={{display: "flex", justifyContent: "center", flexDirection: "column", rowGap: "2rem", alignItems: "center"}}>
<audio controls controlsList="nodownload nofullscreen" preload="auto" style={{width: "100%"}} playsInline={true}>
<source src="/res/tour/riddle_4/audio.mp3" type="audio/mpeg" />
</audio>
<div className="center-flex">
<ChargedButton red={false} onAction={() => {
if (selection === 3) {
addPoints(riddle.points)
+1 -1
View File
@@ -68,7 +68,7 @@ export default function Riddle_5({
if (s.length < 2) {
return;
}
const correct = s.startsWith("tiefschlund") || s.startsWith("tief schlund");
const correct = s.startsWith("tiefhain") || s.startsWith("tief hain");
if (correct) {
addPoints(riddle.points);
setPage(3);
+1 -1
View File
@@ -109,7 +109,7 @@ export default function Intro() {
setPlayerCount(playerCountStr);
setRewatchScreen(true);
}} holdDuration={500} disabled={!isPlayerCountValid}>
Halten, um das Video anzusehen!
ABENTEUER BEGINNEN!
</ChargedButton>
</div>
:
+3 -3
View File
@@ -12,7 +12,7 @@
isolation: isolate;
cursor: pointer;
background: transparent;
color: #FFF;
color: white;
transition: box-shadow 120ms ease, transform 120ms ease, 150ms ease-out filter, 150ms ease-out color;
-webkit-tap-highlight-color: transparent;
user-select: none;
@@ -22,9 +22,9 @@
}
.charged-button.button-disabled {
opacity: 0.5;
filter: grayscale(0.75) var(--shadow);
cursor: not-allowed;
color: black;
}
.charged-button:active:not(.button-disabled) {
@@ -50,7 +50,7 @@
.charged-button-fill {
z-index: 1;
filter: brightness(2);
/*filter: brightness(2);*/
will-change: clip-path;
}
+1 -1
View File
@@ -5,7 +5,7 @@ export function setPlayerAnswers(answers: string[]) {
window.dispatchEvent(new Event('storage'));
}
export function getAnswers(): Player[] {
export function getAnswers(): string[] {
const answers = localStorage.getItem(PREF.worthyWords);
if (answers === null) {
return [];