khabzox / ayoubsvt

Web Application for Education of Life and earth sciences (SVT), support students and teachers!🦠🔬
https://www.AyoubSVT.com
5 stars 0 forks source link

Cannot find module 'next-video' or its corresponding type declarations #4

Closed khabzox closed 6 months ago

khabzox commented 6 months ago

image

Show code:

click here

======================================================== `"use client"; import { motion } from "framer-motion"; import Image from "next/image"; import Video from 'next-video';

const About = () => {

return (

<>

  <section className="overflow-hidden pb-20 lg:pb-25 xl:pb-30" id="about">
    <div className="mx-auto max-w-c-1235 px-4 md:px-8 xl:px-0">
      <div class Name="flex items-center gap-8 lg:gap-32.5">
        <motion.div
              variants={{
                hidden: {
                  opacity: 0,
                  x: -20,
                },

            visible: {
              opacity: 1,
              x: 0,
            },
          }}
          initial="hidden"
          whileInView="visible"
          transition={{ duration: 0.5, delay: 0.1 }}
          viewport={{ once: true }}
          className="animate_left relative mx-auto hidden aspect-[588/526.5] md:block md:w-1/2 "
        >

      <Video 
          src="/videos/ayoubsvtAbout.mp4"
          accentColor="#9400ff"
          className="h-90 w-full mt-48 mb-32"/>

    </motion.div>
        <motion.div
          variants={{
            hidden: {
              opacity: 0,
              x: 20,
            },

            visible: {
              opacity: 1,
              x: 0,
            },

          }}
          initial="hidden"
          whileInView="visible"
          transition={{ duration: 0.5, delay: 0.1 }}
          viewport={{ once: true }}
          className="animate_right md:w-1/2"
        >
          <span className="font-medium uppercase text-black dark:text-white">
            <span className="mb-4 mr-4 inline-flex rounded-full bg-primaryy px-4.5 py-1 text-metatitle uppercase text-white ">
              New
            </span>{" "}
            AyoubSVT | SCIENCES DES SVT
          </span>
          <h2 className="relative mb-6 text-3xl font-bold text-black dark:text-white xl:text-hero">
           LES RESSOURCES 
            <span className="relative inline-block before:absolute before:bottom-2.5 before:left-0 before:-z-1 before:h-3 before:w-full before:bg-primaryho">
            ÉDUCATIVES
            </span>
          </h2>
          <p>
          Pour au site pédagogique, nous avons décidé de diviser le site en deux parties : la première est constituée de cours théoriques et la seconde est constituée de cours appliqués, qui sont :
          </p>

          <div className="mt-7.5 flex items-center gap-5">
            <div className="flex h-15 w-15 items-center justify-center rounded-[50%] border border-stroke dark:border-strokedark dark:bg-blacksection">
              <p className="text-metatitle2 font-semibold text-black dark:text-white">
                01
              </p>
            </div>
            <div className="w-3/4">
              <h3 className="mb-0.5 text-metatitle2 text-black dark:text-white">
                AyoubSVT | RESSOURCES ÉDUCATIVES
              </h3>
              <p>Comprend des cours Théoriques.</p>
            </div>
          </div>
          <div className="mt-7.5 flex items-center gap-5">
            <div className="flex h-15 w-15 items-center justify-center rounded-[50%] border border-stroke dark:border-strokedark dark:bg-blacksection">
              <p className="text-metatitle2 font-semibold text-black dark:text-white">
                02
              </p>
            </div>
            <div className="w-3/4">
              <h3 className="mb-0.5 text-metatitle2 text-black dark:text-white">
                 Virtule-ZX10 | Laboratoire virtuel
              </h3>
              <p>Comprend des leçons Pratiques.</p>
            </div>
          </div>
        </motion.div>
      </div>
    </div>
  </section>
  {/* <!-- ===== About End ===== --> */}

  {/* <!-- ===== About Two Start ===== --> */}
  <section>
    <div className="mx-auto max-w-c-1235 overflow-hidden px-4 md:px-8 2xl:px-0">
      <div className="flex items-center gap-8 lg:gap-32.5">
        <motion.div
          variants={{
            hidden: {
              opacity: 0,
              x: -20,
            },

            visible: {
              opacity: 1,
              x: 0,
            },
          }}
          initial="hidden"
          whileInView="visible"
          transition={{ duration: 1, delay: 0.1 }}
          viewport={{ once: true }}
          className="animate_left md:w-1/2"
        >
          <h4 className="font-medium uppercase text-black dark:text-white">
          <span className="font-medium uppercase text-black dark:text-white">
            <span className="mb-4 mr-4 inline-flex rounded-full bg-primaryy px-4.5 py-1 text-metatitel uppercase text-white ">
              New
            </span>{" "}
            Virtule-ZX10 | Laboratoire virtuel
          </span>
          </h4>
          <h2 className="relative mb-6 text-3xl font-bold text-black dark:text-white xl:text-hero">
            Laboratoire virtuel {"   "}
            <span className="relative inline-block before:absolute before:bottom-2.5 before:left-0 before:-z-1 before:h-3 before:w-full before:bg-primaryho dark:before:bg-titlebgdark">
             Virtule-ZX10 
            </span>
          </h2>
          <p>
          Étudier devient plus agréable avec nous grâce aux moyens nouveaux et innovants que nos outils offrent pour une meilleure éducation.
          </p>
          <div>
            <a
              href="/Virtule-ZX10 "
              className="group mt-7.5 inline-flex items-center gap-2.5 text-black hover:text-primaryy dark:text-white dark:hover:text-primary"
            >
              <span className="duration-300 group-hover:pr-2">
              Virtule-ZX10 
              </span>
              <svg
                width="14"
                height="14"
                viewBox="0 0 14 14"
                fill="currentColor"
              >
                <path d="M10.4767 6.16701L6.00668 1.69701L7.18501 0.518677L13.6667 7.00034L7.18501 13.482L6.00668 12.3037L10.4767 7.83368H0.333344V6.16701H10.4767Z" />
              </svg>
            </a>
          </div>
        </motion.div>
        <motion.div
          variants={{
            hidden: {
              opacity: 0,
              x: 20,
            },

            visible: {
              opacity: 1,
              x: 0,
            },
          }}
          initial="hidden"
          whileInView="visible"
          transition={{ duration: 1, delay: 0.1 }}
          viewport={{ once: true }}
          className="animate_right relative mx-auto hidden aspect-[588/526.5] md:block md:w-1/2"
        >
          <Image
            src="/images/about/showLaboF.png"
            alt="About"
            className="dark:hidden"
            fill
          />
          <Image
            src="/images/about/showLaboF.png"
            alt="About"
            className="hidden dark:block"
            fill
          />
        </motion.div>
      </div>
    </div>
  </section>
</>

); };

export default About; `

khabzox commented 6 months ago

I fixed

khabzox commented 6 months ago

run : npm install next-video npm audit fix --force