Skip to content

Commit

Permalink
Add social links
Browse files Browse the repository at this point in the history
  • Loading branch information
SahooBishwajeet committed Apr 17, 2024
1 parent c231092 commit 8a07b7b
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 0 deletions.
3 changes: 3 additions & 0 deletions main.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,9 @@
"social": {
"linkedin": "bishwajeet-sahoo",
"github": "SahooBishwajeet",
"discord": "729644267856986114",
"instagram": "voidinlimbo",
"twitter": "2004SahooBishwa",
"email": "[email protected]"
},
"message": "Hello, Welcome To My Portfolio...",
Expand Down
27 changes: 27 additions & 0 deletions modules/commands/about.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,16 @@ const createAbout = (): string[] => {
const EMAIL = "Email";
const GITHUB = "Github";
const LINKEDIN = "Linkedin";
const TWITTER = "Twitter";
const INSTAGRAM = "Instagram";
const DISCORD = "Discord";

const email = `<i class='fa-solid fa-envelope'></i> ${EMAIL}`;
const github = `<i class='fa-brands fa-github'></i> ${GITHUB}`;
const linkedin = `<i class='fa-brands fa-linkedin'></i> ${LINKEDIN}`;
const twitter = `<i class='fa-brands fa-twitter'></i> ${TWITTER}`;
const instagram = `<i class='fa-brands fa-instagram'></i> ${INSTAGRAM}`;
const discord = `<i class='fa-brands fa-discord'></i> ${DISCORD}`;
let string = "";

about.push("<br>");
Expand Down Expand Up @@ -40,6 +46,27 @@ const createAbout = (): string[] => {
string += `<a target='_blank' href='https://www.linkedin.com/in/${main.social.linkedin}'>linkedin/${main.social.linkedin}</a>`;
about.push(string);

string = '';
string += SPACE.repeat(2);
string += twitter;
string += SPACE.repeat(17 - TWITTER.length);
string += `<a target='_blank' href='https://twitter.com/${main.social.twitter}'>twitter/${main.social.twitter}</a>`;
about.push(string);

string = '';
string += SPACE.repeat(2);
string += discord;
string += SPACE.repeat(17 - DISCORD.length);
string += `<a target='_blank' href='https://discordapp.com/channels/@me/${main.social.discord}'>discord/${main.social.github}</a>`;
about.push(string);

string = '';
string += SPACE.repeat(2);
string += instagram;
string += SPACE.repeat(17 - INSTAGRAM.length);
string += `<a target='_blank' href='https://www.instagram.com/${main.social.instagram}'>instagram/${main.social.instagram}</a>`;
about.push(string);

about.push("<br>");
return about
}
Expand Down

0 comments on commit 8a07b7b

Please sign in to comment.