@@ -9,11 +9,11 @@ export default function CopyPage({ file }: { file: string | undefined }) {
99 } `;
1010
1111 return (
12- < div class = "copy-page-split inline-flex shrink-0 rounded-full border-2 border-foreground-primary dark:border-background-tertiary" >
12+ < div className = "copy-page-split inline-flex shrink-0 rounded-full border border-foreground-primary dark:border-background-tertiary" >
1313 { /* Primary: directly copies the URL */ }
1414 < button
1515 type = "button"
16- class = "copy-page-main-btn flex items-center gap-2 px-4 py -2 text-sm font-semibold text-foreground-primary bg-transparent hover:bg-header-highlight dark:hover:text-background-primary rounded-l-full transition-colors cursor-pointer select-none"
16+ className = "copy-page-main-btn flex items-center gap-2 pl-3 pr -2 py-1 text-xs font-semibold text-foreground-primary bg-transparent hover:bg-header-highlight dark:hover:text-background-primary rounded-l-full transition-colors cursor-pointer select-none"
1717 >
1818 < svg
1919 xmlns = "http://www.w3.org/2000/svg"
@@ -26,26 +26,26 @@ export default function CopyPage({ file }: { file: string | undefined }) {
2626 < path d = "M0 6.75C0 5.784.784 5 1.75 5h1.5a.75.75 0 0 1 0 1.5h-1.5a.25.25 0 0 0-.25.25v7.5c0 .138.112.25.25.25h7.5a.25.25 0 0 0 .25-.25v-1.5a.75.75 0 0 1 1.5 0v1.5A1.75 1.75 0 0 1 9.25 16h-7.5A1.75 1.75 0 0 1 0 14.25Z" />
2727 < path d = "M5 1.75C5 .784 5.784 0 6.75 0h7.5C15.216 0 16 .784 16 1.75v7.5A1.75 1.75 0 0 1 14.25 11h-7.5A1.75 1.75 0 0 1 5 9.25Zm1.75-.25a.25.25 0 0 0-.25.25v7.5c0 .138.112.25.25.25h7.5a.25.25 0 0 0 .25-.25v-7.5a.25.25 0 0 0-.25-.25Z" />
2828 </ svg >
29- < span class = "copy-page-main-label" > Copy page</ span >
29+ < span className = "copy-page-main-label" > Copy page</ span >
3030 </ button >
3131
3232 { /* Visual divider between the two halves */ }
3333 < span
34- class = "self-stretch w-0.5 bg-foreground-primary dark:bg-background-tertiary shrink-0"
34+ className = "self-stretch w-px bg-foreground-primary dark:bg-background-tertiary shrink-0"
3535 aria-hidden = "true"
3636 >
3737 </ span >
3838
3939 { /* Chevron: opens the popover panel */ }
4040 < button
4141 type = "button"
42- class = "copy-page-toggle-btn flex items-center px-3 py-2 text-foreground-primary bg-transparent hover:bg-header-highlight dark:hover:text-background-primary rounded-r-full transition-colors cursor-pointer select-none"
42+ className = "copy-page-toggle-btn flex items-center pl-1.5 pr-2 text-foreground-primary bg-transparent hover:bg-header-highlight dark:hover:text-background-primary rounded-r-full transition-colors cursor-pointer select-none"
4343 popovertarget = "copy-page-menu"
4444 aria-label = "More copy options"
4545 aria-haspopup = "menu"
4646 >
4747 < svg
48- class = "copy-page-chevron transition-transform duration-200"
48+ className = "copy-page-chevron transition-transform duration-200"
4949 xmlns = "http://www.w3.org/2000/svg"
5050 aria-hidden = "true"
5151 fill = "currentColor"
@@ -58,11 +58,11 @@ export default function CopyPage({ file }: { file: string | undefined }) {
5858 </ button >
5959
6060 { /* Popover panel — positioned via CSS anchor positioning, JS fallback */ }
61- < div id = "copy-page-menu" popover = "auto" class = "copy-page-panel" >
61+ < div id = "copy-page-menu" popover = "auto" className = "copy-page-panel" >
6262 < a
6363 href = { file }
6464 target = "_blank"
65- class = "no-underline flex items-start gap-3 px-4 py-3 hover:bg-background-secondary dark:hover:bg-gray-800 transition-colors"
65+ className = "no-underline flex items-start gap-3 px-4 py-3 hover:bg-background-secondary dark:hover:bg-gray-800 transition-colors"
6666 >
6767 < svg
6868 xmlns = "http://www.w3.org/2000/svg"
@@ -71,21 +71,23 @@ export default function CopyPage({ file }: { file: string | undefined }) {
7171 width = "16"
7272 height = "16"
7373 viewBox = "0 0 16 16"
74- class = "mt-0.5 shrink-0"
74+ className = "mt-0.5 shrink-0"
7575 >
7676 < path d = "M3.75 2h3.5a.75.75 0 0 1 0 1.5h-3.5a.25.25 0 0 0-.25.25v8.5c0 .138.112.25.25.25h8.5a.25.25 0 0 0 .25-.25v-3.5a.75.75 0 0 1 1.5 0v3.5A1.75 1.75 0 0 1 12.25 14h-8.5A1.75 1.75 0 0 1 2 12.25v-8.5C2 2.784 2.784 2 3.75 2Zm6.854-1h4.146a.25.25 0 0 1 .25.25v4.146a.25.25 0 0 1-.427.177L13.03 4.03 9.28 7.78a.751.751 0 0 1-1.042-.018.751.751 0 0 1-.018-1.042l3.75-3.75-1.543-1.543A.25.25 0 0 1 10.604 1Z" />
7777 </ svg >
7878 < span >
79- < span class = "block text-sm font-medium" > View Page as Markdown</ span >
80- < span class = "block text-xs text-foreground-secondary mt-0.5" >
79+ < span className = "block text-sm font-medium" >
80+ View Page as Markdown
81+ </ span >
82+ < span className = "block text-xs text-foreground-secondary mt-0.5" >
8183 Open the Markdown file in a new tab
8284 </ span >
8385 </ span >
8486 </ a >
8587 < a
8688 href = { claudeUrl }
8789 target = "_blank"
88- class = "no-underline flex items-start gap-3 px-4 py-3 border-t border-foreground-tertiary hover:bg-background-secondary dark:hover:bg-gray-800 transition-colors"
90+ className = "no-underline flex items-start gap-3 px-4 py-3 border-t border-foreground-tertiary hover:bg-background-secondary dark:hover:bg-gray-800 transition-colors"
8991 >
9092 < svg
9193 xmlns = "http://www.w3.org/2000/svg"
@@ -94,21 +96,21 @@ export default function CopyPage({ file }: { file: string | undefined }) {
9496 width = "16"
9597 height = "16"
9698 viewBox = "0 0 24 24"
97- class = "mt-0.5 shrink-0"
99+ className = "mt-0.5 shrink-0"
98100 >
99101 < path d = "M12 0C12 0 10.5 10.5 0 12C10.5 12 12 24 12 24C12 24 13.5 13.5 24 12C13.5 12 12 0 12 0Z" />
100102 </ svg >
101103 < span >
102- < span class = "block text-sm font-medium" > Open in Claude</ span >
103- < span class = "block text-xs text-foreground-secondary mt-0.5" >
104+ < span className = "block text-sm font-medium" > Open in Claude</ span >
105+ < span className = "block text-xs text-foreground-secondary mt-0.5" >
104106 Ask Claude about this page
105107 </ span >
106108 </ span >
107109 </ a >
108110 < a
109111 href = "/llms.txt"
110112 target = "_blank"
111- class = "no-underline flex items-start gap-3 px-4 py-3 border-t border-foreground-tertiary hover:bg-background-secondary dark:hover:bg-gray-800 transition-colors"
113+ className = "no-underline flex items-start gap-3 px-4 py-3 border-t border-foreground-tertiary hover:bg-background-secondary dark:hover:bg-gray-800 transition-colors"
112114 >
113115 < svg
114116 xmlns = "http://www.w3.org/2000/svg"
@@ -117,13 +119,13 @@ export default function CopyPage({ file }: { file: string | undefined }) {
117119 width = "16"
118120 height = "16"
119121 viewBox = "0 0 16 16"
120- class = "mt-0.5 shrink-0"
122+ className = "mt-0.5 shrink-0"
121123 >
122124 < path d = "M2 1.75C2 .784 2.784 0 3.75 0h6.586c.464 0 .909.184 1.237.513l2.914 2.914c.329.328.513.773.513 1.237v9.586A1.75 1.75 0 0 1 13.25 16h-9.5A1.75 1.75 0 0 1 2 14.25Zm1.75-.25a.25.25 0 0 0-.25.25v12.5c0 .138.112.25.25.25h9.5a.25.25 0 0 0 .25-.25V6h-2.75A1.75 1.75 0 0 1 9 4.25V1.5Zm6.75.062V4.25c0 .138.112.25.25.25h2.688l-.011-.013-2.914-2.914-.013-.011Z" />
123125 </ svg >
124126 < span >
125- < span class = "block text-sm font-medium" > llms.txt</ span >
126- < span class = "block text-xs text-foreground-secondary mt-0.5" >
127+ < span className = "block text-sm font-medium" > llms.txt</ span >
128+ < span className = "block text-xs text-foreground-secondary mt-0.5" >
127129 Machine-readable index of these docs for AI tools
128130 </ span >
129131 </ span >
0 commit comments