Skip to content

Commit fa8c178

Browse files
committed
feat: update layout titles and descriptions for improved clarity; enhance tool descriptions for better user understanding
Updates layout titles and tool descriptions Improves clarity of layout titles and descriptions Enhances tool descriptions for better user understanding Changes background color for canvas elements Fixes #123
1 parent 7ffb09b commit fa8c178

File tree

4 files changed

+17
-15
lines changed

4 files changed

+17
-15
lines changed

app/layout.tsx

+2-2
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,8 @@ const geistMono = localFont({
1616
});
1717

1818
export const metadata: Metadata = {
19-
title: "LaTeX Environment Replacer",
20-
description: "A tool for replacing LaTeX environments in your text.",
19+
title: "Workflow Tools",
20+
description: "Tools tailored for my workflow",
2121
};
2222

2323
export default function RootLayout({

app/page.tsx

+5-5
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,7 @@ export default function Page() {
143143
<ToolCard
144144
href="/callout-maker"
145145
title="Callout Maker"
146-
description="Add > prefix to create markdown callouts"
146+
description="Add > prefix to create markdown callouts with titles"
147147
icon={<Quote className="h-6 w-6" />}
148148
gradient="from-purple-500 to-pink-500"
149149
>
@@ -158,8 +158,8 @@ export default function Page() {
158158
icon={<Clock className="h-6 w-6" />}
159159
gradient="from-green-500 to-blue-500"
160160
>
161-
Keep track of your sessions with preset timers and countdown
162-
modes.
161+
Keep track of your session time with a simple, intuitive
162+
interface.
163163
</ToolCard>
164164

165165
<ToolCard
@@ -169,8 +169,8 @@ export default function Page() {
169169
icon={<Timer className="h-6 w-6" />}
170170
gradient="from-red-500 to-orange-500"
171171
>
172-
Enhance your concentration with auditory cues and customizable
173-
sessions.
172+
Enhance your concentration with the pomodoro technique and custom
173+
sound cues.
174174
</ToolCard>
175175
</div>
176176
</main>

app/pomodoro/page.tsx

+8-6
Original file line numberDiff line numberDiff line change
@@ -61,13 +61,13 @@ function UnsupportedModal({ onClose }: UnsupportedModalProps) {
6161
<div className="fixed inset-0 bg-black opacity-50"></div>
6262
{/* Modal content */}
6363
<div className="bg-white rounded-lg shadow-lg p-6 z-10 max-w-md w-full">
64-
<h2 className="text-xl text-black font-semibold mb-4">
64+
<h2 className="text-xl text-black font-semibold mb-4">
6565
Picture-in-Picture Unavailable
6666
</h2>
6767
<p className="text-gray-700 mb-6">
6868
Your browser (Firefox) does not support Picture-in-Picture for canvas
69-
capture streams. Please use a supported browser such as Edge,
70-
or Safari.
69+
capture streams. Please use a supported browser such as Edge or
70+
Safari.
7171
</p>
7272
<div className="flex justify-end">
7373
<Button
@@ -360,6 +360,9 @@ export default function PomodoroPage() {
360360
const totalDuration =
361361
phase === "work" ? WORK_DURATION : selectedBreakPreset.duration;
362362

363+
// -------------------------------------------------------
364+
// Draw the PiP canvas with updated background color (#151E2C)
365+
// -------------------------------------------------------
363366
useEffect(() => {
364367
if (!canvasRef.current) return;
365368
const ctx = canvasRef.current.getContext("2d");
@@ -369,8 +372,8 @@ export default function PomodoroPage() {
369372
canvasRef.current.width = width;
370373
canvasRef.current.height = height;
371374

372-
// Clear canvas.
373-
ctx.fillStyle = "#000";
375+
// Clear canvas with the specified background color.
376+
ctx.fillStyle = "#2E3440";
374377
ctx.fillRect(0, 0, width, height);
375378

376379
// Draw timer text.
@@ -403,7 +406,6 @@ export default function PomodoroPage() {
403406
// Detect Firefox.
404407
const isFirefox = navigator.userAgent.toLowerCase().includes("firefox");
405408
if (isFirefox) {
406-
// Instead of an alert, show a custom modal.
407409
setShowUnsupportedModal(true);
408410
return;
409411
}

app/stopwatch/page.tsx

+2-2
Original file line numberDiff line numberDiff line change
@@ -171,8 +171,8 @@ export default function StopwatchPage() {
171171
canvasRef.current.width = width;
172172
canvasRef.current.height = height;
173173

174-
// Clear the canvas
175-
ctx.fillStyle = "#000";
174+
// Clear the canvas with the specified background color
175+
ctx.fillStyle = "#2E3440";
176176
ctx.fillRect(0, 0, width, height);
177177

178178
// Draw the current time (centered)

0 commit comments

Comments
 (0)