diff --git a/frontend/public/images/founder.jpeg b/frontend/public/images/founder.jpeg new file mode 100644 index 00000000..be952f8b Binary files /dev/null and b/frontend/public/images/founder.jpeg differ diff --git a/frontend/src/pages/About/About.jsx b/frontend/src/pages/About/About.jsx index f9d16f6e..3e5765d8 100644 --- a/frontend/src/pages/About/About.jsx +++ b/frontend/src/pages/About/About.jsx @@ -21,6 +21,7 @@ const useStyles = makeStyles(() => ({ export const About = (props) => { let dark = props.theme; const [team, setTeam] = useState([]); + const [image, setImage] = useState([]); useEffect(() => { getTeam(); }, []); @@ -35,7 +36,19 @@ export const About = (props) => { teams: item.teams[0].split(","), }; }); + let _image = []; + await _data?.map((item) => { + let formattedPath = item.image?.replace(/\\/g, "/"); + if (formattedPath?.startsWith("uploads/")) { + formattedPath = formattedPath.replace("uploads/", ""); + if (formattedPath) { + formattedPath = `${END_POINT}/${formattedPath}`; + } + } + _image.push({ image: formattedPath, id: item._id }); + }); setTeam(_data); + setImage(_image); } catch (error) { console.error(error); } @@ -118,80 +131,61 @@ export const About = (props) => { } >
{roleObject.description}
-{"I am a Software Developer who ❤ contributing to open source"}
+{roleObject?.description}
{roleObject?.description}
-