diff --git a/src/components/markdownPreview.js b/src/components/markdownPreview.js
index df18eae..b94f2c3 100644
--- a/src/components/markdownPreview.js
+++ b/src/components/markdownPreview.js
@@ -5,55 +5,35 @@ import {
topLanguagesLinkGenerator,
} from "../utils/link-generators"
-const MarkdownPreview = props => {
- const TitlePreview = props => {
- if (props.prefix && props.title) {
- return (
-
- {props.prefix + " " + props.title}
-
- )
- }
- return null
+export const TitlePreview = props => {
+ if (props.prefix && props.title) {
+ return (
+
+ {props.prefix + " " + props.title}
+
+ )
}
- const SubTitlePreview = props => {
- if (props.subtitle) {
- return {props.subtitle}
- }
- return null
+ return null
+}
+
+export const SubTitlePreview = props => {
+ if (props.subtitle) {
+ return {props.subtitle}
}
- const SectionTitle = props => {
- if (!props.visible) return null
- else if (props.label) {
- return {props.label}
- }
- return null
+ return null
+}
+
+export const SectionTitle = props => {
+ if (!props.visible) return null
+ else if (props.label) {
+ return {props.label}
}
- const DisplayWork = props => {
- if (props.prefix && props.project) {
- if (props.link) {
- return (
-
- )
- } else {
- return (
-
- {props.prefix + " "}
- {props.project}
-
- )
- }
- }
- if (props.prefix && props.link) {
+ return null
+}
+
+export const DisplayWork = props => {
+ if (props.prefix && props.project) {
+ if (props.link) {
return (
{props.prefix + " "}
@@ -62,281 +42,314 @@ const MarkdownPreview = props => {
className="no-underline text-blue-700"
target="blank"
>
- {props.link}
+ {props.project}
)
- }
- return null
- }
- const WorkPreview = props => {
- const prefix = props.work.prefix
- const data = props.work.data
- const link = props.work.link
- return (
- <>
-
-
-
-
-
-
-
-
-
-
- >
- )
- }
- const DisplaySocial = props => {
- if (props.username) {
+ } else {
return (
+
+ {props.prefix + " "}
+ {props.project}
+
+ )
+ }
+ }
+ if (props.prefix && props.link) {
+ return (
+
+ )
+ }
+ return null
+}
+
+export const WorkPreview = props => {
+ const prefix = props.work.prefix
+ const data = props.work.data
+ const link = props.work.link
+ return (
+ <>
+
+
+
+
+
+
+
+
+
+
+ >
+ )
+}
+
+export const DisplaySocial = props => {
+ if (props.username) {
+ return (
+
+
+
+ )
+ }
+ return null
+}
+
+export const SocialPreview = props => {
+ let viewSocial = false
+ Object.keys(props.social).forEach(key => {
+ if (props.social[key] && key != "github") viewSocial = true
+ })
+ return (
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ )
+}
+
+export const VisitorsBadgePreview = props => {
+ let link =
+ "https://komarev.com/ghpvc/?username=" +
+ props.github +
+ `&label=${props.badgeOptions.badgeLabel}` +
+ `&color=${props.badgeOptions.badgeColor}` +
+ `&style=${props.badgeOptions.badgeStyle}`
+ if (props.show) {
+ return (
+
+ {" "}
+

{" "}
+
+ )
+ }
+ return null
+}
+
+export const TwitterBadgePreview = props => {
+ let link =
+ "https://img.shields.io/twitter/follow/" +
+ props.twitter +
+ "?logo=twitter&style=for-the-badge"
+ if (props.show) {
+ return (
+
+ {" "}
+
+
+ {" "}
+
+ )
+ }
+ return null
+}
+
+export const GithubProfileTrophyPreview = props => {
+ let link =
+ "https://github-profile-trophy.vercel.app/?username=" + props.github
+ if (props.show) {
+ return (
+
+ {" "}
+
+
+ {" "}
+
+ )
+ }
+ return null
+}
+
+export const GitHubStatsPreview = ({ github, options, show }) => {
+ if (show) {
+ return (
+
+

+
+ )
+ }
+ return null
+}
+
+export const TopLanguagesPreview = ({ github, options, show }) => {
+ if (show) {
+ return (
+
+

+
+ )
+ }
+ return
+}
+
+export const SkillsPreview = props => {
+ var listSkills = []
+ skills.forEach(skill => {
+ if (props.skills[skill]) {
+ listSkills.push(
+
+
)
}
- return null
- }
- const SocialPreview = props => {
- let viewSocial = false
- Object.keys(props.social).forEach(key => {
- if (props.social[key] && key != "github") viewSocial = true
- })
- return (
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- )
- }
- const VisitorsBadgePreview = props => {
- let link =
- "https://komarev.com/ghpvc/?username=" +
- props.github +
- `&label=${props.badgeOptions.badgeLabel}` +
- `&color=${props.badgeOptions.badgeColor}` +
- `&style=${props.badgeOptions.badgeStyle}`
- if (props.show) {
- return (
-
- {" "}
-

{" "}
-
- )
- }
- 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 (
-
- {" "}
-
-
- {" "}
-
- )
- }
- return null
- }
- const GithubProfileTrophyPreview = props => {
- let link =
- "https://github-profile-trophy.vercel.app/?username=" + props.github
- if (props.show) {
- return (
-
- {" "}
-
-
- {" "}
-
- )
- }
- return null
- }
-
- const GitHubStatsPreview = ({ github, options, show }) => {
- if (show) {
- return (
-
-

-
- )
- }
- return null
- }
- const TopLanguagesPreview = ({ github, options, show }) => {
- if (show) {
- return (
-
-

-
- )
- }
- return
- }
- const SkillsPreview = props => {
- var listSkills = []
- skills.forEach(skill => {
- if (props.skills[skill]) {
- listSkills.push(
-
-
-
- )
- }
- })
- return listSkills.length > 0 ? (
-
-
- {listSkills}
-
- ) : (
+ })
+ return listSkills.length > 0 ? (
+
+
+ {listSkills}
+
+ ) : (
""
)
- }
+}
+
+const MarkdownPreview = props => {
+
return (