fixing loading for keylovefaq component (#1692)
## Description <!-- Insert PR description--> ## Type of change <!--- Please check the type of change your PR introduces: ---> - [ ] 🌻 Feature - [x] 🐛 Bugfix - [ ] 🗺️ Documentation - [ ] 🤖 Test - [ ] 💻 CI/Deployment - [ ] 🐹 Trivial/Minor ## Issue(s) <!-- Can reference multiple issues. Use one of the following "magic words" - "closes, fixes" to auto-close the Github issue. --> * #<issue> ## Test Plan <!-- How will this be tested prior to merging.--> - [ ] 💪 Manual - [ ] ⚡ Unit test - [ ] 💚 E2E
This commit is contained in:
parent
4b927a74c7
commit
1e1cd6ebe5
@ -1,19 +1,24 @@
|
|||||||
import React, { useEffect } from "react";
|
import React, { useEffect, useRef } from "react";
|
||||||
import feather from "feather-icons";
|
|
||||||
import { WOW } from "wowjs";
|
|
||||||
import { jarallax } from "jarallax";
|
|
||||||
import { Icon } from "@iconify/react";
|
import { Icon } from "@iconify/react";
|
||||||
import "animate.css";
|
|
||||||
import "tw-elements";
|
|
||||||
|
|
||||||
export default function KeyLoveFAQ() {
|
export default function KeyLoveFAQ() {
|
||||||
|
const jarallaxRef = useRef(null);
|
||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
new WOW().init();
|
if (typeof window !== "undefined") {
|
||||||
feather.replace();
|
const WOW = require("wowjs");
|
||||||
jarallax(document.querySelectorAll(".jarallax"), {
|
const father = require("feather-icons");
|
||||||
speed: 0.2,
|
const jarallax = require("jarallax");
|
||||||
});
|
require("tw-elements");
|
||||||
});
|
|
||||||
|
new WOW.WOW({
|
||||||
|
live: false,
|
||||||
|
}).init();
|
||||||
|
father.replace();
|
||||||
|
jarallax.jarallax(jarallaxRef.current, {
|
||||||
|
speed: 0.2,
|
||||||
|
});
|
||||||
|
}
|
||||||
|
}, []);
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<section className="relative md:py-24 !tracking-wide py-16 overflow-hidden">
|
<section className="relative md:py-24 !tracking-wide py-16 overflow-hidden">
|
||||||
@ -448,6 +453,7 @@ export default function KeyLoveFAQ() {
|
|||||||
<div className="relative rounded-xl overflow-hidden shadow-md dark:shadow-gray-800">
|
<div className="relative rounded-xl overflow-hidden shadow-md dark:shadow-gray-800">
|
||||||
<div
|
<div
|
||||||
className="w-full jarallax py-72 bg-slate-400 custom-bg_ bg-no-repeat bg-top"
|
className="w-full jarallax py-72 bg-slate-400 custom-bg_ bg-no-repeat bg-top"
|
||||||
|
ref={jarallaxRef}
|
||||||
data-jarallax='{"speed": 0.1}'
|
data-jarallax='{"speed": 0.1}'
|
||||||
></div>
|
></div>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@ -5,8 +5,8 @@ import Hero from "./Hero";
|
|||||||
import Demo from "./Demo";
|
import Demo from "./Demo";
|
||||||
import FourthSection from "./FourthSection";
|
import FourthSection from "./FourthSection";
|
||||||
import Cookies from "./Cookies";
|
import Cookies from "./Cookies";
|
||||||
|
import KeyLoveFAQ from "./KeyLoveFAQ";
|
||||||
|
|
||||||
const KeyLoveFAQComp = loadable(() => import("./KeyLoveFAQ"));
|
|
||||||
const BackToTopComp = loadable(() => import("./BackToTop"));
|
const BackToTopComp = loadable(() => import("./BackToTop"));
|
||||||
|
|
||||||
export function MainComp() {
|
export function MainComp() {
|
||||||
@ -14,7 +14,7 @@ export function MainComp() {
|
|||||||
<>
|
<>
|
||||||
<Hero />
|
<Hero />
|
||||||
<Demo />
|
<Demo />
|
||||||
<KeyLoveFAQComp />
|
<KeyLoveFAQ />
|
||||||
<FourthSection />
|
<FourthSection />
|
||||||
<BackToTopComp />
|
<BackToTopComp />
|
||||||
<Cookies />
|
<Cookies />
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user