const quotes = [
{ text: "The only way to do great work is to love what you do.", author: "Steve Jobs" },
{ text: "In three words I can sum up everything I've learned about life: it goes on.", author: "Robert Frost" },
{ text: "The future belongs to those who believe in the beauty of their dreams.", author: "Eleanor Roosevelt" },
// Add more quotes as needed
];
function generateQuote() {
const randomIndex = Math.floor(Math.random() * quotes.length);
const quote = quotes[randomIndex];
const quoteText = document.getElementById('quote-text');
const quoteAuthor = document.getElementById('quote-author');
quoteText.textContent = `"${quote.text}"`;
quoteAuthor.textContent = `- ${quote.author}`;
}
// Initial quote generation
generateQuote();