diff --git a/public/buttons/Button_groß.webp b/public/buttons/Button_groß.webp new file mode 100644 index 0000000..cd2aa49 Binary files /dev/null and b/public/buttons/Button_groß.webp differ diff --git a/public/buttons/Button_groß_mask.webp b/public/buttons/Button_groß_mask.webp new file mode 100644 index 0000000..84750a2 Binary files /dev/null and b/public/buttons/Button_groß_mask.webp differ diff --git a/public/icons/sprechblase.svg b/public/icons/sprechblase.svg deleted file mode 100644 index 04f5bc4..0000000 --- a/public/icons/sprechblase.svg +++ /dev/null @@ -1,13 +0,0 @@ - - - - - - - - - \ No newline at end of file diff --git a/src/components/SelectionButton.tsx b/src/components/SelectionButton.tsx index 46dcb4e..7aeec54 100644 --- a/src/components/SelectionButton.tsx +++ b/src/components/SelectionButton.tsx @@ -14,7 +14,7 @@ export default function SelectionButton({ }: SelectionButtonProps) { return ( ); diff --git a/src/components/riddles/Riddle_4.tsx b/src/components/riddles/Riddle_4.tsx index 866e3eb..fd6f4b7 100644 --- a/src/components/riddles/Riddle_4.tsx +++ b/src/components/riddles/Riddle_4.tsx @@ -50,6 +50,7 @@ export default function Riddle_4({ { setPage(2); }} disabled={false}>WEITER + setPage(0)}>ZURÜCK ), diff --git a/src/css/SelectionButton.module.css b/src/css/SelectionButton.module.css index b118f9c..f853d49 100644 --- a/src/css/SelectionButton.module.css +++ b/src/css/SelectionButton.module.css @@ -1,4 +1,6 @@ .button { + --w: 300px; + --h: 5rem; background-color: transparent; border: none; display: flex; @@ -7,11 +9,11 @@ justify-content: center; position: relative; - -webkit-mask-image: url("/buttons/Button_leer_mask.webp"); - mask-image: url("/buttons/Button_leer_mask.webp"); + -webkit-mask-image: url("/buttons/Button_groß_mask.webp"); + mask-image: url("/buttons/Button_groß_mask.webp"); - -webkit-mask-size: 220px 3.5rem; - mask-size: 220px 3.5rem; + -webkit-mask-size: var(--w) var(--h); + mask-size: var(--w) var(--h); -webkit-mask-position: center; mask-position: center; @@ -20,14 +22,16 @@ mask-repeat: no-repeat; img { - height: 3.5rem; - width: 220px; + height: var(--h); + width: var(--w); } span { position: absolute; color: var(--dark-brown); font-size: 1.1rem; + text-wrap: balance; + padding: 0rem 1rem; } }