How do i have "--swiper-pagination-bottom": "50px", "--swiper-pagination-top": "auto",…
- User
How do i have "--swiper-pagination-bottom": "50px", "--swiper-pagination-top": "auto", for tailwinds breakpoint lg and below. And "--swiper-pagination-bottom": "0px", "--swiper-pagination-top": "auto", for breakpoint xl in the code: import { RxModulzLogo, RxBlendingMode, RxRocket, RxArrowTopRight, } from "react-icons/rx"; import { BsRobot } from "react-icons/bs"; import { SiVisualstudiocode } from "react-icons/si"; import { Pagination } from "swiper"; import { Swiper, SwiperSlide } from "swiper/react"; import { BackgroundBeams } from "./ui/backgroundbeams"; import Link from "next/link"; import { motion } from "framer-motion"; import { fadeIn } from "../variants";
import "swiper/css"; import "swiper/css/free-mode"; import "swiper/css/pagination";
const serviceData = [ { Icon: BsRobot, title: "AI Training", description: "Unleash the power of AI with this new cutting-edge service. Harness the potential of Large Language Models(LLMs) trained on your business data, automating tasks and enhancing the functionality of your website or enterprise. You can both automate physical business operations as well as online business operations using AI. Transform your business landscape, unearth deep insights, and achieve unprecedented efficiency. Let's collaborate to create a custom AI solution that will revolutionize your business.", }, { Icon: SiVisualstudiocode, title: "Development", description: "Unleash the power of robust and dynamic modern web solutions. As a passionate web developer, I thrive on bug-solving, turning complex issues into seamless user experiences. Together, we can turn your idea into a fully operational online business. With a focus on efficiency, scalability, and security, every challenge is a new opportunity for innovation. Let us collaborate to create digital solutions that are not just functional, but also engaging and user-friendly. Let's build a website that truly reflects your brand and captivates your audience.", }, { Icon: RxRocket, title: "SEO", description: "Unlock the power of online visibility with the organic SEO service that propels your website to the top of search results, driving traffic and reduce your customer acquisition cost. With the right SEO solution you can enhance discoverability and fuel organic growth. Beyond being just being found, your business becomes memorable while also reducing marketing costs and significantly boost your online market share. Let's collaborate to create a custom SEO strategy that will elevate your brand to new heights.", }, { Icon: RxModulzLogo, title: "Branding", description: "Branding is the core essence of a business's identity, more than just a logo—it's an authentic, unique story that genuinely resonates with the target audience. This dedicated service is tailored to crafting a compelling brand narrative, designed to distinguish a business amidst the highly competitive global market. It's about creating a robust, significant presence that not only drives growth but also leaves a profound, lasting impact. Embark on the journey towards a powerful, world-class brand that captivates, endures, and thrives.", }, { Icon: RxBlendingMode, title: "Design", description: "Having been involved with numerous projects catering to a broad and diverse customer base, understand that design is pivotal for fostering inclusivity and broad appeal. Design encapsulates frontend UI/UX development, where each minutiae is crafted with precision and care. The belief is that designs should be visually appealing and provide an intuitive, seamless user experience. Together we can transform your brand concepts into a distinctive digital reality, crafting a unique online presence that represents your brand essence.", }, ];
- Assistant
- User
- Assistant
To set the
hexPolygonResolutionto 2 on mobile and 3 on desktop, you can utilize a similar approach to the dimensions use case by creating a state for thehexPolygonResolutionand updating it based on window size. Here's how you can do it: - User
is this correct: useEffect(() => { // Function to update the dimensions state based on the window size const handleResize = () => { if (window.matchMedia("(min-width: 1200px)").matches) { // If the screen width is larger than or equal to ‘lg’ breakpoint, set to desktop size setDimensions({ width: 1000, height: 1000 }); setHexPolygonResolution(isDesktop ? 3 : 2); } else if (window.matchMedia("(min-width: 960px)").matches) { // If the screen width is larger than or equal to ‘lg’ breakpoint, set to desktop size setDimensions({ width: 800, height: 800 }); setHexPolygonResolution(isDesktop ? 3 : 2); } else if (window.matchMedia("(min-width: 768px)").matches) { // If the screen width is larger than or equal to ‘lg’ breakpoint, set to desktop size setDimensions({ width: 700, height: 700 }); } else if (window.matchMedia("(min-width: 425px)").matches) { // If the screen width is larger than or equal to ‘lg’ breakpoint, set to desktop size setDimensions({ width: 400, height: 400 }); } else if (window.matchMedia("(min-width: 375px)").matches) { // If the screen width is larger than or equal to ‘lg’ breakpoint, set to desktop size setDimensions({ width: 350, height: 350 }); } else { // If smaller, set to mobile size setDimensions({ width: 320, height: 320 }); } };
- Assistant
No, the
handleResizefunction is not correct as written. Specifically, thesetHexPolygonResolution(isDesktop ? 3 : 2);statements are problematic because the variable is not defined within the context of the function. - User
- Assistant
To add a normal sans-serif font-family to your entire web page, you can set the
font-familyproperty in the universal selector*within your CSS. Here's how you would do that:* { margin: 0; padding: 0; box-sizing: border-box; overflow: hidden; cursor: url(https://ani.cursors-4u.net/cursors/cur-13/cur1159.ani), url(https://ani.cursors-4u.net/cursors/cur-13/cur1159.png), auto !important; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif; } /* ... rest of your CSS ... */The
font-familyline I have added includes a stack of several commonly used and widely supported sans-serif typefaces, starting with system-specific fonts for Apple devices and Windows (-apple-system, BlinkMacSystemFont, "Segoe UI"), followed by popular cross-platform fonts (Roboto, Oxygen, Ubuntu, Cantarell), as well asOpen SansandHelvetica Neue. The fall-back font at the end is the genericsans-serif, which tells the browser to use the default sans-serif font installed on the user's system. - User
- Assistant
- User
after running the build command i got the output below but when i add the dist folder and reference the index.html as an a tag in my react application but it produces a blank white page with a 404 not found error on the js in the html yet the css is loaded and both are in the same folder and using the correct file names: npm run build
hoobank@0.0.0 build vite build
vite v3.2.8 building for production... transforming (69) src\assets\linkedin.svgBrowserslist: caniuse-lite is outdated. Please run: npx update-browserslist-db@latest Why you should do it regularly: https://github.com/browserslist/update-db#readme ✓ 74 modules transformed. dist/assets/airbnb.ac0ba47e.png 7.09 KiB dist/assets/binance.ef218256.png 4.27 KiB dist/assets/coinbase.fd06c89f.png 6.02 KiB dist/assets/dropbox.fb49a0e9.png 5.97 KiB dist/assets/logo.efc6c435.svg 6.26 KiB dist/assets/quotes.a87d5e6d.svg 0.67 KiB dist/assets/Send.454b3199.svg 0.73 KiB dist/assets/card.af071def.png 483.04 KiB dist/assets/Shield.6d9e87e5.svg 1.06 KiB dist/assets/Star.b8bf87ea.svg 1.16 KiB dist/assets/menu.e0613cf3.svg 1.06 KiB dist/assets/close.945782e8.svg 1.31 KiB dist/assets/google.3035153f.svg 15.96 KiB dist/assets/apple.994d47a8.svg 15.29 KiB dist/assets/bill.fd47dad8.png 651.91 KiB dist/assets/Discount.61d9dc08.svg 2.49 KiB dist/assets/arrow-up.012ff21b.svg 0.77 KiB dist/assets/facebook.b1172216.svg 0.51 KiB dist/assets/instagram.a54e883a.svg 2.74 KiB dist/assets/robot.352cd501.png 1064.94 KiB dist/assets/linkedin.3be30c66.svg 0.89 KiB dist/assets/twitter.8f349e28.svg 1.06 KiB dist/assets/people02.ee8ce82b.png 12.92 KiB dist/assets/people01.a772086b.png 18.07 KiB dist/assets/people03.d9f4f98a.png 9.66 KiB dist/index.html 0.49 KiB dist/assets/index.e5a774fa.css 13.06 KiB / gzip: 3.67 KiB dist/assets/index.576128b4.js 155.21 KiB / gzip: 49.62 KiB
- Assistant
- User
npm install npm ERR! code ERESOLVE npm ERR! ERESOLVE unable to resolve dependency tree npm ERR! npm ERR! While resolving: jamstack-ecommerce@0.1.0 npm ERR! Found: react@17.0.1 npm ERR! node_modules/react npm ERR! react@"17.0.1" from the root project npm ERR! npm ERR! Could not resolve dependency: npm ERR! peer react@"^16.8.0" from @stripe/react-stripe-js@1.1.2 npm ERR! node_modules/@stripe/react-stripe-js npm ERR! @stripe/react-stripe-js@"^1.1.2" from the root project npm ERR! npm ERR! Fix the upstream dependency conflict, or retry npm ERR! this command with --force or --legacy-peer-deps npm ERR! to accept an incorrect (and potentially broken) dependency resolution. npm ERR! npm ERR! npm ERR! For a full report see: npm ERR! C:\Users\VICE\AppData\Local\npm-cache_logs\2024-03-04T20_41_25_168Z-eresolve-report.txt
- Assistant
You're seeing this error because there's a dependency conflict in your npm packages. The
@stripe/react-stripe-jspackage specifies that it requires a peer dependency of React version^16.8.0, while your project is using React version17.0.1.Starting from npm v7, peer dependencies are installed automatically and the package manager will enforce and check if the versions of your installed packages meet the specified peer dependency requirements.