progress
This commit is contained in:
1 parent
11d575e8cb
commit
b5a088cf9c
16 files changed
+99
-5
No files matched your search
@@ -26,7 +26,7 @@
|
||||
display: flex;
|
||||
flex: 1;
|
||||
width: 100%;
|
||||
max-width: 800px;
|
||||
/*max-width: 800px; TODO: rm */
|
||||
flex-direction: column;
|
||||
align-items: flex-start;
|
||||
justify-content: space-between;
|
||||
|
||||
+12
-3
@@ -14,6 +14,7 @@ import { formatPlayerData, parsePlayerData } from "@/utils/dataparser";
|
||||
import { parse } from "path";
|
||||
import Tour from "@/components/screens/Tour";
|
||||
import clsx from "clsx";
|
||||
import StyledContainer from "@/components/StyledContainer";
|
||||
|
||||
export default function Main() {
|
||||
const [ stepStr, setStep ] = useLocalStorage(PREF.step, "0");
|
||||
@@ -26,16 +27,24 @@ 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} />)
|
||||
];
|
||||
|
||||
console.log(styles);
|
||||
|
||||
return (
|
||||
<div className={styles.page + ((step < 2) ? " " + styles["pad"] : "")}>
|
||||
<div className={clsx(styles.page, (step < 2 && false) && styles["pad"])}>
|
||||
<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>
|
||||
|
||||
@@ -12,7 +12,7 @@ interface ChargedButtonProps {
|
||||
/** Runs exactly once, when the button is fully charged at 100%. */
|
||||
onAction?: () => void;
|
||||
disabled?: boolean;
|
||||
}
|
||||
};
|
||||
|
||||
export default function ChargedButton({
|
||||
children,
|
||||
|
||||
@@ -0,0 +1,46 @@
|
||||
/* eslint-disable jsx-a11y/alt-text */
|
||||
/* eslint-disable @next/next/no-img-element */
|
||||
"use client";
|
||||
|
||||
import { CSSProperties, ReactNode } from "react";
|
||||
import styles from "@/css/StyledContainer.module.css";
|
||||
import clsx from "clsx";
|
||||
|
||||
interface StyledContainerProps {
|
||||
children?: ReactNode;
|
||||
outerStyles?: CSSProperties;
|
||||
innerStyles?: CSSProperties;
|
||||
outerClassName?: string;
|
||||
innerClassName?: string;
|
||||
};
|
||||
|
||||
export default function StyledContainer({children, outerStyles, innerStyles, outerClassName, innerClassName}: StyledContainerProps) {
|
||||
|
||||
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>
|
||||
<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"], 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>
|
||||
</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>
|
||||
</div>
|
||||
);
|
||||
}
|
||||
@@ -0,0 +1,39 @@
|
||||
.container {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
width: 100%;
|
||||
z-index: 10;
|
||||
}
|
||||
|
||||
.bar {
|
||||
display: flex;
|
||||
flex-direction: row;
|
||||
justify-content: space-between;
|
||||
padding-left: 5.5%;
|
||||
padding-right: 5.5%;
|
||||
}
|
||||
|
||||
.content {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
flex: 1;
|
||||
}
|
||||
|
||||
.column {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
align-items: center;
|
||||
padding: 10% 0px;
|
||||
}
|
||||
|
||||
.corner {
|
||||
width: 21%;
|
||||
}
|
||||
|
||||
.line {
|
||||
|
||||
}
|
||||
|
||||
.symbol {
|
||||
padding: 14% 0px;
|
||||
}
|
||||
Reference in new issue
Block a user