Match the basket's empty-state CTA styling to the orders page
Basket's "Browse the menu" button still had its original plain style (flat opacity hover, no arrow) from before that button was reworked on the orders page. Bring it in line: shadow, hover lift, and the shifting arrow. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01RvYdJ3os7tumimsLdLu2j9
This commit is contained in:
@@ -50,17 +50,37 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
.emptyCta {
|
.emptyCta {
|
||||||
|
display: inline-flex;
|
||||||
|
align-items: center;
|
||||||
|
gap: $space-1;
|
||||||
padding: $space-2 $space-4;
|
padding: $space-2 $space-4;
|
||||||
border-radius: $radius;
|
border-radius: $radius;
|
||||||
background: $color-primary;
|
background: $color-primary;
|
||||||
color: $color-primary-contrast;
|
color: $color-primary-contrast;
|
||||||
font-weight: 600;
|
font-weight: 600;
|
||||||
text-decoration: none;
|
text-decoration: none;
|
||||||
transition: opacity 0.15s ease;
|
box-shadow: 0 2px 8px color-mix(in srgb, $color-primary 35%, transparent);
|
||||||
|
transition:
|
||||||
|
transform 0.15s ease,
|
||||||
|
box-shadow 0.15s ease;
|
||||||
|
|
||||||
&:hover {
|
&:hover {
|
||||||
opacity: 0.9;
|
transform: translateY(-2px);
|
||||||
|
box-shadow: 0 6px 16px color-mix(in srgb, $color-primary 45%, transparent);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
&:active {
|
||||||
|
transform: translateY(0);
|
||||||
|
box-shadow: 0 2px 8px color-mix(in srgb, $color-primary 35%, transparent);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
.emptyCtaArrow {
|
||||||
|
transition: transform 0.15s ease;
|
||||||
|
}
|
||||||
|
|
||||||
|
.emptyCta:hover .emptyCtaArrow {
|
||||||
|
transform: translateX(3px);
|
||||||
}
|
}
|
||||||
|
|
||||||
.lines {
|
.lines {
|
||||||
|
|||||||
@@ -78,6 +78,9 @@ const BasketPage = () => {
|
|||||||
</p>
|
</p>
|
||||||
<Link to="/" className={styles.emptyCta}>
|
<Link to="/" className={styles.emptyCta}>
|
||||||
Browse the menu
|
Browse the menu
|
||||||
|
<span className={styles.emptyCtaArrow} aria-hidden="true">
|
||||||
|
→
|
||||||
|
</span>
|
||||||
</Link>
|
</Link>
|
||||||
</motion.div>
|
</motion.div>
|
||||||
) : (
|
) : (
|
||||||
|
|||||||
Reference in New Issue
Block a user