From dfa0206404f927310182544ce8e5c4040d1518d0 Mon Sep 17 00:00:00 2001 From: LionTion Date: Tue, 22 Sep 2026 19:31:34 +0200 Subject: [PATCH] backup --- src/components/OldPopUp.tsx | 24 +++++++++++ src/components/RiddleScreen.tsx | 2 +- src/components/screens/Intro.tsx | 2 +- src/components/screens/Tour.tsx | 55 ++++++++++++++---------- src/components/screens/WelcomeScreen.tsx | 2 +- src/css/Intro.module.css | 1 + src/css/OldButton.module.css | 1 + src/css/OldPopUp.module.css | 22 ++++++++++ src/css/StyledContainer.module.css | 2 + src/css/Tour.module.css | 36 +++++----------- 10 files changed, 96 insertions(+), 51 deletions(-) create mode 100644 src/components/OldPopUp.tsx create mode 100644 src/css/OldPopUp.module.css diff --git a/src/components/OldPopUp.tsx b/src/components/OldPopUp.tsx new file mode 100644 index 0000000..fc16bde --- /dev/null +++ b/src/components/OldPopUp.tsx @@ -0,0 +1,24 @@ +import styles from "@/css/OldPopUp.module.css"; +import { MouseEventHandler, ReactNode } from "react"; + +interface OldPopUpProps { + children?: ReactNode; + onDismiss?: MouseEventHandler; +}; + +export default function OldPopUp({ + children, + onDismiss, +}: OldPopUpProps) { + return ( +
+ +
+
+ +
+ {children} +
+
+ ); +} \ No newline at end of file diff --git a/src/components/RiddleScreen.tsx b/src/components/RiddleScreen.tsx index a43d69b..b79b641 100644 --- a/src/components/RiddleScreen.tsx +++ b/src/components/RiddleScreen.tsx @@ -17,7 +17,7 @@ export default function RiddleScreen({ riddle, onDismiss }: RiddleScreenProps) { left: 0, width: "100%", height: "100%", - objectFit: "cover", + objectFit: "fill", zIndex: 1 }} alt="Background" loading="eager"/> diff --git a/src/components/screens/Intro.tsx b/src/components/screens/Intro.tsx index bc42da3..9dc9bf0 100644 --- a/src/components/screens/Intro.tsx +++ b/src/components/screens/Intro.tsx @@ -63,7 +63,7 @@ export default function Intro() { left: 0, width: "100%", height: "100%", - objectFit: "cover", + objectFit: "fill", zIndex: 1 }} alt="Background" loading="eager"/> diff --git a/src/components/screens/Tour.tsx b/src/components/screens/Tour.tsx index e7f5400..aa5631b 100644 --- a/src/components/screens/Tour.tsx +++ b/src/components/screens/Tour.tsx @@ -12,6 +12,7 @@ import PermissionCheck from "../PermissionCheck"; import clsx from "clsx"; import OldButton from "../OldButton"; import RiddleScreen from "../RiddleScreen"; +import OldPopUp from "../OldPopUp"; export default function Tour() { const [ stepStr, setStep ] = useLocalStorage(PREF.step, "0"); @@ -76,10 +77,26 @@ export default function Tour() {

Rufpunkte

-
+ + + + +
-
+ + { false &&
+ +
}

6500 / 10.000

@@ -93,27 +110,21 @@ export default function Tour() {
{ activeRiddle === null ? -
- -
-
- -
-
-

Station 1

-

Eine merkwürdige Frage

- { - setActiveRiddle("riddle_one"); - e.stopPropagation(); - }} - >STARTEN -
+ +
+

Station 1

+

Eine merkwürdige Frage

+ { + setActiveRiddle("riddle_one"); + e.stopPropagation(); + }} + >STARTEN
-
+ : } diff --git a/src/components/screens/WelcomeScreen.tsx b/src/components/screens/WelcomeScreen.tsx index c8ce863..e0dce22 100644 --- a/src/components/screens/WelcomeScreen.tsx +++ b/src/components/screens/WelcomeScreen.tsx @@ -85,7 +85,7 @@ export default function WelcomeScreen() { left: 0, width: "100%", height: "100%", - objectFit: "cover", + objectFit: "fill", zIndex: 1 }} alt="Background"/> diff --git a/src/css/Intro.module.css b/src/css/Intro.module.css index 16b4b9e..7cc904a 100644 --- a/src/css/Intro.module.css +++ b/src/css/Intro.module.css @@ -9,6 +9,7 @@ } .intro-video-container video { + display: block; position: relative; top: 0; left: 0; diff --git a/src/css/OldButton.module.css b/src/css/OldButton.module.css index c841933..7ed6c1c 100644 --- a/src/css/OldButton.module.css +++ b/src/css/OldButton.module.css @@ -20,6 +20,7 @@ position: absolute; font-size: 1.25rem; transition: 150ms ease-out color; + color: white; } .button-disabled { diff --git a/src/css/OldPopUp.module.css b/src/css/OldPopUp.module.css new file mode 100644 index 0000000..e247cee --- /dev/null +++ b/src/css/OldPopUp.module.css @@ -0,0 +1,22 @@ +.popup-container { + position: relative; + width: 85%; +} + +.popup-img { + width: 100%; + height: 100%; +} + +.popup-close { + width: 32px; + height: auto; +} + +.popup-controls { + position: absolute; + width: 100%; + top: 0; + left: 0; + padding: 2rem 2rem; +} \ No newline at end of file diff --git a/src/css/StyledContainer.module.css b/src/css/StyledContainer.module.css index 91306a5..4e0d0ed 100644 --- a/src/css/StyledContainer.module.css +++ b/src/css/StyledContainer.module.css @@ -16,6 +16,7 @@ justify-content: space-between; padding-left: 6dvw; padding-right: 6dvw; + pointer-events: none; } .content-bar { @@ -32,6 +33,7 @@ display: flex; flex-direction: column; flex: 1; + z-index: 12; } .column { diff --git a/src/css/Tour.module.css b/src/css/Tour.module.css index 002a2d3..a050b82 100644 --- a/src/css/Tour.module.css +++ b/src/css/Tour.module.css @@ -124,7 +124,7 @@ color: white; } -.points-outer-box { +/*.points-outer-box { --radius: 5px; --border-size: 4px; --inner-radius: calc(var(--radius) + var(--border-size)); @@ -152,11 +152,18 @@ mask-size: 51% 51%; -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat; +}*/ + +.points-outer-box { + position: relative; + width: 70%; + height: 20px; + box-sizing: border-box; } .points-inner-box { - --radius: 5px; - --border-size: 4px; + --radius: 6px; + --border-size: 1px; --inner-radius: calc(var(--radius) + var(--border-size)); --offset: calc(-1 * var(--border-size)); @@ -201,26 +208,3 @@ .crown { width: 2rem; } - -.riddle-popup-container { - position: relative; - width: 85%; -} - -.riddle-popup-img { - width: 100%; - height: 100%; -} - -.riddle-popup-close { - width: 32px; - height: auto; -} - -.popup-controls { - position: absolute; - width: 100%; - top: 0; - left: 0; - padding: 2rem 2rem; -} \ No newline at end of file