Skip to content

Commit

Permalink
feat(Header): add language switcher to mobile drawer
Browse files Browse the repository at this point in the history
  • Loading branch information
mathiazom committed Sep 27, 2024
1 parent 38112eb commit d247dcb
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
display: flex;
gap: 1rem;
list-style: none;
padding: 0;
}

.divider {
Expand Down
3 changes: 3 additions & 0 deletions src/components/navigation/header/Header.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,9 @@ export const Header = ({ data, assets }: IHeader) => {
>
{renderPageLinks(sidebarLinks, true, pathname)}
{renderPageCTAs(sidebarCtas, true)}
<div className={styles.mobileLanguageSwitcher}>
<LanguageSwitcher />
</div>
</div>
)}
</nav>
Expand Down
6 changes: 6 additions & 0 deletions src/components/navigation/header/header.module.css
Original file line number Diff line number Diff line change
Expand Up @@ -112,6 +112,12 @@
}
}

.mobileLanguageSwitcher {
@media (min-width: 1024px) {
display: none;
}
}

.mobileMenu {
flex: 1;

Expand Down

0 comments on commit d247dcb

Please sign in to comment.