Carry the court colour into the page background
A phone's rounded display corners clip slivers out of the canvas, and the flat dark body showed through them as a dark notch where the bottom corners curve in. The page background is a two-stop gradient now: dark down to the top safe-area inset, where it sits behind the status bar, then the court's out-area colour for everything below. That colour is read live from the palette rather than hardcoded, because it lerps between the tennis and splatter courts — bright green to dark olive — so a fixed hex would only match in one mode. Written in resolved pixels rather than env() so the declaration can't be invalid and drop the background entirely, and only assigned when the string actually changes. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
This commit is contained in:
1 parent
047d6fb665
commit
7b15e10494
3 files changed
+29
-4
No files matched your search
+1
-1
@@ -80,6 +80,6 @@
|
||||
<p class="start">TAP TO START</p>
|
||||
</div>
|
||||
</div>
|
||||
<script type="module" src="main.js?v=47"></script>
|
||||
<script type="module" src="main.js?v=48"></script>
|
||||
</body>
|
||||
</html>
|
||||
Reference in new issue
Block a user