Design Start
This commit is contained in:
1 parent
b5a088cf9c
commit
dfe4ab50f3
57 files changed
+478
-141
No files matched your search
+8
-5
@@ -16,10 +16,6 @@
|
||||
font-family: 'Lancelot';
|
||||
}
|
||||
|
||||
.test {
|
||||
color: red;
|
||||
}
|
||||
|
||||
.lancelot-italic {
|
||||
font-family: 'Lancelot';
|
||||
font-style: oblique 15deg;
|
||||
@@ -37,6 +33,12 @@
|
||||
:root {
|
||||
--background: #ffffff;
|
||||
--foreground: #171717;
|
||||
|
||||
--blue: #294a97;
|
||||
--dark-brown: #38241b;
|
||||
--light-blue: #3f8fca;
|
||||
--light-brown: #bfb2a1;
|
||||
--green: #008539;
|
||||
}
|
||||
|
||||
@media (prefers-color-scheme: dark) {
|
||||
@@ -66,7 +68,8 @@ body {
|
||||
min-height: 100%;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
color: var(--foreground);
|
||||
/*color: var(--foreground);*/
|
||||
color: var(--dark-brown);
|
||||
background: var(--background);
|
||||
font-family: Arial, Helvetica, sans-serif;
|
||||
-webkit-font-smoothing: antialiased;
|
||||
|
||||
+3
-12
@@ -1,17 +1,7 @@
|
||||
import { SerwistProvider } from "@serwist/turbopack/react";
|
||||
import type { Metadata, Viewport } from "next";
|
||||
import { Geist, Geist_Mono } from "next/font/google";
|
||||
import "./globals.css";
|
||||
|
||||
const geistSans = Geist({
|
||||
variable: "--font-geist-sans",
|
||||
subsets: ["latin"],
|
||||
});
|
||||
|
||||
const geistMono = Geist_Mono({
|
||||
variable: "--font-geist-mono",
|
||||
subsets: ["latin"],
|
||||
});
|
||||
import clsx from "clsx";
|
||||
|
||||
export const metadata: Metadata = {
|
||||
title: "Excalibur Outdoor Tour",
|
||||
@@ -20,8 +10,9 @@ export const metadata: Metadata = {
|
||||
|
||||
export default function RootLayout({ children }: LayoutProps<"/">) {
|
||||
return (
|
||||
<html lang="en" dir="ltr" className={`${geistSans.variable} ${geistMono.variable}`}>
|
||||
<html lang="en" dir="ltr" className={clsx("eisenkraft-regular")}>
|
||||
<meta name="apple-mobile-web-app-title" content="Excalibur Outdoor Tour" />
|
||||
<meta httpEquiv="ScreenOrientation" content="autoRotate:disabled" />
|
||||
<body>
|
||||
<SerwistProvider swUrl="/serwist/sw.js">{children}</SerwistProvider>
|
||||
</body>
|
||||
|
||||
+2
-2
@@ -13,7 +13,7 @@ export default function manifest(): MetadataRoute.Manifest {
|
||||
background_color: '#000000',
|
||||
theme_color: '#ffffff',
|
||||
icons: [
|
||||
{
|
||||
/*{
|
||||
src: '/icons/icon-192x192.png',
|
||||
sizes: '192x192',
|
||||
type: 'image/png',
|
||||
@@ -22,7 +22,7 @@ export default function manifest(): MetadataRoute.Manifest {
|
||||
src: '/icons/icon-512x512.png',
|
||||
sizes: '512x512',
|
||||
type: 'image/png',
|
||||
},
|
||||
},*/
|
||||
],
|
||||
}
|
||||
}
|
||||
@@ -14,7 +14,6 @@
|
||||
flex-direction: column;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
font-family: var(--font-geist-sans);
|
||||
background-color: var(--background);
|
||||
|
||||
&.pad {
|
||||
|
||||
+1
-11
@@ -27,24 +27,14 @@ export default function Main() {
|
||||
console.log("TourCode", tourCode);
|
||||
|
||||
const content = [
|
||||
(<StyledContainer key={-1}><p>Test!</p></StyledContainer>),
|
||||
(<WelcomeScreen key={0}/>),
|
||||
(<Intro key={1} />),
|
||||
(<Tour key={2} />)
|
||||
];
|
||||
|
||||
return (
|
||||
<div className={clsx(styles.page, (step < 2 && false) && styles["pad"])}>
|
||||
<div className={clsx(styles.page, "lancelot-regular")}>
|
||||
<main className={styles.main}>
|
||||
<img src={"/Startseite_Hintergrund.webp"} style={{
|
||||
position: "absolute",
|
||||
top: 0,
|
||||
left: 0,
|
||||
width: "100%",
|
||||
height: "100%",
|
||||
objectFit: "scale-down",
|
||||
zIndex: 7
|
||||
}} />
|
||||
{content[step]}
|
||||
</main>
|
||||
</div>
|
||||
|
||||
@@ -141,7 +141,7 @@ export default function MapView({
|
||||
}`
|
||||
);
|
||||
|
||||
const newMarker = new maplibregl.Marker({ color: '#e11d48' })
|
||||
const newMarker = new maplibregl.Marker({ color: '#e11d48', })
|
||||
.setLngLat([markerData.lng, markerData.lat])
|
||||
.setPopup(popup)
|
||||
.addTo(map);
|
||||
|
||||
@@ -0,0 +1,40 @@
|
||||
"use client";
|
||||
|
||||
import React, { CSSProperties } from 'react';
|
||||
import styles from "@/css/OldButton.module.css";
|
||||
import clsx from 'clsx';
|
||||
|
||||
interface OldButtonProps {
|
||||
children?: string;
|
||||
long?: boolean;
|
||||
red?: boolean;
|
||||
disabled?: boolean;
|
||||
className?: string;
|
||||
style?: CSSProperties;
|
||||
onAction?: () => void;
|
||||
};
|
||||
|
||||
export default function OldButton({children, long=true, red=true, disabled=false, className, style, onAction}: OldButtonProps) {
|
||||
return (
|
||||
<button
|
||||
className={clsx(styles["button"], disabled && styles["button-disabled"], className)}
|
||||
style={style}
|
||||
onClick={(disabled ? undefined : onAction)}
|
||||
disabled={disabled}
|
||||
>
|
||||
<img
|
||||
src={
|
||||
red ?
|
||||
long ? "/buttons/Button_rot_lang.webp" : "/buttons/Button_rot_kurz.webp"
|
||||
:
|
||||
long ? "/buttons/Button_blau_lang.webp" : "/buttons/Button_blau_kurz.webp"
|
||||
}
|
||||
alt={"Button Background"}
|
||||
className={styles["image"]}
|
||||
/>
|
||||
<span className={clsx(styles["label"], "lancelot-regular", disabled && styles["label-disabled"])}>
|
||||
{children}
|
||||
</span>
|
||||
</button>
|
||||
);
|
||||
}
|
||||
@@ -0,0 +1,37 @@
|
||||
import clsx from "clsx";
|
||||
import { ChangeEventHandler, CSSProperties } from "react";
|
||||
import styles from "@/css/OldTextInput.module.css";
|
||||
|
||||
interface OldTextInput {
|
||||
value?: string;
|
||||
onChange?: ChangeEventHandler<HTMLInputElement, HTMLInputElement>;
|
||||
ariaLabel?: string;
|
||||
placeholder?: string;
|
||||
style?: CSSProperties;
|
||||
className?: string;
|
||||
disabled?: boolean;
|
||||
};
|
||||
|
||||
export default function OldTextInput({
|
||||
value,
|
||||
onChange,
|
||||
ariaLabel,
|
||||
placeholder,
|
||||
style,
|
||||
className,
|
||||
disabled = false,
|
||||
}: OldTextInput) {
|
||||
return (
|
||||
<label>
|
||||
<input
|
||||
type="text"
|
||||
className={clsx(styles["input"], "lancelot-regular", className, disabled && styles["input-disabled"])}
|
||||
value={value}
|
||||
onChange={onChange}
|
||||
aria-label={ariaLabel}
|
||||
placeholder={placeholder}
|
||||
style={style}
|
||||
/>
|
||||
</label>
|
||||
);
|
||||
}
|
||||
@@ -2,7 +2,9 @@
|
||||
|
||||
import { usePermissions } from "@/hooks/usePermission";
|
||||
import { PermissionStateResult } from "@/utils/permissions";
|
||||
import { useEffect } from "react";
|
||||
import { useEffect, useState } from "react";
|
||||
import styles from "@/css/PermissionCheck.module.css";
|
||||
import OldButton from "./OldButton";
|
||||
|
||||
export interface PermissionCheckProps {
|
||||
onRefresh?: (gps: PermissionStateResult, camera: PermissionStateResult) => void;
|
||||
@@ -12,6 +14,8 @@ export default function PermissionCheck({
|
||||
onRefresh
|
||||
}: PermissionCheckProps) {
|
||||
const { gpsStatus, cameraStatus, refresh } = usePermissions();
|
||||
const [ isCamPermissionLoading, setIsCamPermissionLoading ] = useState(false);
|
||||
const [ isGPSPermissionLoading, setIsGPSPermissionLoading ] = useState(false);
|
||||
|
||||
useEffect(() => {
|
||||
if (onRefresh) {
|
||||
@@ -20,29 +24,61 @@ export default function PermissionCheck({
|
||||
}, [onRefresh, gpsStatus, cameraStatus]);
|
||||
|
||||
const requestGPSPermission = () => {
|
||||
navigator.geolocation.getCurrentPosition(() => refresh, () => refresh);
|
||||
setIsGPSPermissionLoading(true);
|
||||
navigator.geolocation.getCurrentPosition((pos) => {
|
||||
setIsGPSPermissionLoading(false);
|
||||
refresh();
|
||||
}, (e) => {
|
||||
setIsGPSPermissionLoading(false);
|
||||
refresh();
|
||||
}, {
|
||||
enableHighAccuracy: true,
|
||||
timeout: 3000
|
||||
});
|
||||
}
|
||||
|
||||
const requestCamPermission = () => {
|
||||
setIsCamPermissionLoading(true);
|
||||
navigator.mediaDevices.getUserMedia({
|
||||
"video": { facingMode: { ideal: "environment" } },
|
||||
"audio": false,
|
||||
}).then((stream) => {
|
||||
setIsCamPermissionLoading(false);
|
||||
refresh();
|
||||
stream.getTracks().forEach(track => track.stop());
|
||||
alert("Keine Sorge! Die Kamera ist wieder ausgeschalten. Der Gerät zeigt Ihnen nur, dass darauf kurz zugegriffen wurde.");
|
||||
}).catch((e) => refresh);
|
||||
alert("Keine Sorge! Die Kamera wurde wieder ausgeschalten. Das Gerät zeigt Ihnen nur, dass darauf kurz zugegriffen wurde.");
|
||||
}).catch((e) => {
|
||||
setIsCamPermissionLoading(false);
|
||||
refresh();
|
||||
});
|
||||
}
|
||||
|
||||
/*<button onClick={refresh} style={{marginBottom: "2rem", marginRight: "3rem"}}>Refresh</button>*/
|
||||
|
||||
return (
|
||||
<div>
|
||||
<p>Für diese Tour werden extra Berechtigungen gebraucht.</p>
|
||||
<p>Kamera: {cameraStatus}</p>
|
||||
<p>GPS: {gpsStatus}</p>
|
||||
<div className={styles["modal"]}>
|
||||
<p style={{color: "var(--blue)", fontSize: "2rem"}} className="eisenkraft-regular">Berechtigungen</p>
|
||||
<br></br>
|
||||
<button onClick={requestGPSPermission} style={{marginBottom: "2rem", marginRight: "3rem"}}>GPS</button>
|
||||
<button onClick={requestCamPermission} style={{marginBottom: "2rem", marginRight: "3rem"}}>Cam</button>
|
||||
<button onClick={refresh} style={{marginBottom: "2rem", marginRight: "3rem"}}>Refresh</button>
|
||||
<p>Für diese Rätseltour werden Berechtigungen gebraucht.</p>
|
||||
<br></br>
|
||||
<p>Ohne diese Berechtigungen ist das Spiel nicht spielbar.</p>
|
||||
<br></br>
|
||||
<div className={styles["status-row"]}>
|
||||
<OldButton
|
||||
disabled={isCamPermissionLoading || cameraStatus === "granted"}
|
||||
onAction={requestCamPermission}
|
||||
>
|
||||
Kamera-Berechtigung</OldButton>
|
||||
<img className={styles["status-icon"]} src={cameraStatus === "granted" ? "/icons/haken.svg" : "/icons/kreuz.svg"} alt={`Status Symbol: ${cameraStatus === "granted" ? "Haken" : "Kreuz"}`}/>
|
||||
</div>
|
||||
<br></br>
|
||||
<div className={styles["status-row"]}>
|
||||
<OldButton
|
||||
disabled={isGPSPermissionLoading || gpsStatus === "granted"}
|
||||
onAction={requestGPSPermission}
|
||||
>GPS-Berechtigung</OldButton>
|
||||
<img className={styles["status-icon"]} src={gpsStatus === "granted" ? "/icons/haken.svg" : "/icons/kreuz.svg"} alt={`Status Symbol: ${gpsStatus === "granted" ? "Haken" : "Kreuz"}`}/>
|
||||
</div>
|
||||
</div>
|
||||
)
|
||||
}
|
||||
@@ -18,28 +18,20 @@ export default function StyledContainer({children, outerStyles, innerStyles, out
|
||||
|
||||
return (
|
||||
<div className={clsx(styles["container"], outerClassName)} style={outerStyles}>
|
||||
<div className={clsx(styles["bar"])} style={{paddingTop: "7.5%"}}>
|
||||
<img src="/container/corner-top-left.webp" className={clsx(styles["corner"])} />
|
||||
<img src="/container/corner-top-right.webp" className={clsx(styles["corner"])} />
|
||||
<div className={clsx(styles["bar"])} style={{top: "3.5dvh"}}>
|
||||
<img src="/container/Ecke_Verzierung.webp" className={clsx(styles["corner"])} style={{rotate: "90deg"}} />
|
||||
<img src="/container/Ecke_Verzierung.webp" className={clsx(styles["corner"])} style={{rotate: "180deg"}} />
|
||||
</div>
|
||||
<div className={clsx(styles["bar"])} style={{padding: "0px 5%"}}>
|
||||
<div className={clsx(styles["column"])}>
|
||||
<img src="/container/line-top-left.webp" className={clsx(styles["line"])} />
|
||||
<img src="/container/symbol-left.webp" className={clsx(styles["symbol"])} />
|
||||
<img src="/container/line-bottom-left.webp" className={clsx(styles["line"])} />
|
||||
</div>
|
||||
<div className={clsx(styles["content-bar"])} style={{padding: "20% 5dvw", paddingBottom: "0px"}}>
|
||||
<img src="/container/Rand_Verzierung.webp" className={clsx(styles["side"])} style={{rotate: "180deg"}} />
|
||||
<div className={clsx(styles["content"], innerClassName)} style={innerStyles}>
|
||||
{children}
|
||||
</div>
|
||||
<div className={clsx(styles["column"])}>
|
||||
<img src="/container/line-top-right.webp" className={clsx(styles["line"])} />
|
||||
<img src="/container/symbol-right.webp" className={clsx(styles["symbol"])} />
|
||||
<img src="/container/line-bottom-right.webp" className={clsx(styles["line"])} />
|
||||
</div>
|
||||
<img src="/container/Rand_Verzierung.webp" className={clsx(styles["side"])} />
|
||||
</div>
|
||||
<div className={clsx(styles["bar"])}>
|
||||
<img src="/container/corner-bottom-left.webp" className={clsx(styles["corner"])} />
|
||||
<img src="/container/corner-bottom-right.webp" className={clsx(styles["corner"])} />
|
||||
<div className={clsx(styles["bar"])} style={{bottom: "3.5dvh"}}>
|
||||
<img src="/container/Ecke_Verzierung.webp" className={clsx(styles["corner"])} />
|
||||
<img src="/container/Ecke_Verzierung.webp" className={clsx(styles["corner"])} style={{rotate: "270deg"}} />
|
||||
</div>
|
||||
</div>
|
||||
);
|
||||
|
||||
@@ -7,6 +7,8 @@ import { InputEvent, MouseEvent, MouseEventHandler, PointerEvent, useRef, useSta
|
||||
import Image from "next/image";
|
||||
import PermissionCheck from "../PermissionCheck";
|
||||
import { PermissionStateResult } from "@/utils/permissions";
|
||||
import StyledContainer from "../StyledContainer";
|
||||
import OldButton from "../OldButton";
|
||||
|
||||
export default function Intro() {
|
||||
const [ stepStr, setStep ] = useLocalStorage(PREF.step, "0");
|
||||
@@ -25,67 +27,73 @@ export default function Intro() {
|
||||
setGranted(gps === "granted" && cam === "granted");
|
||||
};
|
||||
|
||||
return (
|
||||
return (
|
||||
<div className="screen-container">
|
||||
{ !rewatchScreen ?
|
||||
<div>
|
||||
<p>CODE EINGELÖST</p>
|
||||
<p>TON AN</p>
|
||||
<PermissionCheck onRefresh={handlePermissions}></PermissionCheck>
|
||||
<br></br>
|
||||
<ChargedButton onAction={() => {
|
||||
setRewatchScreen(true);
|
||||
}} holdDuration={500} disabled={!granted}>
|
||||
Video ansehen
|
||||
</ChargedButton>
|
||||
<div className={styles["overlay-video"]}>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
:
|
||||
<div className={styles["intro-video-container"]}>
|
||||
<video
|
||||
ref={introVideoRef}
|
||||
disablePictureInPicture={true}
|
||||
autoPlay={true}
|
||||
loop={false}
|
||||
autoFocus={true}
|
||||
width={"100%"}
|
||||
onEnded={() => setVideoEnded(true)}
|
||||
onAbort={() => setVideoEnded(true)}
|
||||
onError={() => setVideoEnded(true)}
|
||||
onPause={() => setVideoPaused(true)}
|
||||
onPlay={() => setVideoPaused(false)}
|
||||
onClick={handleVideoClick}
|
||||
onContextMenu={(e) => {
|
||||
e.preventDefault();
|
||||
return false;
|
||||
}}
|
||||
>
|
||||
<source src="/res/intro/testvid.webm" type="video/webm"/>
|
||||
</video>
|
||||
{ !videoEnded && videoPaused ?
|
||||
<div className={styles["pause-screen"]}>
|
||||
<Image src="/icons/pause.svg" alt="Pause Icon" width={48} height={48}/>
|
||||
<img src={"/bg/Hintergrund_ohne_Verzierung.webp"} style={{
|
||||
position: "absolute",
|
||||
top: 0,
|
||||
left: 0,
|
||||
width: "100%",
|
||||
height: "100%",
|
||||
objectFit: "cover",
|
||||
zIndex: 1
|
||||
}} alt="Background" loading="eager"/>
|
||||
<StyledContainer innerClassName={styles["permission-container"]}>
|
||||
{ !rewatchScreen ?
|
||||
<div>
|
||||
<PermissionCheck onRefresh={handlePermissions}></PermissionCheck>
|
||||
<OldButton red={false} long={true} style={{margin: "auto", marginTop: "3rem"}}>WEITER</OldButton>
|
||||
{ false && <ChargedButton onAction={() => {
|
||||
setRewatchScreen(true);
|
||||
}} holdDuration={500} disabled={!granted}>
|
||||
Halten, um das Video ansehen
|
||||
</ChargedButton> }
|
||||
</div>
|
||||
:
|
||||
null
|
||||
<div className={styles["intro-video-container"]}>
|
||||
<video
|
||||
ref={introVideoRef}
|
||||
disablePictureInPicture={true}
|
||||
autoPlay={true}
|
||||
loop={false}
|
||||
autoFocus={true}
|
||||
width={"100%"}
|
||||
onEnded={() => setVideoEnded(true)}
|
||||
onAbort={() => setVideoEnded(true)}
|
||||
onError={() => setVideoEnded(true)}
|
||||
onPause={() => setVideoPaused(true)}
|
||||
onPlay={() => setVideoPaused(false)}
|
||||
onClick={handleVideoClick}
|
||||
onContextMenu={(e) => {
|
||||
e.preventDefault();
|
||||
return false;
|
||||
}}
|
||||
>
|
||||
<source src="/res/intro/testvid.webm" type="video/webm"/>
|
||||
</video>
|
||||
{ !videoEnded && videoPaused ?
|
||||
<div className={styles["pause-screen"]}>
|
||||
<Image src="/icons/pause.svg" alt="Pause Icon" width={48} height={48}/>
|
||||
</div>
|
||||
:
|
||||
null
|
||||
}
|
||||
{ videoEnded ? <div className={styles["rewatch-controls"]}>
|
||||
<ChargedButton holdDuration={500} onAction={() => {
|
||||
if (introVideoRef.current) {
|
||||
introVideoRef.current.pause();
|
||||
introVideoRef.current.currentTime = 0;
|
||||
introVideoRef.current.play();
|
||||
setVideoEnded(false);
|
||||
}
|
||||
}}>Video wiederholen?</ChargedButton>
|
||||
<ChargedButton holdDuration={500} onAction={() => {
|
||||
setStep("2");
|
||||
}}>Wir sind bereit!</ChargedButton>
|
||||
</div> : null }
|
||||
</div>
|
||||
}
|
||||
{ videoEnded ? <div className={styles["rewatch-controls"]}>
|
||||
<ChargedButton holdDuration={500} onAction={() => {
|
||||
if (introVideoRef.current) {
|
||||
introVideoRef.current.pause();
|
||||
introVideoRef.current.currentTime = 0;
|
||||
introVideoRef.current.play();
|
||||
setVideoEnded(false);
|
||||
}
|
||||
}}>Video wiederholen?</ChargedButton>
|
||||
<ChargedButton holdDuration={500} onAction={() => {
|
||||
setStep("2");
|
||||
}}>Wir sind bereit!</ChargedButton>
|
||||
</div> : null }
|
||||
</div>
|
||||
}
|
||||
</StyledContainer>
|
||||
</div>
|
||||
)
|
||||
}
|
||||
@@ -5,6 +5,10 @@ import styles from "../../css/WelcomeScreen.module.css";
|
||||
import ChargedButton from "../ChargedButton";
|
||||
import { useLocalStorage } from "@/hooks/useLocalStorage";
|
||||
import { PREF } from "@/utils/const";
|
||||
import StyledContainer from "../StyledContainer";
|
||||
import clsx from "clsx";
|
||||
import OldButton from "../OldButton";
|
||||
import OldTextInput from "../OldTextInput";
|
||||
|
||||
const CODE_LENGTH = 9;
|
||||
const COOLDOWN_MS = 3000;
|
||||
@@ -75,25 +79,44 @@ export default function WelcomeScreen() {
|
||||
|
||||
return (
|
||||
<div className="screen-container">
|
||||
<label className="screen__label">
|
||||
<input
|
||||
type="text"
|
||||
className="screen-input"
|
||||
<img src={"/bg/Startseite_ohne_Verzierung.webp"} style={{
|
||||
position: "absolute",
|
||||
top: 0,
|
||||
left: 0,
|
||||
width: "100%",
|
||||
height: "100%",
|
||||
objectFit: "cover",
|
||||
zIndex: 1
|
||||
}} alt="Background"/>
|
||||
<StyledContainer innerClassName={styles["content"]}>
|
||||
<p style={{fontSize: "1.25rem", color: "var(--dark-brown)"}}>SPIELCODE EINGEBEN:</p>
|
||||
<br></br>
|
||||
<OldTextInput
|
||||
value={tourCode}
|
||||
onChange={handleChange}
|
||||
aria-label="Tour Code"
|
||||
placeholder={`Code eingeben`}
|
||||
/>
|
||||
</label>
|
||||
<br></br>
|
||||
<ChargedButton
|
||||
holdDuration={500}
|
||||
onAction={submit}
|
||||
className="screen-submit"
|
||||
placeholder="XXX-XXX-XXX"
|
||||
style={{
|
||||
textAlign: "center",
|
||||
letterSpacing: "4px"
|
||||
}}/>
|
||||
<br></br>
|
||||
<OldButton
|
||||
red={false}
|
||||
disabled={buttonDisabled}
|
||||
>
|
||||
{(!buttonDisabled) ? "Halten zum Spielen!" : "Halten zum Spielen."}
|
||||
</ChargedButton>
|
||||
onAction={submit}
|
||||
>
|
||||
WEITER
|
||||
</OldButton>
|
||||
{ false ? <ChargedButton
|
||||
holdDuration={500}
|
||||
onAction={submit}
|
||||
className="screen-submit"
|
||||
disabled={buttonDisabled}
|
||||
>
|
||||
{(!buttonDisabled) ? "Halten zum Spielen!" : "Halten zum Spielen."}
|
||||
</ChargedButton> : null}
|
||||
</StyledContainer>
|
||||
</div>
|
||||
);
|
||||
}
|
||||
@@ -1,3 +1,9 @@
|
||||
.permission-container {
|
||||
text-align: center;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
}
|
||||
|
||||
.intro-video-container {
|
||||
position: relative;
|
||||
}
|
||||
|
||||
@@ -0,0 +1,28 @@
|
||||
.button {
|
||||
position: relative;
|
||||
background: none;
|
||||
border: none;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
transition: 150ms ease-out filter;
|
||||
}
|
||||
|
||||
.image {
|
||||
position: relative;
|
||||
width: 250px;
|
||||
}
|
||||
|
||||
.label {
|
||||
position: absolute;
|
||||
font-size: 1.25rem;
|
||||
transition: 150ms ease-out color;
|
||||
}
|
||||
|
||||
.button-disabled {
|
||||
filter: grayscale(0.75);
|
||||
}
|
||||
|
||||
.label-disabled {
|
||||
color: black;
|
||||
}
|
||||
@@ -0,0 +1,30 @@
|
||||
.input {
|
||||
position: relative;
|
||||
border: none;
|
||||
width: 280px;
|
||||
height: auto;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
transition: 150ms ease-out filter;
|
||||
background-image: url("/bg/Eingabefeld.webp");
|
||||
background-position: center;
|
||||
background-size: contain;
|
||||
background-repeat: no-repeat;
|
||||
background-color: transparent;
|
||||
padding: 1rem 2rem;
|
||||
font-size: 1.5rem;
|
||||
--color: #afb2a3;
|
||||
color: white;
|
||||
&::placeholder {
|
||||
color: var(--color);
|
||||
}
|
||||
&:focus {
|
||||
outline: none;
|
||||
}
|
||||
}
|
||||
|
||||
.input-disabled {
|
||||
filter: grayscale(0.75);
|
||||
color: black;
|
||||
}
|
||||
@@ -0,0 +1,24 @@
|
||||
.modal {
|
||||
text-align: center;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
align-items: center;
|
||||
|
||||
p {
|
||||
max-width: 75%;
|
||||
font-size: 1.25rem;
|
||||
}
|
||||
}
|
||||
|
||||
.status-row {
|
||||
display: flex;
|
||||
flex-direction: row;
|
||||
flex-wrap: nowrap;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
}
|
||||
|
||||
.status-icon {
|
||||
width: 32px;
|
||||
margin-left: 8px;
|
||||
}
|
||||
Whitespace-only changes.
@@ -2,18 +2,33 @@
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
width: 100%;
|
||||
z-index: 10;
|
||||
height: 100dvh;
|
||||
justify-content: space-between;
|
||||
position: relative;
|
||||
z-index: 2;
|
||||
}
|
||||
|
||||
.bar {
|
||||
width: 100%;
|
||||
position: absolute;
|
||||
display: flex;
|
||||
flex-direction: row;
|
||||
justify-content: space-between;
|
||||
padding-left: 5.5%;
|
||||
padding-right: 5.5%;
|
||||
padding-left: 6dvw;
|
||||
padding-right: 6dvw;
|
||||
}
|
||||
|
||||
.content-bar {
|
||||
width: 100%;
|
||||
display: flex;
|
||||
flex-direction: row;
|
||||
justify-content: space-between;
|
||||
padding-left: 6dvw;
|
||||
padding-right: 6dvw;
|
||||
}
|
||||
|
||||
.content {
|
||||
padding: 0px 3dvw;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
flex: 1;
|
||||
@@ -28,12 +43,10 @@
|
||||
|
||||
.corner {
|
||||
width: 21%;
|
||||
max-width: 200px;
|
||||
}
|
||||
|
||||
.line {
|
||||
|
||||
}
|
||||
|
||||
.symbol {
|
||||
padding: 14% 0px;
|
||||
.side {
|
||||
padding: 15% 0px;
|
||||
max-height: 80dvh;
|
||||
}
|
||||
@@ -0,0 +1,4 @@
|
||||
.content {
|
||||
justify-content: flex-end;
|
||||
align-items: center;
|
||||
}
|
||||
Reference in new issue
Block a user