backup
This commit is contained in:
1 parent
a014775dd9
commit
dfa0206404
10 files changed
+84
-39
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,
|
left: 0,
|
||||||
width: "100%",
|
width: "100%",
|
||||||
height: "100%",
|
height: "100%",
|
||||||
objectFit: "cover",
|
objectFit: "fill",
|
||||||
zIndex: 1
|
zIndex: 1
|
||||||
}} alt="Background" loading="eager"/>
|
}} alt="Background" loading="eager"/>
|
||||||
<StyledContainer riddleDesign={true}>
|
<StyledContainer riddleDesign={true}>
|
||||||
|
|||||||
@@ -63,7 +63,7 @@ export default function Intro() {
|
|||||||
left: 0,
|
left: 0,
|
||||||
width: "100%",
|
width: "100%",
|
||||||
height: "100%",
|
height: "100%",
|
||||||
objectFit: "cover",
|
objectFit: "fill",
|
||||||
zIndex: 1
|
zIndex: 1
|
||||||
}} alt="Background" loading="eager"/>
|
}} alt="Background" loading="eager"/>
|
||||||
<StyledContainer innerClassName={styles["permission-container"]}>
|
<StyledContainer innerClassName={styles["permission-container"]}>
|
||||||
|
|||||||
@@ -12,6 +12,7 @@ import PermissionCheck from "../PermissionCheck";
|
|||||||
import clsx from "clsx";
|
import clsx from "clsx";
|
||||||
import OldButton from "../OldButton";
|
import OldButton from "../OldButton";
|
||||||
import RiddleScreen from "../RiddleScreen";
|
import RiddleScreen from "../RiddleScreen";
|
||||||
|
import OldPopUp from "../OldPopUp";
|
||||||
|
|
||||||
export default function Tour() {
|
export default function Tour() {
|
||||||
const [ stepStr, setStep ] = useLocalStorage(PREF.step, "0");
|
const [ stepStr, setStep ] = useLocalStorage(PREF.step, "0");
|
||||||
@@ -76,10 +77,26 @@ export default function Tour() {
|
|||||||
</div>
|
</div>
|
||||||
<img src="/icons/krone.svg" className={clsx(styles["crown"])} />
|
<img src="/icons/krone.svg" className={clsx(styles["crown"])} />
|
||||||
<p className="eisenkraft-regular">Rufpunkte</p>
|
<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 className={styles["points-inner-box"]}>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</span>
|
||||||
|
{ false && <div className={styles["points-outer-box"]}>
|
||||||
|
|
||||||
|
</div>}
|
||||||
<p className="eisenkraft-regular" style={{marginTop: "4px"}}>6500 / 10.000</p>
|
<p className="eisenkraft-regular" style={{marginTop: "4px"}}>6500 / 10.000</p>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
@@ -93,12 +110,7 @@ export default function Tour() {
|
|||||||
</div>
|
</div>
|
||||||
<div className={styles["riddle-overlay"]} style={{display: clickedOnMarker ? "" : "none"}}>
|
<div className={styles["riddle-overlay"]} style={{display: clickedOnMarker ? "" : "none"}}>
|
||||||
{ activeRiddle === null ?
|
{ activeRiddle === null ?
|
||||||
<div className={styles["riddle-popup-container"]}>
|
<OldPopUp onDismiss={dismissFunc}>
|
||||||
<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%"}}>
|
<div style={{textAlign: "center", width: "100%"}}>
|
||||||
<p className="eisenkraft-regular" style={{fontSize: "1.25rem"}}>Station 1</p>
|
<p className="eisenkraft-regular" style={{fontSize: "1.25rem"}}>Station 1</p>
|
||||||
<p className="eisenkraft-regular" style={{fontSize: "1.75rem"}}>Eine merkwürdige Frage</p>
|
<p className="eisenkraft-regular" style={{fontSize: "1.75rem"}}>Eine merkwürdige Frage</p>
|
||||||
@@ -112,8 +124,7 @@ export default function Tour() {
|
|||||||
}}
|
}}
|
||||||
>STARTEN</OldButton>
|
>STARTEN</OldButton>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</OldPopUp>
|
||||||
</div>
|
|
||||||
:
|
:
|
||||||
<RiddleScreen onDismiss={_dismissFunc} riddle={null}></RiddleScreen>
|
<RiddleScreen onDismiss={_dismissFunc} riddle={null}></RiddleScreen>
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -85,7 +85,7 @@ export default function WelcomeScreen() {
|
|||||||
left: 0,
|
left: 0,
|
||||||
width: "100%",
|
width: "100%",
|
||||||
height: "100%",
|
height: "100%",
|
||||||
objectFit: "cover",
|
objectFit: "fill",
|
||||||
zIndex: 1
|
zIndex: 1
|
||||||
}} alt="Background"/>
|
}} alt="Background"/>
|
||||||
<StyledContainer innerClassName={styles["content"]}>
|
<StyledContainer innerClassName={styles["content"]}>
|
||||||
|
|||||||
@@ -9,6 +9,7 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
.intro-video-container video {
|
.intro-video-container video {
|
||||||
|
display: block;
|
||||||
position: relative;
|
position: relative;
|
||||||
top: 0;
|
top: 0;
|
||||||
left: 0;
|
left: 0;
|
||||||
|
|||||||
@@ -20,6 +20,7 @@
|
|||||||
position: absolute;
|
position: absolute;
|
||||||
font-size: 1.25rem;
|
font-size: 1.25rem;
|
||||||
transition: 150ms ease-out color;
|
transition: 150ms ease-out color;
|
||||||
|
color: white;
|
||||||
}
|
}
|
||||||
|
|
||||||
.button-disabled {
|
.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;
|
justify-content: space-between;
|
||||||
padding-left: 6dvw;
|
padding-left: 6dvw;
|
||||||
padding-right: 6dvw;
|
padding-right: 6dvw;
|
||||||
|
pointer-events: none;
|
||||||
}
|
}
|
||||||
|
|
||||||
.content-bar {
|
.content-bar {
|
||||||
@@ -32,6 +33,7 @@
|
|||||||
display: flex;
|
display: flex;
|
||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
flex: 1;
|
flex: 1;
|
||||||
|
z-index: 12;
|
||||||
}
|
}
|
||||||
|
|
||||||
.column {
|
.column {
|
||||||
|
|||||||
+10
-26
@@ -124,7 +124,7 @@
|
|||||||
color: white;
|
color: white;
|
||||||
}
|
}
|
||||||
|
|
||||||
.points-outer-box {
|
/*.points-outer-box {
|
||||||
--radius: 5px;
|
--radius: 5px;
|
||||||
--border-size: 4px;
|
--border-size: 4px;
|
||||||
--inner-radius: calc(var(--radius) + var(--border-size));
|
--inner-radius: calc(var(--radius) + var(--border-size));
|
||||||
@@ -152,11 +152,18 @@
|
|||||||
mask-size: 51% 51%;
|
mask-size: 51% 51%;
|
||||||
-webkit-mask-repeat: no-repeat;
|
-webkit-mask-repeat: no-repeat;
|
||||||
mask-repeat: no-repeat;
|
mask-repeat: no-repeat;
|
||||||
|
}*/
|
||||||
|
|
||||||
|
.points-outer-box {
|
||||||
|
position: relative;
|
||||||
|
width: 70%;
|
||||||
|
height: 20px;
|
||||||
|
box-sizing: border-box;
|
||||||
}
|
}
|
||||||
|
|
||||||
.points-inner-box {
|
.points-inner-box {
|
||||||
--radius: 5px;
|
--radius: 6px;
|
||||||
--border-size: 4px;
|
--border-size: 1px;
|
||||||
--inner-radius: calc(var(--radius) + var(--border-size));
|
--inner-radius: calc(var(--radius) + var(--border-size));
|
||||||
--offset: calc(-1 * var(--border-size));
|
--offset: calc(-1 * var(--border-size));
|
||||||
|
|
||||||
@@ -201,26 +208,3 @@
|
|||||||
.crown {
|
.crown {
|
||||||
width: 2rem;
|
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