-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcard.js
99 lines (92 loc) · 2.99 KB
/
card.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
#!/usr/bin/env node
'use strict';
const boxen = require("boxen");
const chalk = require("chalk");
const inquirer = require("inquirer");
const open = require("open");
const data = {
github: chalk.gray("https://github.com/") + chalk.green("lucadsign"),
handle: chalk.white("@lucadsign"),
instagram: chalk.gray("https://instagram.com/") + chalk.magenta("luca.dsign"),
labelCard: chalk.white.bold(" Card:"),
labelGitHub: chalk.white.bold(" GitHub:"),
labelInstagram: chalk.white.bold(" Instagram:"),
labelPortfolio: chalk.white.bold(" Portfolio:"),
labelWork: chalk.white.bold(" Work:"),
name: chalk.bold.green(" Luca C."),
npx: chalk.red("npx") + " " + chalk.white("luca.dsign"),
portfolio: chalk.cyan("https://lucadsign.vercel.app"),
work: `${chalk.white("Founder at")} ${chalk.hex("#ff9900").bold("Currenton")}`,
};
const questions = [
{
choices: [
{
name: `Visit my ${chalk.cyan.bold("Portfolio")}?`,
value: () => {
open("https://lucadsign.vercel.app");
console.log("\nOpening portfolio...\n");
}
},
{
name: `Check out my ${chalk.green.bold("GitHub")}?`,
value: () => {
open("https://github.com/lucadsign");
console.log("\nSee you on GitHub!\n");
}
},
{
name: `Follow my ${chalk.magentaBright.bold("Instagram")}?`,
value: () => {
open("https://instagram.com/luca.dsign");
console.log("\nSee you on Instagram!\n");
}
},
{
name: "Just quit.",
value: () => {
console.log("\nStay creative, stay sharp!\n");
}
}
],
message: "What do you want to do?",
name: "action",
type: "list"
}
];
const me = boxen(
[
`${data.name}`,
``,
`${data.labelWork} ${data.work}`,
``,
`${data.labelGitHub} ${data.github}`,
`${data.labelPortfolio} ${data.portfolio}`,
`${data.labelInstagram} ${data.instagram}`,
``,
`${data.labelCard} ${data.npx}`,
``,
`${chalk.italic("Passionate about coding, chess, and design.")}`,
`${chalk.italic("Let's build something amazing together!")}`
].join("\n"),
{
borderColor: "cyan",
borderStyle: "single",
float: 'center',
margin: 1,
padding: 1
}
);
console.log(me);
const tip = [
`Tip: Try ${chalk.cyanBright.bold(
"cmd/ctrl + click"
)} on the links above`,
'',
].join("\n");
console.log(tip);
if (require.main === module) {
// eslint-disable-next-line unicorn/prefer-top-level-await
inquirer.prompt(questions).then((answer) => answer.action());
}
//Copyright Luca C. 2025 (lucadsign.vercel.app)