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) => { } >
- {Object.keys(teamData).map((role) => { - if (role !== "member") { - return teamData[role].map((roleObject) => { - return ( -
-
- profile -
- - - -
-
-
- - - {roleObject.name} - - - {role.toUpperCase()} - -
-

{roleObject.description}

-
-
-
-
-
- ); - }); +
+
+ profile +
+ window.open("https://www.linkedin.com/in/kajol-kumari-73245b166/", "_blank")} + className={ + dark + ? `${style["card-footer"]} + fab fa-linkedin fa-2x in in-dark` + : `${style["card-footer"]} + fab fa-linkedin fa-2x in in-light` + } + > + window.open("https://x.com/_Kajol_singh_", "_blank")} + className={ + dark + ? `${style["card-footer"]} fab fa-twitter-square fa-twitter-square-dark fa-2x` + : `${style["card-footer"]} fab fa-twitter-square fa-twitter-square-light fa-2x` + } + > + window.open("https://github.com/Kajol-Kumari", "_blank")} + className={ + dark + ? `${style["card-footer"]} fab fa-github-square fa-github-square-dark fa-2x` + : `${style["card-footer"]} fab fa-github-square fa-github-square-light fa-2x` + } + > +
+
+
+ + + {"Kajol Kumari"} + + + {"founder".toUpperCase()} + +
+

{"I am a Software Developer who ❤ contributing to open source"}

+
+
+
+
+
{ } >
- { team.map((roleObject,index) => { - return ( -
{ + return ( +
+
+ profile +
+ + window.open(roleObject.linkedin_url, "_blank") + } + className={ + dark + ? `${style["card-footer"]} fab fa-linkedin fa-2x in in-dark` + : `${style["card-footer"]} fab fa-linkedin fa-2x in in-light` + } + > + + window.open(roleObject.twitter_url, "_blank") + } + className={ + dark + ? `${style["card-footer"]} fab fa-twitter-square fa-twitter-square-dark fa-2x` + : `${style["card-footer"]} fab fa-twitter-square fa-twitter-square-light fa-2x` + } + > + + window.open(roleObject.github_url, "_blank") + } + className={ + dark + ? `${style["card-footer"]} fab fa-github-square fa-github-square-dark fa-2x` + : `${style["card-footer"]} fab fa-github-square fa-github-square-light fa-2x` + } + > +
+
+
+ -
- profile -
- window.open(roleObject.linkedin_url,"_blank")} - className={ - dark - ? `${style["card-footer"]} fab fa-linkedin fa-2x in in-dark` - : `${style["card-footer"]} fab fa-linkedin fa-2x in in-light` - } - > - window.open(roleObject.twitter_url,"_blank")} - className={ - dark - ? `${style["card-footer"]} fab fa-twitter-square fa-twitter-square-dark fa-2x` - : `${style["card-footer"]} fab fa-twitter-square fa-twitter-square-light fa-2x` - } - > - window.open(roleObject.github_url,"_blank")} - className={ - dark - ? `${style["card-footer"]} fab fa-github-square fa-github-square-dark fa-2x` - : `${style["card-footer"]} fab fa-github-square fa-github-square-light fa-2x` - } - > -
+ + {roleObject?.full_name} + +
+

{roleObject?.description}

-
- - - {roleObject?.full_name} - -
-

{roleObject?.description}

-
-
- {roleObject?.teams?.map((badge) => { - return ( - - {badge} - - ); - })} -
-
-
+
+ {roleObject?.teams?.map((badge) => { + return ( + + {badge} + + ); + })}
-
- ); - })} +
+ +
+
+ ); + })}