hi-harshit
Version:
If you are having a bad day, remember no one cares
165 lines (157 loc) • 10.3 kB
JavaScript
// Function to log your details in the terminal
function logDetails() {
const message =
"Harshit Raizada: Dev by day, MMA fighter by night. Balance is key";
const portfolioLink = "https://harshitraizadadev.vercel.app";
const githubLink = "https://github.com/dankgarlic1";
const linkedinLink = "https://www.linkedin.com/in/harshit-raizada-32b909231";
const upworkLink = "https://bit.ly/harshitraizada_upwork-profile";
// Tech stack details with colors
const techStack = [
{ name: "JavaScript", color: "\x1b[38;5;226m" },
{ name: "TypeScript", color: "\x1b[38;5;32m" },
{ name: "SQL", color: "\x1b[38;5;75m" },
{ name: `React.js${" |"}`, color: "\x1b[38;5;51m" },
{ name: "Next.js", color: "\x1b[38;5;33m" },
{ name: "Tailwind CSS", color: "\x1b[38;5;117m" },
{ name: "MUI", color: "\x1b[38;5;194m" },
{ name: `Node.js${" |"}`, color: "\x1b[38;5;57m" },
{ name: "Kinde Auth", color: "\x1b[38;5;87m" },
{ name: "Clerk Auth", color: "\x1b[38;5;214m" },
{ name: "Drizzle", color: "\x1b[38;5;25m" },
{ name: `Prisma${" |"}`, color: "\x1b[38;5;5m" },
{ name: "Hono", color: "\x1b[38;5;88m" },
{ name: "Docker", color: "\x1b[38;5;24m" },
{ name: "AWS", color: "\x1b[38;5;208m" },
{ name: `CloudFl${" |"}`, color: "\x1b[38;5;214m" },
{ name: "turborepo", color: "\x1b[38;5;41m" },
{ name: "MySQL", color: "\x1b[38;5;12m" },
{ name: "PostgreSQL", color: "\x1b[38;5;33m" },
{ name: `MongoDB${" |"}`, color: "\x1b[38;5;28m" },
];
// Create a box for the tech stack directly as a string
const techStackBox = `
\x1b[38;5;51m+-------------------------------------------------------------------------------+
| \x1b[38;5;105m My Tech Stack \x1b[38;5;51m |
+-------------------------------------------------------------------------------+
| ${techStack[0].color}${techStack[0].name.padEnd(20)} ${
techStack[1].color
}${techStack[1].name.padEnd(20)} ${
techStack[2].color
}${techStack[2].name.padEnd(20)} ${
techStack[3].color
}${techStack[3].name.padEnd(
20
)} \x1b[38;5;51m
| ${techStack[4].color}${techStack[4].name.padEnd(20)} ${
techStack[5].color
}${techStack[5].name.padEnd(20)} ${
techStack[6].color
}${techStack[6].name.padEnd(20)} ${
techStack[7].color
}${techStack[7].name.padEnd(20)} \x1b[38;5;51m
| ${techStack[8].color}${techStack[8].name.padEnd(20)} ${
techStack[9].color
}${techStack[9].name.padEnd(20)} ${
techStack[10].color
}${techStack[10].name.padEnd(20)} ${
techStack[11].color
}${techStack[11].name.padEnd(20)} \x1b[38;5;51m
| ${techStack[12].color}${techStack[12].name.padEnd(20)} ${
techStack[13].color
}${techStack[13].name.padEnd(20)} ${
techStack[14].color
}${techStack[14].name.padEnd(20)} ${
techStack[15].color
}${techStack[15].name.padEnd(20)} \x1b[38;5;51m
| ${techStack[16].color}${techStack[16].name.padEnd(20)} ${
techStack[17].color
}${techStack[17].name.padEnd(20)} ${
techStack[18].color
}${techStack[18].name.padEnd(20)} ${
techStack[19].color
}${techStack[19].name.padEnd(20)} \x1b[38;5;51m
+-------------------------------------------------------------------------------+\x1b[0m`;
// Create a colorful box using ANSI escape codes
const colorfulBox = `\x1b[38;5;51m+---------------------------------------------------------------------+
\x1b[38;5;51m| \x1b[38;5;105m${message.padEnd(65)}\x1b[38;5;51m |
+-------------------------------------------------------------------+
| \x1b[38;5;93mPortfolio:\x1b[0m \x1b[38;5;39m${portfolioLink.padEnd(
54
)}\x1b[38;5;51m |
| \x1b[38;5;93mGitHub:\x1b[0m \x1b[38;5;39m${githubLink.padEnd(
54
)}\x1b[38;5;51m |
| \x1b[38;5;93mLinkedIn:\x1b[0m \x1b[38;5;39m${linkedinLink.padEnd(
54
)}\x1b[38;5;51m |
| \x1b[38;5;93mUpwork:\x1b[0m \x1b[38;5;39m${upworkLink.padEnd(
54
)}\x1b[38;5;51m |
+-------------------------------------------------------------------+\x1b[0m`;
// Log the colorful box in the terminal
console.log(colorfulBox);
console.log(techStackBox);
}
// Call the function to log your details
logDetails();
const figure1 = `\x1b[35m
█████░ ▒██
█████ ░░▒░ ████
█▒▒█ ░░ ░ ▒███▓ ▓█▓
█▓ ▓█ ▒ ░░ ▓█░ ▒██
██▓ █ ██░ ▓███ █░ ░██
░██ ████░ ▒█ █▒████ █ ░▓██
░██░ █▒ ▒█▓ ▓█▓ ▒░██ █
███ ███░███▒ █████▒ ░██
▒██▒███▒█ ░▒ ░▓████
▒░████▓██████ ▓█████████▓▓█▓██
▓█████▓ ░ ▓ ██▓▓█
████▓ █▓█████
▒█ █ ██
███▓ ███████ ██████
▒██ █ ▓█ █████
███ ██ ███
████▓ ██▓██████ ███ ▓
██ ▒▒█ █ █████▒ ███
░ ▒█ █ █ ░ ██████ ▓█
██ ░██ █ █▓░ ▓██
█▒▒█▓ ██ ▒█ ██ ▓░ ▓█ ██
█████████ ██ ██░ ░███ ░▓
██████ █ ███▓██ ██ █
█ █ ▓█ ░ ▓█████ ▒█
█▒ ▒ ██▒ █▓█▒░░ █ ▒ ▒██ █
█ ▓ ███▓█ ▓▒░ ▓▓ ░█ █
█░ █▓█▒ █ █▓ █
▓█ ██ █ ░ ██████ ██ ██
█████ █ ▒██ ██ ██████
█ ░▒████▒ ░█ █
█▒▓█ █▓ ░█
░█░▒█████▓█░ █
▒██░ ░██ █
▓██ ▒██▒ ░▒░▓█ █
███▓ ▒▒░████▒▒█████ █
░███░ ▓░ ▒██████████ █
█ █████▒ ▓▓▒▒████ ████ █
█▓ ░█░██▓███▒ █▒ █
█ ██████▒ ██ ██ █
░ ░████ █▒ ▓█ █
█▒ ░█▒░█▓ █▒ ▒█ █
█ ██ ██ ▒█ █░
▓█▒ ███▒░█ ▒
░ ▒▒████████▓ ▓█████████████████████████████▓ ░\x1b[0m
`;
export const figure2 = `\x1b[31m
┌───────────────────────────────────────────┐
│ ███████████ █████ ████ ███████ ███│
│░█░░░███░░░█░░███ ███░ ███░░░░░███ ░███│
│░ ░███ ░ ░███ ███ ███ ░░███░███│
│ ░███ ░███████ ░███ ░███░███│
│ ░███ ░███░░███ ░███ ░███░███│
│ ░███ ░███ ░░███ ░░███ ███ ░░░ │
│ █████ █████ ░░████ ░░░███████░ ███│
│ ░░░░░ ░░░░░ ░░░░ ░░░░░░░ ░░░ │
└───────────────────────────────────────────┘\x1b[0m`;
// console.log(figure1 + figure2);
console.log(figure1 + figure2);