import { getMotivation, getFuel } from './lifestyle.js';
async function introduction() {
try {
const response = await fetch('https://api.github.com/users/pedro354');
const data = await response.json();
const developer = {
fullName: "Pedro Silva",
username: "pedro354",
mainStack: ["JavaScript", "Node.js", "React", "PostgreSQL"],
tools: ["VSCode", "Figma", "Git", "Notion"],
motivization: await getMotivation(),
fuel: await getFuel(),
status: "Coding and brewing ideas ☕"
};
console.log(`👋 Olá! Eu sou o ${developer.fullName}`);
console.log(`👨💻 Stack: ${developer.stack.join(" / ")}`);
console.log(`🛠️ Ferramentas: ${developer.tools.join(" / ")}`);
console.log(`💡 Motivação: ${developer.motivization}`);
console.log(`☕ Combustível: ${developer.fuel}`);
console.log(`📡 Status: ${developer.status}`);
} catch (error) {
console.error("❌ Erro ao carregar os dados do Pedro:", error.message);
}
}
introduction();