feat(WEB-112): adjust current-blocks-page to new model

This commit is contained in:
Simon Emanuelsson
2024-02-20 13:50:50 +01:00
parent 99c2a136ba
commit 9e56ff158d
33 changed files with 116 additions and 299 deletions

View File

@@ -2,7 +2,6 @@
import { useState } from "react"
import Image from "@/components/Image"
import Link from "next/link"
// import Mobile from "../LanguageSwitcher/Mobile"
import styles from "./mainMenu.module.css"
@@ -40,7 +39,7 @@ export default function MainMenu({ frontpageLinkText, homeHref, links, logo, top
<span className={styles.hiddenAccessible}>Menu</span>
</button>
<Link
<a
className={styles.logoLink}
href={homeHref}
id="scandic-logo"
@@ -59,7 +58,7 @@ export default function MainMenu({ frontpageLinkText, homeHref, links, logo, top
src={logo.url}
width={logo.dimension.width}
/>
</Link>
</a>
<nav>
<ul
@@ -67,26 +66,26 @@ export default function MainMenu({ frontpageLinkText, homeHref, links, logo, top
data-collapsable="main-menu"
id="main-menu"
>
{links.map(({ link }) => (
{links.map(link => (
<li
className={styles.li}
key={link.href}
>
<Link
<a
className={styles.link}
href={link.href}
>
{link.title}
</Link>
</a>
</li>
))}
<ul className={styles.mobileList}>
{topMenuMobileLinks.map(({ link }) => (
<li className={styles.mobileLi} key={link.href}>
<Link className={styles.mobileLink} href={link.href}>
<a className={styles.mobileLink} href={link.href}>
{link.title}
</Link>
</a>
</li>
))}
</ul>