{cols === 'infinite' ? (
- <>
- {Array.from(Array(3).keys()).map((index) => (
-
- {cards.map((card) => (
- // eslint-disable-next-line @typescript-eslint/ban-ts-comment
- // @ts-ignore
-
- ))}
-
- ))}
- >
+ Array.from({ length: 3 }, (_, index) => (
+
+ {cards.map((card) => (
+ // eslint-disable-next-line @typescript-eslint/ban-ts-comment
+ // @ts-ignore
+
+ ))}
+
+ ))
) : (
{cards.map((card) => (
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
// @ts-ignore
diff --git a/package-lock.json b/package-lock.json
index 77cd9dd36..22a9d4706 100644
--- a/package-lock.json
+++ b/package-lock.json
@@ -18,6 +18,7 @@
"class-variance-authority": "^0.7.0",
"closest-match": "^1.3.3",
"clsx": "^2.0.0",
+ "cva": "npm:class-variance-authority@^0.7.0",
"leaflet": "^1.9.4",
"next": "13.4.19",
"next-image-export-optimizer": "^1.8.5",
@@ -17969,6 +17970,18 @@
"resolved": "https://registry.npmjs.org/csstype/-/csstype-3.1.2.tgz",
"integrity": "sha512-I7K1Uu0MBPzaFKg4nI5Q7Vs2t+3gWWW648spaF+Rg7pI9ds18Ugn+lvg4SHczUdKlHI5LWBXyqfS8+DufyBsgQ=="
},
+ "node_modules/cva": {
+ "name": "class-variance-authority",
+ "version": "0.7.0",
+ "resolved": "https://registry.npmjs.org/class-variance-authority/-/class-variance-authority-0.7.0.tgz",
+ "integrity": "sha512-jFI8IQw4hczaL4ALINxqLEXQbWcNjoSkloa4IaufXCJr6QawJyw7tuRysRsrE8w2p/4gGaxKIt/hX3qz/IbD1A==",
+ "dependencies": {
+ "clsx": "2.0.0"
+ },
+ "funding": {
+ "url": "https://joebell.co.uk"
+ }
+ },
"node_modules/damerau-levenshtein": {
"version": "1.0.8",
"resolved": "https://registry.npmjs.org/damerau-levenshtein/-/damerau-levenshtein-1.0.8.tgz",
diff --git a/package.json b/package.json
index 78edbcb48..403e30635 100644
--- a/package.json
+++ b/package.json
@@ -30,6 +30,7 @@
"class-variance-authority": "^0.7.0",
"closest-match": "^1.3.3",
"clsx": "^2.0.0",
+ "cva": "npm:class-variance-authority@^0.7.0",
"leaflet": "^1.9.4",
"next": "13.4.19",
"next-image-export-optimizer": "^1.8.5",
diff --git a/tailwind.config.js b/tailwind.config.js
index 2b0c0ed6c..699a75ce4 100644
--- a/tailwind.config.js
+++ b/tailwind.config.js
@@ -12,9 +12,14 @@ module.exports = {
'0%': { transform: 'translateX(0)' },
'100%': { transform: 'translateX(-100%)' },
},
+ slideRtl: {
+ '0%': { transform: 'translateX(0)' },
+ '100%': { transform: 'translateX(100%)' },
+ },
},
animation: {
- slide: '20s slide infinite linear',
+ slide: '50s slide infinite linear',
+ slideRtl: '50s slideRtl infinite linear',
},
},
},