Merge pull request #130 from sarbikbetal/srbk/dev

[fix]: align social and skill icons to the left
This commit is contained in:
Rahul Jain
2020-09-25 17:29:33 +05:30
committed by GitHub
2 changed files with 27 additions and 3 deletions
+18 -2
View File
@@ -26,6 +26,18 @@ const Markdown = props => {
}
return ""
}
const SectionTitle = props => {
if (props.label) {
return (
<>
{`<h3 align="left">${props.label}</h3>`}
<br />
<br />
</>
)
}
return ""
}
const DisplayWork = props => {
if (props.prefix && props.project) {
if (props.link) {
@@ -61,7 +73,7 @@ const Markdown = props => {
if (props.username) {
return (
<>
{`<a href="${props.base}/${props.username}" target="blank"><img align="center" src="${props.icon}" alt="${props.username}" height="30" width="30" /></a>`}
{`<a href="${props.base}/${props.username}" target="blank"><img align="center" src="${props.icon}" alt="${props.username}" height="30" width="40" /></a>`}
<br />
</>
)
@@ -137,6 +149,7 @@ const Markdown = props => {
})
return listChosenSkills.length > 0 ? (
<>
<SectionTitle label="Languages and Tools:" />
{`<p align="left">${listChosenSkills.join(" ")}</p>`}
<br />
<br />
@@ -277,7 +290,10 @@ const Markdown = props => {
github={props.social.github}
/>
</>
{isSocial(props.social) ? `<p align="center">` : ""} <br />
{isSocial(props.social) ? `<p align="left">` : ""} <br />
<>
<SectionTitle label="Connect with me:" />
</>
<>
<DisplaySocial
base="https://codepen.io"