Buttons, Riddles, RiddleStyles
This commit is contained in:
1 parent
54f4e991a3
commit
690eb07eb0
10 files changed
+95
-57
No files matched your search
@@ -111,18 +111,6 @@ export default function Intro() {
|
||||
}} holdDuration={500} disabled={!isPlayerCountValid}>
|
||||
Halten, um das Video anzusehen!
|
||||
</ChargedButton>
|
||||
<br></br>
|
||||
<ChargedButton onAction={() => {
|
||||
|
||||
}} holdDuration={2600} red={false}>
|
||||
Test
|
||||
</ChargedButton>
|
||||
<br></br>
|
||||
<ChargedButton onAction={() => {
|
||||
|
||||
}} holdDuration={2600} red={true}>
|
||||
Test
|
||||
</ChargedButton>
|
||||
</div>
|
||||
:
|
||||
<div className={styles["intro-video-container"]}>
|
||||
|
||||
@@ -13,17 +13,11 @@ import OldButton from "../OldButton";
|
||||
import RiddleScreen from "../RiddleScreen";
|
||||
import OldPopUp from "../OldPopUp";
|
||||
import { MAX_POINTS, MIN_POINTS } from "@/utils/points";
|
||||
import { getPlayers } from "@/utils/players";
|
||||
import { getAnswers } from "@/utils/player_answers";
|
||||
|
||||
export default function Tour() {
|
||||
const [ stepStr, setStep ] = useLocalStorage(PREF.step, "0");
|
||||
const [ activeRiddle, setActiveRiddle ] = useState<string | null>("riddle_1");
|
||||
const [ clickedMarker, setClickedMarker ] = useState({
|
||||
"id": "riddle_1",
|
||||
"station_name": "Station 1",
|
||||
"station_title": "Der Hüter des Tores"
|
||||
});
|
||||
const [ activeRiddle, setActiveRiddle ] = useState<string | null>(null);
|
||||
const [ clickedMarker, setClickedMarker ] = useState(null);
|
||||
const [ tourCode, setTourCode ] = useLocalStorage(PREF.code, "");
|
||||
const [ completedRiddlesStr, setCompletedRiddles ] = useLocalStorage(PREF.completed_riddles, "");
|
||||
const [ , setPlayers ] = useLocalStorage(PREF.players, "");
|
||||
@@ -32,9 +26,6 @@ export default function Tour() {
|
||||
const { gpsStatus, cameraStatus } = usePermissions();
|
||||
const points = Number.parseInt(pointsStr);
|
||||
|
||||
console.log(getPlayers());
|
||||
console.log(getAnswers());
|
||||
|
||||
const permissionsGranted = gpsStatus === "granted" && cameraStatus === "granted";
|
||||
|
||||
const riddleData = {
|
||||
|
||||
Reference in new issue
Block a user