Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
56 changes: 56 additions & 0 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -1572,6 +1572,34 @@
box-shadow: 0 8px 25px rgba(78, 205, 196, 0.3);
}

/* Tip Section */
.tip-section {
margin: 40px auto;
padding: 20px;
max-width: 800px;
background: #fff8f0;
border-radius: 12px;
box-shadow: 0 8px 20px rgba(0,0,0,0.1);
text-align: center;
}

body.dark-mode .tip-section {
background: #2c2c2c;
color: #f1f1f1;
}

.tip-title {
font-size: 1.5rem;
margin-bottom: 10px;
color: #e67e22;
}

.tip-text {
font-size: 1.1rem;
line-height: 1.6;
}


/* Responsive */
@media (max-width: 480px) {
.modal-content {
Expand Down Expand Up @@ -1667,6 +1695,12 @@ <h2>Baking Mode On<span class="dots"></span></h2>
</div>
</nav>

<!-- Tip of the Day Section -->
<section class="tip-section">
<h2 class="tip-title">🍪 Baking Tip of the Day</h2>
<p id="bakingTip" class="tip-text"></p>
</section>

<!-- Main Content -->
<main class="main-content">
<!-- Hero Section -->
Expand Down Expand Up @@ -2042,6 +2076,28 @@ <h2 class="form-title">Welcome Back</h2>
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');
Expand Down