Buttons, Riddles, RiddleStyles
This commit is contained in:
1 parent
54f4e991a3
commit
690eb07eb0
10 files changed
+95
-57
No files matched your search
@@ -2,6 +2,7 @@
|
||||
|
||||
import { CSSProperties, ReactNode, useEffect, useRef, useState } from "react";
|
||||
import styles from "@/css/ChargedButton.module.css";
|
||||
import clsx from "clsx";
|
||||
|
||||
interface ChargedButtonProps {
|
||||
children?: ReactNode;
|
||||
@@ -102,9 +103,9 @@ export default function ChargedButton({
|
||||
}}
|
||||
>
|
||||
<span
|
||||
className={styles["charged-button-frame"]}
|
||||
className={styles["charged-button-frame"]}
|
||||
aria-hidden="true"
|
||||
style={{ backgroundImage: "url(/buttons/Button_leer.webp)" }}
|
||||
style={{ backgroundImage: red ? "url(/buttons/Button_rot_lang.webp)" : "url(/buttons/Button_blau_lang.webp)" }}
|
||||
/>
|
||||
|
||||
<span
|
||||
@@ -117,7 +118,7 @@ export default function ChargedButton({
|
||||
}}
|
||||
/>
|
||||
|
||||
<span className={styles["charged-button-label"]}>{children}</span>
|
||||
<span className={clsx(styles["charged-button-label"], "lancelot-regular")}>{children}</span>
|
||||
</button>
|
||||
);
|
||||
}
|
||||
Reference in new issue
Block a user