How do i modify the div in my swiperslide to use the cardcontiner with in the following…
- User
How do i modify the div in my swiperslide to use the cardcontiner with in the following example: "use client";
import Image from "next/image"; import React from "react"; import { CardBody, CardContainer, CardItem } from "../ui/3d-card";
export function ThreeDCardDemo() { return ( Make things float in air Hover over this card to unleash the power of CSS perspective Try now → Sign up ); } My actual code : import Image from "next/image"; import Link from "next/link"; import { BsArrowRight } from "react-icons/bs"; import { Pagination, Navigation } from "swiper"; import { Swiper, SwiperSlide } from "swiper/react";
import "swiper/css"; import "swiper/css/free-mode"; import "swiper/css/pagination"; import "swiper/css/navigation";
const workSlides = { slides: [ { images: [ { title: "Contact Website", path: "/contact.png", link: "https://contactvyc.netlify.app", }, { title: "SEO Website", path: "/seo.png", link: "https://seovyc.netlify.app", }, { title: "Porfolio Website", path: "/portfolio.png", link: "https://portfoliovyc.netlify.app", }, { title: "Podcast Website", path: "/pod.png", link: "https://podcastvyc.netlify.app", }, { title: "NFT Website", path: "/nft.png", link: "https://nftvyc.netlify.app", }, { title: "Gaming Website", path: "/gaming.png", link: "https://gamingvyc.netlify.app", }, ], }, { images: [ { title: "Personal Blog", path: "/brief.png", link: "https://biovyc.netlify.app", }, { title: "Dashboard Design", path: "/dashboard.png", link: "https://dashboardvyc.netlify.app", }, { title: "Cyrptocurrency Website", path: "/crypto.png", link: "https://crytpovyc.netlify.app", }, { title: "Ecommerce Website", path: "/ecommerce.png", link: "https://ecommercevyc.netlify.app", }, { title: "Ageny Website", path: "/agency.png", link: "https://agencyvyc.netlify.app", }, { title: "Blog Website", path: "/blogy.png", link: "", }, ], }, { images: [ { title: "3D Portfolio", path: "/3d-portfolio.png", link: "", }, { title: "3D Product", path: "/3d-product.png", link: "", }, { title: "Personal Blog", path: "/brief.png", link: "", }, ], }, ], };
- Assistant
- User
- Assistant
The CardContainer inside your SwiperSlide might not obey the grid layout for several reasons:
-
CSS Encapsulation / Specificity: If your styles for the
CardContainerand other components are encapsulated (for example, using CSS modules or styled-components), you might need to ensure their styles are being correctly applied within the context of the SwiperSlide.
-
Other models, same or similar prompt
Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.