cart: enhance cart items styles
This commit is contained in:
@@ -7,6 +7,7 @@
|
|||||||
:root {
|
:root {
|
||||||
--background: #f7f7f7;
|
--background: #f7f7f7;
|
||||||
--foreground: #181818;
|
--foreground: #181818;
|
||||||
|
--border: #0505050f;
|
||||||
--secondary-background: #ffffff;
|
--secondary-background: #ffffff;
|
||||||
--secondary-foreground: #0a0a0a;
|
--secondary-foreground: #0a0a0a;
|
||||||
--primary-dark: #0a0a0a;
|
--primary-dark: #0a0a0a;
|
||||||
@@ -41,6 +42,7 @@
|
|||||||
--foreground: #f7f7f7;
|
--foreground: #f7f7f7;
|
||||||
--secondary-background: #0a0a0a;
|
--secondary-background: #0a0a0a;
|
||||||
--secondary-foreground: #ffffff;
|
--secondary-foreground: #ffffff;
|
||||||
|
--border: #363636;
|
||||||
}
|
}
|
||||||
|
|
||||||
html,
|
html,
|
||||||
|
|||||||
@@ -19,8 +19,6 @@
|
|||||||
justify-content: space-between;
|
justify-content: space-between;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
.cartContent {
|
.cartContent {
|
||||||
width: 100%;
|
width: 100%;
|
||||||
}
|
}
|
||||||
@@ -96,9 +94,7 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
.desktopSectionHeader {
|
.desktopSectionHeader {
|
||||||
margin-bottom: 32px;
|
border-bottom: 1px solid var(--border);
|
||||||
padding-bottom: 16px;
|
|
||||||
border-bottom: 1px solid rgba(0, 0, 0, 0.06);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.desktopEmptyCart {
|
.desktopEmptyCart {
|
||||||
@@ -130,7 +126,7 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
.desktopCartItem {
|
.desktopCartItem {
|
||||||
border: 1px solid rgba(0, 0, 0, 0.08);
|
border:none;
|
||||||
transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
|
transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
|
||||||
overflow: hidden;
|
overflow: hidden;
|
||||||
}
|
}
|
||||||
@@ -352,8 +348,6 @@
|
|||||||
color: rgba(255, 255, 255, 0.75) !important;
|
color: rgba(255, 255, 255, 0.75) !important;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
/* Keyframe animations */
|
/* Keyframe animations */
|
||||||
@keyframes fadeInUp {
|
@keyframes fadeInUp {
|
||||||
from {
|
from {
|
||||||
@@ -510,13 +504,8 @@
|
|||||||
.menuItemImage:focus {
|
.menuItemImage:focus {
|
||||||
outline-offset: 4px;
|
outline-offset: 4px;
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
/* Extra large desktop screens (min-width: 1440px) */
|
/* Extra large desktop screens (min-width: 1440px) */
|
||||||
@media (min-width: 1440px) {
|
@media (min-width: 1440px) {
|
||||||
.desktopCartContainer {
|
.desktopCartContainer {
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
import { Button, Card, Col, Row } from "antd";
|
import { Button, Card, Col, Divider, Row } from "antd";
|
||||||
import ArabicPrice from "components/ArabicPrice";
|
import ArabicPrice from "components/ArabicPrice";
|
||||||
import CartActionsButtons from "components/CartActionsButtons/CartActionsButtons.tsx";
|
import CartActionsButtons from "components/CartActionsButtons/CartActionsButtons.tsx";
|
||||||
import EmptyOrdersIcon from "components/Icons/EmptyOrdersIcon.tsx";
|
import EmptyOrdersIcon from "components/Icons/EmptyOrdersIcon.tsx";
|
||||||
@@ -88,21 +88,19 @@ export default function CartDesktopLayout() {
|
|||||||
{items.map((item, index) => (
|
{items.map((item, index) => (
|
||||||
<Card
|
<Card
|
||||||
key={item.id}
|
key={item.id}
|
||||||
hoverable
|
|
||||||
className={`${styles.desktopCartItem} desktop`}
|
className={`${styles.desktopCartItem} desktop`}
|
||||||
styles={{
|
styles={{
|
||||||
body: {
|
body: {
|
||||||
padding: "28px",
|
padding: 0,
|
||||||
borderRadius: 24,
|
borderRadius: 24,
|
||||||
},
|
},
|
||||||
}}
|
}}
|
||||||
style={
|
|
||||||
{
|
|
||||||
"--animation-order": index,
|
|
||||||
} as React.CSSProperties
|
|
||||||
}
|
|
||||||
>
|
>
|
||||||
<Row gutter={[28, 20]} align="middle">
|
<Row
|
||||||
|
gutter={[28, 20]}
|
||||||
|
align="middle"
|
||||||
|
style={{ marginTop: index === 0 ? 20 : 0 }}
|
||||||
|
>
|
||||||
<Col xs={24} sm={8} md={6}>
|
<Col xs={24} sm={8} md={6}>
|
||||||
<div className={styles.desktopImageContainer}>
|
<div className={styles.desktopImageContainer}>
|
||||||
<ImageWithFallback
|
<ImageWithFallback
|
||||||
@@ -110,12 +108,18 @@ export default function CartDesktopLayout() {
|
|||||||
alt={item.name}
|
alt={item.name}
|
||||||
className={styles.desktopMenuItemImage}
|
className={styles.desktopMenuItemImage}
|
||||||
style={{
|
style={{
|
||||||
width: 140,
|
width: 120,
|
||||||
height: 140,
|
height: 120,
|
||||||
|
borderRadius: 16,
|
||||||
}}
|
}}
|
||||||
fallbackSrc={
|
fallbackSrc={
|
||||||
"https://fascano-space.s3.me-central-1.amazonaws.com/uploads/restorants/685a8fc884a8c_large.jpg"
|
"https://fascano-space.s3.me-central-1.amazonaws.com/uploads/restorants/685a8fc884a8c_large.jpg"
|
||||||
}
|
}
|
||||||
|
loadingContainerStyle={{
|
||||||
|
width: 120,
|
||||||
|
height: 120,
|
||||||
|
borderRadius: 16,
|
||||||
|
}}
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
</Col>
|
</Col>
|
||||||
@@ -158,6 +162,9 @@ export default function CartDesktopLayout() {
|
|||||||
</div>
|
</div>
|
||||||
</Col>
|
</Col>
|
||||||
</Row>
|
</Row>
|
||||||
|
{index !== items.length - 1 && (
|
||||||
|
<Divider style={{ margin: "20px 0 0 0" }} />
|
||||||
|
)}
|
||||||
</Card>
|
</Card>
|
||||||
))}
|
))}
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
Reference in New Issue
Block a user