@@ -632,26 +632,23 @@ export default function CertificateCard({ cert, onReset }: Props) {
632632 const shieldsUrl = `https://img.shields.io/badge/%F0%9F%AA%A6%20declared%20dead-view%20certificate-555?style=for-the-badge&labelColor=cc0000`
633633 const badgeMd = `[](${ repoUrl } )`
634634 return (
635- < div style = { { marginTop : '6px' } } >
636- { /* eslint-disable-next-line @next/next/no-img-element */ }
637- < img
638- src = { shieldsUrl }
639- alt = "README badge preview"
640- loading = "lazy"
641- decoding = "async"
642- style = { { height : '28px' , width : 'auto' , display : 'block' , marginBottom : '10px' } }
643- />
644- < div style = { { display : 'flex' , alignItems : 'center' , justifyContent : 'space-between' , gap : '12px' } } >
645- < p style = { { fontFamily : MONO , fontSize : '10px' , color : '#b0a89e' , margin : 0 , letterSpacing : '0.04em' } } >
646- ↻ paste once — updates automatically
647- </ p >
635+ < div className = "readme-badge-block" >
636+ < div className = "readme-badge-row" >
637+ { /* eslint-disable-next-line @next/next/no-img-element */ }
638+ < img
639+ src = { shieldsUrl }
640+ alt = "README badge preview"
641+ loading = "lazy"
642+ decoding = "async"
643+ style = { { height : '28px' , width : 'auto' , display : 'block' , flexShrink : 0 } }
644+ />
648645 < button
649646 type = "button"
650647 onClick = { async ( ) => { try { await navigator . clipboard . writeText ( badgeMd ) ; setBadgeCopied ( true ) ; setTimeout ( ( ) => setBadgeCopied ( false ) , 2000 ) } catch { /* ignore */ } } }
651648 className = "readme-copy-btn"
652649 style = { {
653650 fontFamily : MONO , fontSize : '10px' , fontWeight : 700 , letterSpacing : '0.06em' ,
654- padding : '8px 14px' , minHeight : '44px ' ,
651+ padding : '8px 14px' , minHeight : '36px ' ,
655652 background : badgeCopied ? '#2d7a3c' : 'transparent' ,
656653 color : badgeCopied ? '#fff' : '#4a4440' ,
657654 border : `2px solid ${ badgeCopied ? '#2d7a3c' : '#cec6bb' } ` ,
@@ -666,6 +663,9 @@ export default function CertificateCard({ cert, onReset }: Props) {
666663 { badgeCopied ? '✓ copied!' : '⎘ copy to readme' }
667664 </ button >
668665 </ div >
666+ < p className = "readme-badge-caption" style = { { fontFamily : MONO } } >
667+ ↻ paste once — updates automatically
668+ </ p >
669669 </ div >
670670 )
671671 } ) ( ) }
0 commit comments