some updates

This commit is contained in:
parsa aghaei 2024-09-29 16:54:39 +03:30
parent b2186ed379
commit 6472b601d0
6 changed files with 3 additions and 5 deletions

Binary file not shown.

After

Width:  |  Height:  |  Size: 18 MiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 464 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 18 MiB

After

Width:  |  Height:  |  Size: 129 KiB

View File

@ -1,5 +1,4 @@
import React from "react";
import BurgerButton from "../burger-button/page";
import Image from "next/image";
export default function Footer() {

View File

@ -1,4 +1,3 @@
import Image from "next/image";
import React from "react";
import BurgerButton from "../burger-button/page";

View File

@ -1,5 +1,5 @@
"use client";
import React, { useEffect, useRef, useState, MouseEvent } from "react";
import React, { useEffect, useRef, useState } from "react";
interface Testimonial {
name: string;
@ -13,7 +13,7 @@ export default function Testimonials() {
const sliderRef = useRef<HTMLDivElement | null>(null);
const [isHovered, setIsHovered] = useState<boolean>(false);
const [bulletClicked, setBulletClicked] = useState<boolean>(false);
const [maxHeight, setMaxHeight] = useState<number>(0);
// const [maxHeight, setMaxHeight] = useState<number>(0);
const testimonials: Testimonial[] = [
{
name: "Sarah Johnson",
@ -65,7 +65,7 @@ export default function Testimonials() {
}
});
setMaxHeight(maxHeight + 20); // Set the maximum height
// setMaxHeight(maxHeight + 20); // Set the maximum height
}
if (!isHovered && !bulletClicked) {