kyd-shared-badge 0.2.8 → 0.2.10
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
CHANGED
|
@@ -22,11 +22,16 @@ const FindingRow = ({ finding }: { finding: IpRiskAnalysisFinding }) => (
|
|
|
22
22
|
const Section = ({ section }: { section: IpRiskSection }) => (
|
|
23
23
|
<div className="py-3">
|
|
24
24
|
<h4 className="text-lg font-semibold mb-2" style={{ color: 'var(--text-main)' }}>{section.title}</h4>
|
|
25
|
-
<ul
|
|
25
|
+
<ul style={{ listStyleType: 'none', padding: 0, margin: 0 }}>
|
|
26
26
|
{section.items.map((item, idx) => (
|
|
27
|
-
<li key={idx}
|
|
28
|
-
<div
|
|
29
|
-
|
|
27
|
+
<li key={idx} style={{ marginBottom: 8 }}>
|
|
28
|
+
<div style={{ display: 'grid', gridTemplateColumns: '16px 1fr', columnGap: 8, alignItems: 'start' }}>
|
|
29
|
+
<div aria-hidden="true" style={{ width: 6, height: 6, borderRadius: '50%', marginTop: 8, backgroundColor: 'var(--text-secondary)' }} />
|
|
30
|
+
<div>
|
|
31
|
+
<div className="font-medium text-sm" style={{ color: 'var(--text-main)' }}>{item.label}:</div>
|
|
32
|
+
<div className="text-sm" style={{ color: 'var(--text-secondary)', marginTop: 2 }}>{item.text}</div>
|
|
33
|
+
</div>
|
|
34
|
+
</div>
|
|
30
35
|
</li>
|
|
31
36
|
))}
|
|
32
37
|
</ul>
|
|
@@ -49,8 +49,8 @@ const ReportHeader = ({ badgeId, developerName, updatedAt, score = 0, isPublic,
|
|
|
49
49
|
>
|
|
50
50
|
{/* Left Section */}
|
|
51
51
|
<div className="flex items-center text-left md:text-center">
|
|
52
|
-
<Image src={finalBadgeImageUrl} alt="KYD Badge" width={100} height={100} unoptimized />
|
|
53
|
-
<div className='flex flex-col
|
|
52
|
+
<Image src={finalBadgeImageUrl} alt="KYD Badge" width={100} height={100} unoptimized className='p-3'/>
|
|
53
|
+
<div className='flex flex-col items-center justify-center'>
|
|
54
54
|
<h1 className={'font-bold text-lg'} style={{ color: 'var(--text-main)' }}>
|
|
55
55
|
KYD Self-Check™
|
|
56
56
|
</h1>
|