novu
Version:
Novu CLI. Run Novu Studio and sync workflows with Novu Cloud
38 lines (37 loc) • 1.74 kB
JavaScript
;
var __importDefault = (this && this.__importDefault) || function (mod) {
return (mod && mod.__esModule) ? mod : { "default": mod };
};
Object.defineProperty(exports, "__esModule", { value: true });
exports.showWelcomeScreen = showWelcomeScreen;
const chalk_1 = __importDefault(require("chalk"));
const gradient_string_1 = __importDefault(require("gradient-string"));
const animation_1 = __importDefault(require("./animation"));
async function showWelcomeScreen() {
const textGradient = (0, gradient_string_1.default)('#0099F7', '#ff3432');
const logoGradient = (0, gradient_string_1.default)('#DD2476', '#FF512F');
const logo = `
@@@@@@@@@@@@@
@@@ @@@@@@@@@@@
@@@@@@@@ @@@@@@@@
@@@@@@@@@@@@ @@@@@@ @@
@@@@@@@@@@@@@@@@ @@@@ @@@
@@@@@@@@@@@@@@@@@@@ @ @@@
@@@@@ @@@@@@@@ @@@@
@@@ @ @@@@@@@@@@@@@@@@@@
@@@ @@@@ @@@@@@@@@@@@@@@@
@@ @@@@@@ @@@@@@@@@@@@
@@@@@@@@ @@@@@@@@
@@@@@@@@@@@ @@@
@@@@@@@@@@@@@
`;
const items = logo.split('\n').map((row) => logoGradient(row));
const animation = animation_1.default.pulse(logo, 0.6);
await new Promise((resolve) => {
setTimeout(() => {
console.log(chalk_1.default.bold(` Welcome to NOVU!`));
console.log(chalk_1.default.bold(textGradient(` The open-source notification framework\n`)));
resolve();
}, 600);
});
}