diff --git a/src/components/addons.js b/src/components/addons.js index e065fae..4f6442c 100644 --- a/src/components/addons.js +++ b/src/components/addons.js @@ -190,6 +190,13 @@ const Addons = props => { > display top skills + props.handleCheckChange("twitterBadge")} + > + display twitter badge + { } return "" } + const TwitterBadge = props => { + let link = "https://img.shields.io/twitter/follow/" + props.twitter + "?logo=twitter&style=for-the-badge" + if (props.show) { + return ( + <> + {`

${props.twitter}

`} +
+
+ + ) + } + return "" + } const GithubProfileTrophy = props => { let link = "https://github-profile-trophy.vercel.app/?username=" + props.github @@ -239,6 +252,10 @@ const Markdown = props => { show={props.data.githubProfileTrophy} github={props.social.github} /> + <> { } return null } + const TwitterBadgePreview = props => { + let link = "https://img.shields.io/twitter/follow/" + props.twitter + "?logo=twitter&style=for-the-badge" + if (props.show) { + return ( +
+ {" "} + {props.twitter}{" "} +
+ ) + } + return null + } const GithubProfileTrophyPreview = props => { let link = "https://github-profile-trophy.vercel.app/?username=" + props.github @@ -322,6 +334,10 @@ const MarkdownPreview = props => { show={props.data.githubProfileTrophy} github={props.social.github} /> +