feat: Add my pages linkk to desktop main menu and hide on mobile

This commit is contained in:
Chuma McPhoy
2024-06-19 10:37:00 +02:00
committed by Michael Zetterberg
parent 665d757102
commit d5c9a934f8
2 changed files with 12 additions and 3 deletions

View File

@@ -147,9 +147,11 @@ export function MainMenu({
) : null} ) : null}
</ul> </ul>
<div className={styles.buttonContainer}> <div className={styles.buttonContainer}>
<Link className={styles.link} href={myPages[lang]}> <div className={styles.myPagesDesktopLink}>
{intl.formatMessage({ id: "My pages" })} <Link className={styles.link} href={myPages[lang]}>
</Link> {intl.formatMessage({ id: "My pages" })}
</Link>
</div>
<BookingButton href={bookingHref} /> <BookingButton href={bookingHref} />
{myPagesMobileDropdown && user ? ( {myPagesMobileDropdown && user ? (
<div <div

View File

@@ -235,6 +235,10 @@
gap: var(--Spacing-x3); gap: var(--Spacing-x3);
} }
.myPagesDesktopLink {
display: none;
}
@media (min-width: 1367px) { @media (min-width: 1367px) {
.navBar { .navBar {
grid-template-columns: 140px auto 1fr; grid-template-columns: 140px auto 1fr;
@@ -336,4 +340,7 @@
.avatarButton { .avatarButton {
display: none; display: none;
} }
.myPagesDesktopLink {
display: block;
}
} }