diff --git a/components/cart/CartEmpty/index.tsx b/components/cart/CartEmpty/index.tsx
new file mode 100644
index 000000000..dd5e7e971
--- /dev/null
+++ b/components/cart/CartEmpty/index.tsx
@@ -0,0 +1,23 @@
+import { Bag } from '@components/icons'
+import { Button } from '@components/ui'
+
+const CartEmpty: React.FC = () => {
+ return (
+
My Cart
- {isError &&
Failed to load
}
- {isLoading &&
Loading...
}
- {isEmpty ? (
-
-
-
-
-
- Your cart is empty
-
-
- Biscuit oat cake wafer icing ice cream tiramisu pudding cupcake.
-
-
-
+ {true ? (
+
+ ) : isError ? (
+
Failed to load
+ ) : isEmpty ? (
+
) : (
@@ -72,7 +63,10 @@ export default function Cart() {
{[1, 2, 3, 4, 5, 6].map((x) => (
-
+
))}
diff --git a/tailwind.config.js b/tailwind.config.js
index fcadb5892..f41011b49 100644
--- a/tailwind.config.js
+++ b/tailwind.config.js
@@ -49,6 +49,20 @@ module.exports = {
magical:
'rgba(0, 0, 0, 0.02) 0px 30px 30px, rgba(0, 0, 0, 0.03) 0px 0px 8px, rgba(0, 0, 0, 0.05) 0px 1px 0px',
},
+ animation: {
+ 'cart-pulse': 'pulse 1.5s cubic-bezier(0.4, 0, 0.6, 1) infinite',
+ },
+
+ keyframes: {
+ 'cart-pulse': {
+ '0%, 100%': {
+ opacity: 0.2,
+ },
+ '50%': {
+ opacity: 1,
+ },
+ },
+ },
},
},
plugins: [require('@tailwindcss/ui')],