@@ -2042,6 +2076,28 @@

Welcome Back

loginModal.style.display = "none"; }); + // Baking Tips Array + const bakingTips = [ + "Always preheat your oven for at least 10 minutes before baking.", + "Use room temperature ingredients for better texture in cakes.", + "Weigh your ingredients for the most accurate results.", + "Do not open the oven door frequently while baking.", + "Use parchment paper to prevent sticking and ensure even baking.", + "Cool cakes completely before frosting to avoid melting the icing.", + "For fluffier whipped cream, chill your bowl and whisk first." + ]; + + // Function to get a random tip + function getRandomTip() { + const index = Math.floor(Math.random() * bakingTips.length); + return bakingTips[index]; + } + + // Display random tip on each refresh + document.addEventListener("DOMContentLoaded", () => { + document.getElementById("bakingTip").textContent = getRandomTip(); + }); + /// Toggle between login and signup document.getElementById('toggleForm').addEventListener('click', function() { const loginForm = document.getElementById('loginForm');