Added images for cdn and edit Imagepreload
All checks were successful
Build frontend / build (push) Successful in 25s
All checks were successful
Build frontend / build (push) Successful in 25s
This commit is contained in:
@ -1,12 +1,17 @@
|
||||
import React, { useState, useEffect, useRef, useCallback } from "react";
|
||||
import { motion, AnimatePresence } from "framer-motion";
|
||||
import { useTranslation } from "react-i18next";
|
||||
import d19 from "../../../../src/assets/Images/d19.jpeg";
|
||||
import d27 from "../../../../src/assets/Images/d27.jpeg";
|
||||
import d28 from "../../../../src/assets/Images/d28.jpeg";
|
||||
import d29 from "../../../../src/assets/Images/d29.jpeg";
|
||||
import d30 from "../../../../src/assets/Images/d30.png";
|
||||
// import d19 from "../../../../src/assets/Images/d19.jpeg";
|
||||
// import d27 from "../../../../src/assets/Images/d27.jpeg";
|
||||
// import d28 from "../../../../src/assets/Images/d28.jpeg";
|
||||
// import d29 from "../../../../src/assets/Images/d29.jpeg";
|
||||
// import d30 from "../../../../src/assets/Images/d30.png";
|
||||
|
||||
const d19 ="https://i.imgur.com/BPHfMW8.jpeg";
|
||||
const d27="https://i.imgur.com/MvjtBCL.jpeg";
|
||||
const d28="https://i.imgur.com/ekFWpZ1.jpeg";
|
||||
const d29="https://i.imgur.com/doxdYIX.jpeg";
|
||||
const d30="https://i.imgur.com/xsT3ZV8.png";
|
||||
function ProjectsTimeline({
|
||||
projects,
|
||||
mainTitle = "المشاريع المنفذة",
|
||||
@ -387,13 +392,11 @@ export default function DepartmentDetail6() {
|
||||
return () => clearInterval(tInterval);
|
||||
}, []);
|
||||
|
||||
// buttons from translations (array)
|
||||
const buttons = [
|
||||
{ id: 1, title: t("departmentDetail6.buttons.1"), key: "expertise" },
|
||||
{ id: 3, title: t("departmentDetail6.buttons.3"), key: "works" },
|
||||
];
|
||||
|
||||
// card groups from translations
|
||||
const cardGroupsRaw = t("departmentDetail6.cardGroups", {
|
||||
returnObjects: true,
|
||||
});
|
||||
@ -432,7 +435,6 @@ export default function DepartmentDetail6() {
|
||||
setActive((prev) => (prev === key ? null : key));
|
||||
};
|
||||
|
||||
// translated text fragments
|
||||
const hero = t("departmentDetail6.hero", { returnObjects: true });
|
||||
const ui = t("departmentDetail6.ui", { returnObjects: true });
|
||||
const scroll = t("departmentDetail6.scroll", { returnObjects: true });
|
||||
|
||||
Reference in New Issue
Block a user