@justai/cuts 0.109.0 → 0.110.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/src/BackToZone.astro +22 -21
package/package.json
CHANGED
package/src/BackToZone.astro
CHANGED
|
@@ -49,29 +49,33 @@ interface Props {
|
|
|
49
49
|
const { apex = "app.zone" } = Astro.props;
|
|
50
50
|
const href = `https://${apex}`;
|
|
51
51
|
|
|
52
|
-
// queries: the home mark is missing arms ·
|
|
53
|
-
//
|
|
52
|
+
// queries: the home mark is missing arms · the mark is the wrong size · 36px · scoped styles do
|
|
53
|
+
// not apply · set:html · data-astro-cid
|
|
54
54
|
//
|
|
55
|
-
// ── THE
|
|
55
|
+
// ── THE MARKS ARE ELEMENTS, NOT STRINGS, AND BOTH DETOURS ARE WORTH KEEPING ────────────────
|
|
56
56
|
//
|
|
57
|
-
//
|
|
58
|
-
//
|
|
59
|
-
//
|
|
60
|
-
//
|
|
57
|
+
// For one version these were HTML strings handed over with `set:html`, to work around app.zone's
|
|
58
|
+
// mark losing three of its four paths. That was the wrong fix for a defect with a different cause:
|
|
59
|
+
// the paths had been deleted from the SOURCE by a careless regex during an unrelated edit, and no
|
|
60
|
+
// amount of changing how they were rendered was ever going to bring them back.
|
|
61
61
|
//
|
|
62
|
-
//
|
|
63
|
-
//
|
|
64
|
-
// the
|
|
65
|
-
//
|
|
62
|
+
// Worse, the workaround broke something real. `set:html` injects markup that Astro never sees, so it
|
|
63
|
+
// carries no `data-astro-cid-*` — and every scoped rule in this file stopped matching it, including
|
|
64
|
+
// the one that sizes the mark. The row's 20px mark rendered at its natural size: 36.6px beside four
|
|
65
|
+
// 20px glyphs, caught by the shell's ink spec exactly as the missing arms had been.
|
|
66
66
|
//
|
|
67
|
-
//
|
|
68
|
-
|
|
69
|
-
|
|
67
|
+
// Elements again. The ternary was never the problem.
|
|
68
|
+
---
|
|
69
|
+
|
|
70
|
+
<a class="home" href={href} data-home aria-label={apex} title={apex}>
|
|
71
|
+
{apex === "pin.games" ? (
|
|
72
|
+
<svg class="pgmark" viewBox="287 266 482 491" aria-hidden="true">
|
|
70
73
|
<rect class="arm a1" x="130" y="469" width="400" height="86" rx="43" transform="rotate(90 330 512)"/>
|
|
71
74
|
<rect class="arm a2" x="317.3" y="363" width="455.5" height="86" rx="43" transform="rotate(26.25 545 406)"/>
|
|
72
75
|
<rect class="arm a3" x="317.3" y="575" width="455.5" height="86" rx="43" transform="rotate(-26.25 545 618)"/>
|
|
73
|
-
</svg
|
|
74
|
-
|
|
76
|
+
</svg>
|
|
77
|
+
) : (
|
|
78
|
+
<svg class="azmark" viewBox="-8.5 0 928 928" aria-hidden="true">
|
|
75
79
|
<path class="arm a1" d="M360.365 0C372.599 0 382.517 9.91778 382.517 22.152V97.7555C382.517 109.99 372.599 119.907 360.365 119.907H203.398C157.082 119.907 119.537 157.453 119.537 203.769V353.64C119.537 370.244 106.077 383.704 89.4732 383.704H22.152C9.91778 383.704 0 373.786 0 361.552V175.633C0 78.6337 78.6338 0 175.634 0H360.365Z"/>
|
|
76
80
|
<path class="arm a2" d="M550.635 2.37305C538.401 2.37305 528.483 12.2908 528.483 24.525V100.129C528.483 112.363 538.401 122.28 550.635 122.28H707.602C753.918 122.28 791.463 159.826 791.463 206.142V356.013C791.463 372.617 804.923 386.077 821.527 386.077H888.848C901.082 386.077 911 376.159 911 363.925V178.006C911 81.0068 832.366 2.37305 735.366 2.37305H550.635Z"/>
|
|
77
81
|
<path class="arm a3" d="M550.635 928.009C538.401 928.009 528.483 918.092 528.483 905.857V830.254C528.483 818.02 538.401 808.102 550.635 808.102H707.602C753.918 808.102 791.463 770.556 791.463 724.241V574.369C791.463 557.765 804.923 544.305 821.527 544.305H888.848C901.082 544.305 911 554.223 911 566.457V752.376C911 849.376 832.366 928.009 735.366 928.009H550.635Z"/>
|
|
@@ -83,11 +87,8 @@ const AZ_MARK = `<svg class="azmark" viewBox="-8.5 0 928 928" aria-hidden="true"
|
|
|
83
87
|
<linearGradient id="azHome3" x1="425.634" y1="1029.67" x2="904.671" y2="550.635" gradientUnits="userSpaceOnUse"><stop stop-color="#F8C24A"/><stop offset="1" stop-color="#EFA229"/></linearGradient>
|
|
84
88
|
<linearGradient id="azHome4" x1="450.555" y1="993.674" x2="6.32921" y2="550.635" gradientUnits="userSpaceOnUse"><stop stop-color="#5285DC"/><stop offset="1" stop-color="#2E62C6"/></linearGradient>
|
|
85
89
|
</defs>
|
|
86
|
-
</svg
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
<a class="home" href={href} data-home aria-label={apex} title={apex}>
|
|
90
|
-
<Fragment set:html={apex === "pin.games" ? PG_MARK : AZ_MARK} />
|
|
90
|
+
</svg>
|
|
91
|
+
)}
|
|
91
92
|
</a>
|
|
92
93
|
|
|
93
94
|
<style>
|