feat(SW-187) Secondary navigation

This commit is contained in:
Pontus Dreij
2024-08-30 08:48:28 +02:00
parent bb454d77c4
commit d057db6156
9 changed files with 29 additions and 18 deletions

View File

@@ -52,7 +52,7 @@
gap: var(--Spacing-x1);
}
@media screen and (min-width: 1367px) {
@media screen and (min-width: 767px) {
.details {
padding: var(--Spacing-x6) var(--Spacing-x5) var(--Spacing-x4);
}

View File

@@ -22,7 +22,7 @@
justify-content: space-between;
}
@media screen and (min-width: 1367px) {
@media screen and (min-width: 767px) {
.mainNavigation {
max-width: 360px;
}

View File

@@ -13,6 +13,7 @@ export default function FooterSecondaryNav({
secondaryLinks,
appDownloads,
}: FooterSecondaryNavProps) {
console.log("secondaryLinks", secondaryLinks[0].links)
return (
<div className={styles.secondaryNavigation}>
<nav className={styles.secondaryNavigationGroup}>
@@ -25,9 +26,9 @@ export default function FooterSecondaryNav({
<a href={link.href} target="_blank" aria-label={link.title}>
<Image
src={
AppDownLoadLinks[link.id as keyof typeof AppDownLoadLinks]
AppDownLoadLinks[link.type as keyof typeof AppDownLoadLinks]
}
alt={link.title}
alt={link.href.title}
width={125}
height={40}
/>

View File

@@ -25,7 +25,7 @@
margin: 0;
}
@media screen and (min-width: 1367px) {
@media screen and (min-width: 767px) {
.secondaryNavigation {
margin-top: 0;
gap: 80px;

View File

@@ -1,12 +1,10 @@
import { footer } from "../mockedData"
import FooterMainNav from "./MainNav"
import FooterSecondaryNav from "./SecondaryNav"
import styles from "./navigation.module.css"
export default function FooterNavigation({ ...props }) {
const { mainLinks } = props
const { secondaryLinks, appDownloads } = footer
const { mainLinks, secondaryLinks, appDownloads } = props
return (
<section className={styles.section}>
<div className={styles.maxWidth}>

View File

@@ -11,7 +11,7 @@
max-width: var(--max-width-content);
}
@media screen and (min-width: 1367px) {
@media screen and (min-width: 767px) {
.section {
padding: var(--Spacing-x9) 0;
}