RiddleScreen and RIDDLESSS improvements
This commit is contained in:
1 parent
5ac5ba72da
commit
bfdb2d01d1
16 files changed
+165
-70
No files matched your search
@@ -14,13 +14,15 @@ import extraStyles from "@/components/riddles-css/Riddle_4.module.css";
|
||||
import SelectionButton from "../SelectionButton";
|
||||
|
||||
export default function Riddle_4({
|
||||
page,
|
||||
setPage,
|
||||
riddle,
|
||||
showBanner,
|
||||
exitFunction,
|
||||
showBanner
|
||||
voiceOverMode
|
||||
}: RiddleScreenControls) {
|
||||
const [ selection, setSelection ] = useState(-1);
|
||||
|
||||
const [ page, setPage ] = useState(0);
|
||||
const pages = [
|
||||
(
|
||||
<div key={0}>
|
||||
@@ -40,16 +42,16 @@ export default function Riddle_4({
|
||||
<p>Hört euch die Unterhaltung der beiden Bauern aufmerksam an.</p>
|
||||
<p>Irgendetwas daran stimmt nicht.</p>
|
||||
<p>Wenn ihr glaubt, die Unterhaltung verstanden zu haben, drückt ihr auf "Weiter".</p>
|
||||
<div style={{display: "flex", justifyContent: "center"}}>
|
||||
<audio controls controlsList="nodownload nofullscreen" preload="auto">
|
||||
<div style={{display: "flex", justifyContent: "center", flexDirection: "column", rowGap: "1rem"}}>
|
||||
<audio controls controlsList="nodownload nofullscreen" preload="auto" style={{width: "100%"}}>
|
||||
<source src="/res/tour/riddle_4/audio.mp3" type="audio/mpeg" />
|
||||
</audio>
|
||||
<OldButton red={false} onAction={() => {
|
||||
setPage(2);
|
||||
}} disabled={false}>WEITER</OldButton>
|
||||
</div>
|
||||
</div>
|
||||
<div className={styles["buttons"]}>
|
||||
<OldButton red={false} onAction={() => {
|
||||
setPage(2);
|
||||
}} disabled={false}>WEITER</OldButton>
|
||||
<OldButton red={true} onAction={() => setPage(0)}>ZURÜCK</OldButton>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
Reference in new issue
Block a user