backup
This commit is contained in:
1 parent
a014775dd9
commit
dfa0206404
10 files changed
+96
-51
No files matched your search
@@ -0,0 +1,24 @@
|
||||
import styles from "@/css/OldPopUp.module.css";
|
||||
import { MouseEventHandler, ReactNode } from "react";
|
||||
|
||||
interface OldPopUpProps {
|
||||
children?: ReactNode;
|
||||
onDismiss?: MouseEventHandler<HTMLImageElement>;
|
||||
};
|
||||
|
||||
export default function OldPopUp({
|
||||
children,
|
||||
onDismiss,
|
||||
}: OldPopUpProps) {
|
||||
return (
|
||||
<div className={styles["popup-container"]}>
|
||||
<img src="/bg/Pop-Up.webp" className={styles["popup-img"]}/>
|
||||
<div className={styles["popup-controls"]}>
|
||||
<div style={{textAlign: "right", width: "100%"}}>
|
||||
<img src="/icons/kreuz.svg" className={styles["popup-close"]} onClick={onDismiss}/>
|
||||
</div>
|
||||
{children}
|
||||
</div>
|
||||
</div>
|
||||
);
|
||||
}
|
||||
@@ -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"/>
|
||||
<StyledContainer riddleDesign={true}>
|
||||
|
||||
@@ -63,7 +63,7 @@ export default function Intro() {
|
||||
left: 0,
|
||||
width: "100%",
|
||||
height: "100%",
|
||||
objectFit: "cover",
|
||||
objectFit: "fill",
|
||||
zIndex: 1
|
||||
}} alt="Background" loading="eager"/>
|
||||
<StyledContainer innerClassName={styles["permission-container"]}>
|
||||
|
||||
@@ -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() {
|
||||
</div>
|
||||
<img src="/icons/krone.svg" className={clsx(styles["crown"])} />
|
||||
<p className="eisenkraft-regular">Rufpunkte</p>
|
||||
<div className={styles["points-outer-box"]}>
|
||||
<span className={styles["points-outer-box"]}>
|
||||
<svg
|
||||
style={{position: "absolute", inset: "0", width: "100%", height: "100%", overflow: "visible"}}
|
||||
viewBox="0 0 100 100"
|
||||
preserveAspectRatio="none"
|
||||
>
|
||||
<rect width="100%" height="100%" fill="none" />
|
||||
<path d="M 10 0 H 90 Q 90 10 100 10 V 90 Q 90 90 90 100 H 10 Q 10 90 0 90 V 10 Q 10 10 10 0 Z"
|
||||
fill="none"
|
||||
stroke="red"
|
||||
strokeWidth="2"
|
||||
vectorEffect="non-scaling-stroke"
|
||||
/>
|
||||
</svg>
|
||||
<div className={styles["points-inner-box"]}>
|
||||
</div>
|
||||
</div>
|
||||
</span>
|
||||
{ false && <div className={styles["points-outer-box"]}>
|
||||
|
||||
</div>}
|
||||
<p className="eisenkraft-regular" style={{marginTop: "4px"}}>6500 / 10.000</p>
|
||||
</div>
|
||||
</div>
|
||||
@@ -93,27 +110,21 @@ export default function Tour() {
|
||||
</div>
|
||||
<div className={styles["riddle-overlay"]} style={{display: clickedOnMarker ? "" : "none"}}>
|
||||
{ activeRiddle === null ?
|
||||
<div className={styles["riddle-popup-container"]}>
|
||||
<img src="/bg/Pop-Up.webp" className={styles["riddle-popup-img"]}/>
|
||||
<div className={styles["popup-controls"]}>
|
||||
<div style={{textAlign: "right", width: "100%"}}>
|
||||
<img src="/icons/kreuz.svg" className={styles["riddle-popup-close"]} onClick={dismissFunc}/>
|
||||
</div>
|
||||
<div style={{textAlign: "center", width: "100%"}}>
|
||||
<p className="eisenkraft-regular" style={{fontSize: "1.25rem"}}>Station 1</p>
|
||||
<p className="eisenkraft-regular" style={{fontSize: "1.75rem"}}>Eine merkwürdige Frage</p>
|
||||
<OldButton
|
||||
red={false}
|
||||
long={true}
|
||||
style={{margin: "auto", marginTop: "8px"}}
|
||||
onAction={(e) => {
|
||||
setActiveRiddle("riddle_one");
|
||||
e.stopPropagation();
|
||||
}}
|
||||
>STARTEN</OldButton>
|
||||
</div>
|
||||
<OldPopUp onDismiss={dismissFunc}>
|
||||
<div style={{textAlign: "center", width: "100%"}}>
|
||||
<p className="eisenkraft-regular" style={{fontSize: "1.25rem"}}>Station 1</p>
|
||||
<p className="eisenkraft-regular" style={{fontSize: "1.75rem"}}>Eine merkwürdige Frage</p>
|
||||
<OldButton
|
||||
red={false}
|
||||
long={true}
|
||||
style={{margin: "auto", marginTop: "8px"}}
|
||||
onAction={(e) => {
|
||||
setActiveRiddle("riddle_one");
|
||||
e.stopPropagation();
|
||||
}}
|
||||
>STARTEN</OldButton>
|
||||
</div>
|
||||
</div>
|
||||
</OldPopUp>
|
||||
:
|
||||
<RiddleScreen onDismiss={_dismissFunc} riddle={null}></RiddleScreen>
|
||||
}
|
||||
|
||||
@@ -85,7 +85,7 @@ export default function WelcomeScreen() {
|
||||
left: 0,
|
||||
width: "100%",
|
||||
height: "100%",
|
||||
objectFit: "cover",
|
||||
objectFit: "fill",
|
||||
zIndex: 1
|
||||
}} alt="Background"/>
|
||||
<StyledContainer innerClassName={styles["content"]}>
|
||||
|
||||
@@ -9,6 +9,7 @@
|
||||
}
|
||||
|
||||
.intro-video-container video {
|
||||
display: block;
|
||||
position: relative;
|
||||
top: 0;
|
||||
left: 0;
|
||||
|
||||
@@ -20,6 +20,7 @@
|
||||
position: absolute;
|
||||
font-size: 1.25rem;
|
||||
transition: 150ms ease-out color;
|
||||
color: white;
|
||||
}
|
||||
|
||||
.button-disabled {
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
@@ -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 {
|
||||
|
||||
+10
-26
@@ -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;
|
||||
}
|
||||
Reference in new issue
Block a user