@@ -122,27 +122,29 @@ export function InstallSection({ downloads }: InstallSectionProps) {
122122 < div className = "absolute -inset-px rounded-xl bg-gradient-to-r from-blue-500/50 via-cyan-500/50 to-purple-500/50 opacity-30 blur-sm transition-all duration-500 group-hover:opacity-60 dark:opacity-40 dark:group-hover:opacity-70" />
123123 < div className = "relative overflow-hidden rounded-xl border border-border bg-background/80 shadow-lg backdrop-blur-xl transition-all duration-500 ease-out group-hover:border-blue-500/50 group-hover:shadow-xl group-hover:shadow-blue-500/10 dark:border-border/50 dark:bg-background/60 dark:group-hover:border-blue-400/50" >
124124 < div className = "border-b border-border/50 bg-muted/30 px-4 py-3 dark:bg-muted/20" >
125- < div className = "flex items-center justify-between" >
126- < div className = "text-sm font-medium text-foreground" > or via CLI</ div >
127- < button
128- type = "button"
129- onClick = { handleCopy }
130- className = "inline-flex items-center gap-2 rounded-md px-2 py-1 text-xs font-medium text-foreground/80 hover:text-foreground hover:bg-foreground/5 transition-colors"
131- aria-label = { copied ? "Copied" : "Copy install command to clipboard" }
132- title = { copied ? "Copied!" : "Copy" } >
133- { copied ? (
134- < Check className = "h-4 w-4 text-green-500" />
135- ) : (
136- < Copy className = "h-4 w-4" />
137- ) }
138- < span className = "sr-only" aria-live = "polite" role = "status" >
139- { copied ? "Copied" : "Copy" }
140- </ span >
141- </ button >
125+ < div className = "flex items-center justify-center" >
126+ < div className = "text-sm font-medium text-foreground text-center" >
127+ or via CLI
128+ </ div >
142129 </ div >
143130 </ div >
144- < div className = "overflow-x-auto bg-background/50 dark:bg-background/30" >
145- < pre className = "p-4" >
131+ < div className = "relative overflow-x-auto bg-background/50 dark:bg-background/30" >
132+ < button
133+ type = "button"
134+ onClick = { handleCopy }
135+ className = "absolute right-3 top-3 inline-flex items-center justify-center rounded-md p-2 text-foreground/80 hover:text-foreground hover:bg-foreground/5 transition-colors"
136+ aria-label = { copied ? "Copied" : "Copy install command to clipboard" }
137+ title = { copied ? "Copied!" : "Copy" } >
138+ { copied ? (
139+ < Check className = "h-4 w-4 text-green-500" />
140+ ) : (
141+ < Copy className = "h-4 w-4" />
142+ ) }
143+ < span className = "sr-only" aria-live = "polite" role = "status" >
144+ { copied ? "Copied" : "Copy" }
145+ </ span >
146+ </ button >
147+ < pre className = "p-4 pr-12" >
146148 < code className = "whitespace-pre-wrap break-all text-sm font-mono text-foreground sm:break-normal sm:text-base" >
147149 { installCmd }
148150 </ code >
0 commit comments