This repository was archived by the owner on Oct 2, 2025. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
Merged
update favicon #16
Changes from all commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -4,122 +4,114 @@ import "../styles/global.css"; | |
|
|
||
| <!doctype html> | ||
| <html lang="en"> | ||
| <head> | ||
| <meta charset="UTF-8" /> | ||
| <meta name="viewport" content="width=device-width" /> | ||
| <meta name="generator" content={Astro.generator} /> | ||
| <meta | ||
| name="description" | ||
| content="TaskRatchet is a todo list that charges you real money if you don't complete your tasks on time." | ||
| /> | ||
| <link rel="preconnect" href="https://fonts.googleapis.com" /> | ||
| <link rel="preconnect" href="https://fonts.gstatic.com" crossorigin /> | ||
| <link | ||
| href="https://fonts.googleapis.com/css2?family=Inter:wght@400;500;700&display=swap" | ||
| rel="stylesheet" | ||
| /> | ||
| <link rel="icon" href="https://fav.farm/🔧" /> | ||
| <title>TaskRatchet - The Todo List You Won't Ignore</title> | ||
| <style is:inline> | ||
| /* Critical styles to prevent flash */ | ||
| :root { | ||
| --bg-main: white; | ||
| --text-primary: #1e293b; | ||
| --bg-header: rgba(255, 255, 255, 0.75); | ||
| --logo-text: #0f172a; | ||
| --primary: #3b82f6; | ||
| --secondary: #8b5cf6; | ||
| --gray-100: #f1f5f9; | ||
| --font-sans: | ||
| "Inter", system-ui, -apple-system, BlinkMacSystemFont, | ||
| "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", | ||
| sans-serif; | ||
| } | ||
| <head> | ||
| <meta charset="UTF-8" /> | ||
| <meta name="viewport" content="width=device-width" /> | ||
| <meta name="generator" content={Astro.generator} /> | ||
| <meta | ||
| name="description" | ||
| content="TaskRatchet is a todo list that charges you real money if you don't complete your tasks on time." | ||
| /> | ||
| <link rel="preconnect" href="https://fonts.googleapis.com" /> | ||
| <link rel="preconnect" href="https://fonts.gstatic.com" crossorigin /> | ||
| <link | ||
| href="https://fonts.googleapis.com/css2?family=Inter:wght@400;500;700&display=swap" | ||
| rel="stylesheet" | ||
| /> | ||
| <link rel="icon" href="https://fav.farm/⚙️" /> | ||
| <title>TaskRatchet - The Todo List You Won't Ignore</title> | ||
| <style is:inline> | ||
| /* Critical styles to prevent flash */ | ||
| :root { | ||
| --bg-main: white; | ||
| --text-primary: #1e293b; | ||
| --bg-header: rgba(255, 255, 255, 0.75); | ||
| --logo-text: #0f172a; | ||
| --primary: #3b82f6; | ||
| --secondary: #8b5cf6; | ||
| --gray-100: #f1f5f9; | ||
| --font-sans: "Inter", system-ui, -apple-system, BlinkMacSystemFont, | ||
| "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif; | ||
| } | ||
|
|
||
| @media (prefers-color-scheme: dark) { | ||
| :root { | ||
| --bg-main: #0f172a; | ||
| --text-primary: #f8fafc; | ||
| --bg-header: rgba(15, 23, 42, 0.75); | ||
| --logo-text: #f8fafc; | ||
| } | ||
| } | ||
| @media (prefers-color-scheme: dark) { | ||
| :root { | ||
| --bg-main: #0f172a; | ||
| --text-primary: #f8fafc; | ||
| --bg-header: rgba(15, 23, 42, 0.75); | ||
| --logo-text: #f8fafc; | ||
| } | ||
| } | ||
|
|
||
| /* Ensure immediate dark mode if saved */ | ||
| html[data-theme="dark"] { | ||
| --bg-main: #0f172a; | ||
| --text-primary: #f8fafc; | ||
| --bg-header: rgba(15, 23, 42, 0.75); | ||
| --logo-text: #f8fafc; | ||
| } | ||
| /* Ensure immediate dark mode if saved */ | ||
| html[data-theme="dark"] { | ||
| --bg-main: #0f172a; | ||
| --text-primary: #f8fafc; | ||
| --bg-header: rgba(15, 23, 42, 0.75); | ||
| --logo-text: #f8fafc; | ||
| } | ||
|
|
||
| body { | ||
| background-color: var(--bg-main); | ||
| color: var(--text-primary); | ||
| margin: 0; | ||
| font-family: var(--font-sans); | ||
| } | ||
| body { | ||
| background-color: var(--bg-main); | ||
| color: var(--text-primary); | ||
| margin: 0; | ||
| font-family: var(--font-sans); | ||
| } | ||
|
|
||
| .header-logo { | ||
| width: 40px; | ||
| height: 40px; | ||
| } | ||
| .header-logo { | ||
| width: 40px; | ||
| height: 40px; | ||
| } | ||
|
|
||
| /* Prevent layout shift for hero section */ | ||
| .hero { | ||
| min-height: 600px; | ||
| background: linear-gradient( | ||
| 135deg, | ||
| var(--gray-50) 0%, | ||
| white 100% | ||
| ); | ||
| padding: 14rem 0 6rem; | ||
| margin-top: -4rem; | ||
| text-align: center; | ||
| } | ||
| /* Prevent layout shift for hero section */ | ||
| .hero { | ||
| min-height: 600px; | ||
| background: linear-gradient(135deg, var(--gray-50) 0%, white 100%); | ||
| padding: 14rem 0 6rem; | ||
| margin-top: -4rem; | ||
| text-align: center; | ||
| } | ||
|
Comment on lines
+67
to
+73
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Fix undefined CSS variable used in hero gradient.
Apply this diff: @@
:root {
--bg-main: white;
--text-primary: #1e293b;
--bg-header: rgba(255, 255, 255, 0.75);
--logo-text: #0f172a;
--primary: #3b82f6;
--secondary: #8b5cf6;
--gray-100: #f1f5f9;
+ --gray-50: #f8fafc;
--font-sans: "Inter", system-ui, -apple-system, BlinkMacSystemFont,
"Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
}
@@
@media (prefers-color-scheme: dark) {
:root {
--bg-main: #0f172a;
--text-primary: #f8fafc;
--bg-header: rgba(15, 23, 42, 0.75);
--logo-text: #f8fafc;
+ --gray-50: #0b1220;
}
}
@@
.hero {
min-height: 600px;
- background: linear-gradient(135deg, var(--gray-50) 0%, white 100%);
+ background: linear-gradient(135deg, var(--gray-50) 0%, white 100%);
padding: 14rem 0 6rem;
margin-top: -4rem;
text-align: center;
}Also applies to: 25-35, 37-44 🤖 Prompt for AI Agents |
||
|
|
||
| /* Critical header styles */ | ||
| .site-header { | ||
| padding: 1rem 0; | ||
| background: var(--bg-header); | ||
| position: absolute; | ||
| top: 0; | ||
| left: 0; | ||
| right: 0; | ||
| z-index: 100; | ||
| } | ||
| /* Critical header styles */ | ||
| .site-header { | ||
| padding: 1rem 0; | ||
| background: var(--bg-header); | ||
| position: absolute; | ||
| top: 0; | ||
| left: 0; | ||
| right: 0; | ||
| z-index: 100; | ||
| } | ||
|
|
||
| .container { | ||
| max-width: 1600px; | ||
| margin: 0 auto; | ||
| padding: 0 3rem; | ||
| } | ||
| </style> | ||
| <script is:inline> | ||
| // Initial theme setup - run as early as possible | ||
| (function () { | ||
| // Add class to disable transitions during load | ||
| document.documentElement.classList.add("no-transitions"); | ||
| .container { | ||
| max-width: 1600px; | ||
| margin: 0 auto; | ||
| padding: 0 3rem; | ||
| } | ||
| </style> | ||
| <script is:inline> | ||
| // Initial theme setup - run as early as possible | ||
| (function () { | ||
| // Add class to disable transitions during load | ||
| document.documentElement.classList.add("no-transitions"); | ||
|
|
||
| const theme = | ||
| localStorage.getItem("theme") || | ||
| (window.matchMedia("(prefers-color-scheme: dark)").matches | ||
| ? "dark" | ||
| : "light"); | ||
| document.documentElement.setAttribute("data-theme", theme); | ||
| const theme = | ||
| localStorage.getItem("theme") || | ||
| (window.matchMedia("(prefers-color-scheme: dark)").matches | ||
| ? "dark" | ||
| : "light"); | ||
| document.documentElement.setAttribute("data-theme", theme); | ||
|
|
||
| // Remove the no-transitions class after a small delay | ||
| window.addEventListener("load", () => { | ||
| setTimeout(() => { | ||
| document.documentElement.classList.remove( | ||
| "no-transitions", | ||
| ); | ||
| }, 100); | ||
| }); | ||
| })(); | ||
| </script> | ||
| </head> | ||
| <body> | ||
| <slot /> | ||
| </body> | ||
| // Remove the no-transitions class after a small delay | ||
| window.addEventListener("load", () => { | ||
| setTimeout(() => { | ||
| document.documentElement.classList.remove("no-transitions"); | ||
| }, 100); | ||
| }); | ||
| })(); | ||
| </script> | ||
| </head> | ||
| <body> | ||
| <slot /> | ||
| </body> | ||
| </html> | ||
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🛠️ Refactor suggestion
Define the
.no-transitionsutility to make the toggle effective.You add/remove
no-transitionsin JS, but there’s no CSS for it here. Add a minimal rule to prevent flashes.body { background-color: var(--bg-main); color: var(--text-primary); margin: 0; font-family: var(--font-sans); } + .no-transitions *, .no-transitions *::before, .no-transitions *::after { + transition: none !important; + animation: none !important; + }📝 Committable suggestion
🤖 Prompt for AI Agents