Skip to content
Open
Show file tree
Hide file tree
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
3 changes: 3 additions & 0 deletions newTab.html
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,9 @@ <h1 id="welcome-message">Who do you want to care for today?</h1>
</div>
</div>

<!-- Feature 2: Quote Overlay -->
<div id="quote-overlay" class="quote-overlay hidden"></div>

<script src="scripts/Sortable.min.js"></script>
<script src="newTab.js"></script>
</body>
Expand Down
25 changes: 25 additions & 0 deletions newTab.js
Original file line number Diff line number Diff line change
Expand Up @@ -949,4 +949,29 @@ document.addEventListener("DOMContentLoaded", () => {

tasksContainer.classList.remove("hidden");
}

// Inspirational quote overlay
const quotes = [
"You are stronger than you think.",
"1% better every day.",
"Progress, not perfection.",
"Believe in yourself—you’re doing great.",
"One task at a time, one win at a time.",
"Be kind to yourself today.",
"You’re already enough.",
"Don’t forget to breathe.",
"You are capable of amazing things.",
"You are doing better than you think.",
"Don't let perfection be the enemy of good."
];

function showInspirationalQuote() {
const quoteEl = document.getElementById("quote-overlay");
const quote = quotes[Math.floor(Math.random() * quotes.length)];
quoteEl.textContent = quote;
quoteEl.classList.remove("hidden");
}

showInspirationalQuote();

});
23 changes: 23 additions & 0 deletions styles.css
Original file line number Diff line number Diff line change
Expand Up @@ -487,4 +487,27 @@ input[type="checkbox"]:checked+.task-text {
text-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
opacity: 0.95;
animation: welcomeFadeIn 1s ease-out forwards;
}

.quote-overlay {
position: absolute;
bottom: 20px;
left: 50%;
transform: translateX(-50%);
font-size: 2.0rem;
font-weight: 400;
font-style: italic;
color: #333;
background: rgba(255, 255, 255, 0.4);
padding: 16px 24px;
border-radius: 12px;
z-index: 1000;
max-width: 80%;
text-align: center;
pointer-events: none;
transition: opacity 0.6s ease-in-out;
}

.hidden {
display: none;
}