@@ -50,13 +52,13 @@ const Contact = () => {
Get in Touch
Feel free to reach out for collaborations or just a friendly hello
- Location: City, Country
+ Location: {personalInfo.location}
- Email: your.email@example.com
+ Email: {personalInfo.email}
- Phone: +1 (123) 456-7890
+ Phone: {personalInfo.number}
diff --git a/src/components/footer/Footer.jsx b/src/components/footer/Footer.jsx
index 634ffd0..e4771de 100644
--- a/src/components/footer/Footer.jsx
+++ b/src/components/footer/Footer.jsx
@@ -2,7 +2,7 @@ import React, { useEffect, useRef, useState } from "react";
import styles from "./Footer.module.css";
import logo from "/assets/logos/logo.png";
-function Footer() {
+function Footer({data}) {
const [isVisible, setIsVisible] = useState(false);
const footerRef = useRef(null);
@@ -29,6 +29,8 @@ function Footer() {
};
}, []);
+ const personalInfo = data.length ? data[0] : {};
+
return (