fix: add my pages nav sidebar for logged in users

This commit is contained in:
Christel Westerberg
2024-07-01 11:30:34 +02:00
parent 323df671d8
commit d206d576a7
13 changed files with 101 additions and 52 deletions

View File

@@ -17,7 +17,7 @@
.icon {
align-items: center;
display: flex;
gap: var(--Spacing-x1);
gap: var(--Spacing-x-half);
}
.myPage {

View File

@@ -26,15 +26,13 @@ export default function LoyaltyCard({
})}
>
{image ? (
<section>
<Image
src={image.url}
width={180}
height={160}
className={styles.image}
alt={image.meta.alt || image.title}
/>
</section>
<Image
src={image.url}
width={180}
height={160}
className={styles.image}
alt={image.meta.alt || image.title}
/>
) : null}
<Title as="h5" level="h3" textAlign="center">
{heading}
@@ -46,18 +44,21 @@ export default function LoyaltyCard({
) : null}
<div className={styles.buttonContainer}>
{link ? (
<span className={styles.linkWrapper}>
<ArrowRight color="burgundy" className={styles.icon} />
<Link
className={styles.link}
<Link
className={styles.link}
color="burgundy"
href={link.href}
target={link.openInNewTab ? "_blank" : undefined}
variant="myPage"
>
<ArrowRight
color="burgundy"
href={link.href}
target={link.openInNewTab ? "_blank" : undefined}
variant="myPage"
>
{link.title}
</Link>
</span>
className={styles.icon}
height="20"
width="20"
/>
{link.title}
</Link>
) : null}
</div>
</article>

View File

@@ -15,6 +15,7 @@
object-fit: contain;
height: 160px;
width: auto;
justify-self: center;
}
.white {
@@ -27,12 +28,6 @@
justify-content: center;
}
.linkWrapper {
display: flex;
align-items: baseline;
gap: var(--Spacing-x-half);
}
.link {
display: flex;
align-items: center;