Porządkowanie css, i usuwanie radiowego

This commit is contained in:
dm
2025-11-25 09:52:02 +01:00
parent 0bcc1aeefc
commit 665b787c5c
22 changed files with 202 additions and 198 deletions

View File

@@ -3,6 +3,7 @@ import { useState } from "preact/hooks";
* @typedef {{ name: string; href: string }} MenuLink
* @param {{ links: MenuLink[] }} props
*/
export default function MobileMenu({ links = [] }) {
const [open, setOpen] = useState(false);
@@ -10,21 +11,19 @@ export default function MobileMenu({ links = [] }) {
return (
<>
{/* Ikona hamburgera */}
<button
onClick={toggle}
class="fuz-mobile-toggle md:hidden"
class="f-mobile-toggle md:hidden"
aria-label="Menu mobilne"
>
{open ? "✖" : "☰"}
</button>
{/* Panel mobilny */}
<div class={`fuz-mobile-menu ${open ? "open" : ""}`}>
<div class={`f-mobile-menu ${open ? "open" : ""}`}>
{links.map(link => (
<a
href={link.href}
class="fuz-mobile-link"
class="f-mobile-link"
onClick={() => setOpen(false)}
>
{link.name}