File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -449,6 +449,38 @@ body {
449449 font-size : 12px ;
450450}
451451
452+ .copy-button {
453+ gap : 8px ;
454+ }
455+
456+ .copy-icon {
457+ width : 16px ;
458+ height : 16px ;
459+ border-radius : 4px ;
460+ border : 1.6px solid rgba (15 , 24 , 46 , 0.5 );
461+ position : relative;
462+ }
463+
464+ .copy-icon ::after {
465+ content : "" ;
466+ position : absolute;
467+ width : 14px ;
468+ height : 14px ;
469+ border-radius : 4px ;
470+ border : 1.6px solid rgba (15 , 24 , 46 , 0.35 );
471+ top : -4px ;
472+ left : 4px ;
473+ background : rgba (255 , 255 , 255 , 0.6 );
474+ }
475+
476+ .copy-button .is-copied .copy-icon {
477+ border-color : rgba (89 , 179 , 123 , 0.9 );
478+ }
479+
480+ .copy-button .is-copied .copy-icon ::after {
481+ border-color : rgba (89 , 179 , 123 , 0.7 );
482+ }
483+
452484.result-card pre {
453485 margin : 0 ;
454486 max-height : 220px ;
Original file line number Diff line number Diff line change @@ -381,7 +381,7 @@ export default function Home() {
381381 Download JSON
382382 </ button >
383383 < button
384- className = " ghost-button"
384+ className = { ` ghost-button copy-button ${ copied ? "is-copied" : "" } ` }
385385 type = "button"
386386 onClick = { ( ) => {
387387 if ( ! rawResult ) return ;
@@ -391,7 +391,8 @@ export default function Home() {
391391 window . setTimeout ( ( ) => setCopied ( false ) , 1500 ) ;
392392 } }
393393 >
394- { copied ? "✓ Copied" : "📋 Copy JSON" }
394+ < span className = "copy-icon" aria-hidden = "true" />
395+ { copied ? "Copied" : "Copy JSON" }
395396 </ button >
396397 </ div >
397398 </ div >
You can’t perform that action at this time.
0 commit comments