diff --git a/public/Startseite_Hintergrund.webp b/public/Startseite_Hintergrund.webp new file mode 100644 index 0000000..fc71e19 Binary files /dev/null and b/public/Startseite_Hintergrund.webp differ diff --git a/public/container/corner-bottom-left.webp b/public/container/corner-bottom-left.webp new file mode 100644 index 0000000..b615747 Binary files /dev/null and b/public/container/corner-bottom-left.webp differ diff --git a/public/container/corner-bottom-right.webp b/public/container/corner-bottom-right.webp new file mode 100644 index 0000000..b372817 Binary files /dev/null and b/public/container/corner-bottom-right.webp differ diff --git a/public/container/corner-top-left.webp b/public/container/corner-top-left.webp new file mode 100644 index 0000000..f62fab1 Binary files /dev/null and b/public/container/corner-top-left.webp differ diff --git a/public/container/corner-top-right.webp b/public/container/corner-top-right.webp new file mode 100644 index 0000000..593c05a Binary files /dev/null and b/public/container/corner-top-right.webp differ diff --git a/public/container/line-bottom-left.webp b/public/container/line-bottom-left.webp new file mode 100644 index 0000000..e332f8c Binary files /dev/null and b/public/container/line-bottom-left.webp differ diff --git a/public/container/line-bottom-right.webp b/public/container/line-bottom-right.webp new file mode 100644 index 0000000..6f40c23 Binary files /dev/null and b/public/container/line-bottom-right.webp differ diff --git a/public/container/line-top-left.webp b/public/container/line-top-left.webp new file mode 100644 index 0000000..d757779 Binary files /dev/null and b/public/container/line-top-left.webp differ diff --git a/public/container/line-top-right.webp b/public/container/line-top-right.webp new file mode 100644 index 0000000..36afe40 Binary files /dev/null and b/public/container/line-top-right.webp differ diff --git a/public/container/symbol-left.webp b/public/container/symbol-left.webp new file mode 100644 index 0000000..3c5527d Binary files /dev/null and b/public/container/symbol-left.webp differ diff --git a/public/container/symbol-right.webp b/public/container/symbol-right.webp new file mode 100644 index 0000000..bae0d97 Binary files /dev/null and b/public/container/symbol-right.webp differ diff --git a/src/app/page.module.css b/src/app/page.module.css index a286f78..61cf2f1 100644 --- a/src/app/page.module.css +++ b/src/app/page.module.css @@ -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; diff --git a/src/app/page.tsx b/src/app/page.tsx index a1d5369..98157a2 100644 --- a/src/app/page.tsx +++ b/src/app/page.tsx @@ -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 = [ + (

Test!

), (), (), () ]; - console.log(styles); - return ( -
+
+ {content[step]}
diff --git a/src/components/ChargedButton.tsx b/src/components/ChargedButton.tsx index 3410698..3d5c7f1 100644 --- a/src/components/ChargedButton.tsx +++ b/src/components/ChargedButton.tsx @@ -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, diff --git a/src/components/StyledContainer.tsx b/src/components/StyledContainer.tsx new file mode 100644 index 0000000..394239d --- /dev/null +++ b/src/components/StyledContainer.tsx @@ -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 ( +
+
+ + +
+
+
+ + + +
+
+ {children} +
+
+ + + +
+
+
+ + +
+
+ ); +} \ No newline at end of file diff --git a/src/css/StyledContainer.module.css b/src/css/StyledContainer.module.css new file mode 100644 index 0000000..04a00ab --- /dev/null +++ b/src/css/StyledContainer.module.css @@ -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; +} \ No newline at end of file