From ee36b5c49ce13d64992f71d3f523caa97f3cfcf6 Mon Sep 17 00:00:00 2001 From: Ariful Alam Date: Sat, 19 Mar 2022 17:17:25 +0600 Subject: [PATCH] Update details section --- src/components/details/index.jsx | 265 ++++++++----------------------- 1 file changed, 68 insertions(+), 197 deletions(-) diff --git a/src/components/details/index.jsx b/src/components/details/index.jsx index efeffd7..d672cbd 100644 --- a/src/components/details/index.jsx +++ b/src/components/details/index.jsx @@ -19,9 +19,20 @@ const ListItem = ({ icon, title, value, link }) => { return (
{icon} -
{title}
-
- +
{title}:
+
@@ -109,202 +120,62 @@ const Details = ({ profile, loading }) => { link={`https://www.behance.net/${config.social.behance}`} /> )} + {typeof config.social.facebook !== 'undefined' && + config.social.facebook && ( + } + title="Facebook" + value={config.social.facebook} + link={`https://www.facebook.com/${config.social.facebook}`} + /> + )} + {typeof config.social.medium !== 'undefined' && + config.social.medium && ( + } + title="Medium" + value={config.social.medium} + link={`https://medium.com/@${config.social.medium}`} + /> + )} + {typeof config.social.devto !== 'undefined' && + config.social.devto && ( + } + title="Dev" + value={config.social.devto} + link={`https://dev.to/${config.social.devto}`} + /> + )} + {typeof config.social.website !== 'undefined' && + config.social.website && ( + } + title="Website" + value={config.social.website} + link={config.social.website} + /> + )} + {typeof config.social.phone !== 'undefined' && + config.social.phone && ( + } + title="Phone" + value={config.social.phone} + link={`tel:${config.social.phone}`} + /> + )} + {typeof config.social.email !== 'undefined' && + config.social.email && ( + } + title="Email" + value={config.social.email} + link={`mailto:${config.social.email}`} + /> + )}
)} - {/* */} - - {/*
-
- - - -
Based on
-
- London -
-
-
- -
Taylor Otwell
-
- Member -
-
-
- -
Adam Wathan
-
- Member -
-
-
- -
- Duke Street Studio Inc. -
-
- Team -
-
-
- -
Jeffrey Wey
-
- Member -
-
-
*/}
);