{references.map((ref, i) => {
const imgSrc = ref.image
? (typeof ref.image === 'string' ? ref.image : ref.image.url)
@@ -128,51 +81,47 @@ export function ReferencesSlider(props: ReferencesSliderProps) {
return (
{
- if (dragDistanceRef.current > 5) {
- e.preventDefault();
- }
- }}
- data-testid="reference-tile"
- className="block relative select-none aspect-[16/10] bg-neutral-800 rounded-2xl overflow-hidden mb-5 border border-white/5 shadow-2xl cursor-pointer"
- >
-
-
-
-
-
-
-
- {ref.category}
-
-
{ref.title}
-
-
+ href={`/${locale}/referenzen#${ref.slug}`}
+ data-testid="reference-tile"
+ className="block relative h-[250px] md:h-[300px] w-full rounded-2xl overflow-hidden shadow-xl shadow-black/20"
+ >
+
+
+
+
+
+
+
+
+ {ref.category}
+
+
+ {ref.title}
+
+
+
);
})}
- {/* Right padding spacer so last card doesn't clip at viewport edge */}
-