updated
This commit is contained in:
parent
2038336ba3
commit
a583b8c5ad
|
@ -1,5 +1,5 @@
|
|||
"use client"
|
||||
import React, { useEffect, useState, lazy, Suspense } from 'react'
|
||||
import React, { useEffect, useState, Suspense } from 'react'
|
||||
import Banner from './Banner'
|
||||
import LongDesc from './LongDesc'
|
||||
import CourseImagesSilder from './CourseImagesSilder'
|
||||
|
@ -21,8 +21,6 @@ const Course = ({ course, settings }: { course: CoursesProps, settings: Settings
|
|||
}; loadCourses();
|
||||
}, []);
|
||||
|
||||
const startLoading = () => setLoading(true);
|
||||
const stopLoading = () => setLoading(false);
|
||||
|
||||
|
||||
return (
|
||||
|
|
|
@ -4,11 +4,11 @@ import "slick-carousel/slick/slick.css";
|
|||
import "slick-carousel/slick/slick-theme.css";
|
||||
import Slider from "react-slick";
|
||||
import './slick.css'
|
||||
import { CoursesProps, CoursesArrayProps } from "@/types";
|
||||
import { CoursesProps } from "@/types";
|
||||
import { IoIosArrowForward, IoIosArrowBack } from "react-icons/io";
|
||||
|
||||
const SamplePrevArrow = (props: any) => {
|
||||
const { className, style, onClick } = props;
|
||||
const { onClick } = props;
|
||||
return (
|
||||
<div
|
||||
id='prev'
|
||||
|
@ -23,7 +23,7 @@ const SamplePrevArrow = (props: any) => {
|
|||
|
||||
|
||||
function SampleNextArrow(props: any) {
|
||||
const { className, style, onClick } = props;
|
||||
const { onClick } = props;
|
||||
return (
|
||||
<div
|
||||
id='next'
|
||||
|
|
|
@ -1,14 +1,11 @@
|
|||
"use client";
|
||||
import CustomButton from "./CustomButton";
|
||||
import { useRef, useEffect, useState } from 'react';
|
||||
import Image from 'next/image';
|
||||
import { CoursesProps, CoursesArrayProps } from "@/types";
|
||||
import CustomButtom from "./CustomButton";
|
||||
|
||||
import { CoursesProps } from "@/types";
|
||||
import "slick-carousel/slick/slick.css";
|
||||
import "slick-carousel/slick/slick-theme.css";
|
||||
import Slider from "react-slick";
|
||||
import './slick.css'
|
||||
import { GoDot } from "react-icons/go";
|
||||
|
||||
//npm i --save-dev @types/react-slick
|
||||
|
||||
|
||||
|
|
|
@ -3,7 +3,7 @@ import Link from 'next/link'
|
|||
import { FaFacebookF, FaYoutube } from "react-icons/fa";
|
||||
import { RiInstagramFill } from "react-icons/ri";
|
||||
import { SettingsProps } from '@/types';
|
||||
import { IoMenu } from "react-icons/io5";
|
||||
|
||||
const Footer = ({ settings }: { settings: SettingsProps }) => {
|
||||
return (
|
||||
<footer className="rounded-lg py-8">
|
||||
|
|
|
@ -1,10 +1,7 @@
|
|||
"use client";
|
||||
|
||||
import "animate.css/animate.compat.css"
|
||||
import ScrollAnimation from 'react-animate-on-scroll';
|
||||
import { useRef, useEffect, useState } from 'react';
|
||||
import TextGradientScroll from './TextGradientScrollContext';
|
||||
import Image from 'next/image';
|
||||
import CustomButton from "./CustomButton";
|
||||
|
||||
const Hero1 = () => {
|
||||
|
|
|
@ -1,8 +1,5 @@
|
|||
"use client";
|
||||
import CustomButton from "./CustomButton";
|
||||
import { useRef, useEffect, useState } from 'react';
|
||||
import Image from 'next/image';
|
||||
import { CoursesProps, SettingsProps } from "@/types";
|
||||
import {SettingsProps } from "@/types";
|
||||
|
||||
|
||||
function convertToEmbedLink(watchLink: string): string {
|
||||
|
|
|
@ -1,15 +1,13 @@
|
|||
"use client";
|
||||
|
||||
import { useState, useEffect, lazy, Suspense } from "react";
|
||||
import { Audio } from "react-loader-spinner";
|
||||
const Hero1 = lazy(() => import('../Hero1'));
|
||||
import Hero2 from '../Hero2'
|
||||
import CoursesSilder from "../CoursesSilder";
|
||||
import ContactForm from '../ContactForm'
|
||||
import Loading from '../Loading'
|
||||
import Footer from '../Footer'
|
||||
import { fetchCourses } from '../../utils/index'
|
||||
import { CoursesArrayProps, CoursesProps, SettingsProps } from "@/types";
|
||||
import { CoursesProps, SettingsProps } from "@/types";
|
||||
import Whatsapp from "../Whatsapp";
|
||||
const Home = ({ courses, settings }: { courses: CoursesProps[], settings: SettingsProps }) => {
|
||||
const [loading, setLoading] = useState(true);
|
||||
|
|
|
@ -3,12 +3,10 @@ import React, { useState, useEffect } from 'react'
|
|||
import Image from 'next/image'
|
||||
import Link from 'next/link'
|
||||
import { FiChevronDown } from "react-icons/fi";
|
||||
import { HiBars3BottomRight } from 'react-icons/hi2'
|
||||
import { FaFacebookF, FaYoutube } from "react-icons/fa";
|
||||
import { RiInstagramFill } from "react-icons/ri";
|
||||
import { IoMenu, IoClose } from "react-icons/io5";
|
||||
import { CoursesProps, SettingsProps } from '@/types'
|
||||
import { colors } from '@/public/themes'
|
||||
//define props type
|
||||
type Props = {
|
||||
openNav: () => void
|
||||
|
|
|
@ -7,7 +7,6 @@ import { CoursesProps,SettingsProps } from '@/types'
|
|||
const ResponsiveNav = ({ courses, settings }: { courses: CoursesProps[], settings: SettingsProps }) => {
|
||||
const [showNav, setShowNav] = useState(false)
|
||||
const toggleNavHandler = () => setShowNav(!showNav)
|
||||
const showNavHandler = () => setShowNav(true)
|
||||
const closeNavHandler = () => setShowNav(false)
|
||||
|
||||
return (
|
||||
|
|
|
@ -1,8 +1,4 @@
|
|||
/** @type {import('next').NextConfig} */
|
||||
const nextConfig = {
|
||||
typescript: {
|
||||
ignoreBuildErrors: true,
|
||||
},
|
||||
}
|
||||
|
||||
module.exports = nextConfig
|
||||
const nextConfig = {};
|
||||
|
||||
export default nextConfig;
|
||||
|
|
Loading…
Reference in New Issue