kyd-shared-badge 0.3.126 → 0.3.127
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
|
@@ -217,7 +217,7 @@ const SharedBadgeDisplay = ({ badgeData, chatProps, headless, selfCheck = false,
|
|
|
217
217
|
{/* Quadrant layout */}
|
|
218
218
|
<div className={'grid grid-cols-1 md:grid-cols-2 gap-6'}>
|
|
219
219
|
{/* Top-left: Name, countries, badge image handled by ReportHeader */}
|
|
220
|
-
<div className={`${hasEnterpriseMatch ? '' : 'md:col-span-2'}`}>
|
|
220
|
+
<div className={`${hasEnterpriseMatch ? 'h-full' : 'md:col-span-2'}`}>
|
|
221
221
|
<ReportHeader
|
|
222
222
|
badgeId={badgeId}
|
|
223
223
|
developerName={badgeData.developerName}
|
|
@@ -77,7 +77,7 @@ const ReportHeader = ({ badgeId, developerName, updatedAt, score = 0, badgeImage
|
|
|
77
77
|
|
|
78
78
|
return (
|
|
79
79
|
<div
|
|
80
|
-
className={'p-6 rounded-md border'}
|
|
80
|
+
className={'p-6 rounded-md border h-full'}
|
|
81
81
|
style={{ backgroundColor: 'var(--content-card-background)', borderColor: 'var(--icon-button-secondary)', backgroundImage: `linear-gradient(${tint}, ${tint})` }}
|
|
82
82
|
>
|
|
83
83
|
{(() => {
|
|
@@ -99,7 +99,7 @@ const ReportHeader = ({ badgeId, developerName, updatedAt, score = 0, badgeImage
|
|
|
99
99
|
</div>
|
|
100
100
|
);
|
|
101
101
|
})()}
|
|
102
|
-
<div className={`flex gap-3 ${rightBadgeLayout ? 'flex-row items-center justify-between' : 'flex-col'}`}>
|
|
102
|
+
<div className={`flex gap-3 ${rightBadgeLayout ? 'flex-row items-center justify-between' : 'flex-col h-full'}`}>
|
|
103
103
|
{/* Info section: Title, Candidate, Details and Summary */}
|
|
104
104
|
<div className={`w-full ${rightBadgeLayout ? 'md:flex-1' : ''}`}>
|
|
105
105
|
<div className='space-y-1'>
|
|
@@ -139,7 +139,7 @@ const ReportHeader = ({ badgeId, developerName, updatedAt, score = 0, badgeImage
|
|
|
139
139
|
{sources.length > 0 && (
|
|
140
140
|
<p className='flex items-center gap-2 mt-2 text-sm'>
|
|
141
141
|
<a href="#appendix-connected" className={'inline-flex items-center gap-2 group'} style={{ color: 'var(--text-secondary)' }}>
|
|
142
|
-
<span className={'font-semibold'}>Sources:</span>
|
|
142
|
+
<span className={'font-semibold'}>Sources Shared:</span>
|
|
143
143
|
<span className={'flex items-center gap-2'}>
|
|
144
144
|
{sources.map((provider, idx) => (
|
|
145
145
|
<span key={`${provider}-${idx}`} className={'text-sm'} style={{ color: 'var(--text-main)' }}>
|
|
@@ -187,8 +187,8 @@ const ReportHeader = ({ badgeId, developerName, updatedAt, score = 0, badgeImage
|
|
|
187
187
|
</div>
|
|
188
188
|
|
|
189
189
|
{/* Badge Image with robust centered overlay */}
|
|
190
|
-
<div className={`flex items-center ${rightBadgeLayout ? 'md:justify-end h-20' : 'justify-center w-full mt-4'} `}>
|
|
191
|
-
<div className={`relative w-full ${rightBadgeLayout ? 'max-w-[85px]' : 'px-28'} select-none`}>
|
|
190
|
+
<div className={`flex items-center ${rightBadgeLayout ? 'md:justify-end h-20' : 'justify-center w-full h-full mt-4'} `}>
|
|
191
|
+
<div className={`relative w-full ${rightBadgeLayout ? 'max-w-[85px]' : 'px-24 sm:px-6 lg:px-12 xl:px-28'} select-none`}>
|
|
192
192
|
<Image
|
|
193
193
|
src={finalBadgeImageUrl}
|
|
194
194
|
alt="KYD Badge"
|
|
@@ -198,7 +198,7 @@ const ReportHeader = ({ badgeId, developerName, updatedAt, score = 0, badgeImage
|
|
|
198
198
|
className='w-full h-auto pointer-events-none'
|
|
199
199
|
/>
|
|
200
200
|
<div className={`pointer-events-none absolute left-1/2 -translate-x-1/2 -translate-y-1/2 ${rightBadgeLayout ? 'top-[72%]' : 'top-[69%]'}`}>
|
|
201
|
-
<div className={`font-extrabold text-black ${rightBadgeLayout ? 'text-xs' : 'text-3xl'}`}>
|
|
201
|
+
<div className={`font-extrabold text-black ${rightBadgeLayout ? 'text-xs' : 'text-base sm:text-2xl md:text-2xl lg:text-3xl'}`}>
|
|
202
202
|
{Math.round(score || 0)}%
|
|
203
203
|
</div>
|
|
204
204
|
</div>
|
|
@@ -56,7 +56,13 @@ const SkillsAppendixTable = ({ skillsAll }: { skillsAll?: SkillsAll }) => {
|
|
|
56
56
|
<div key={cat}>
|
|
57
57
|
<h5 id={`appendix-skills-cat-${slugify(cat)}`} className={'text-base font-semibold mb-2'} style={{ color: 'var(--text-main)' }}>{cat}</h5>
|
|
58
58
|
<div className={'overflow-auto rounded-lg border'} style={{ borderColor: 'var(--icon-button-secondary)' }}>
|
|
59
|
-
<table className="min-w-full text-sm">
|
|
59
|
+
<table className="min-w-full text-sm" style={{ tableLayout: 'fixed', width: '100%' }}>
|
|
60
|
+
<colgroup>
|
|
61
|
+
<col style={{ width: '40%' }} />
|
|
62
|
+
<col style={{ width: '20%' }} />
|
|
63
|
+
<col style={{ width: '20%' }} />
|
|
64
|
+
<col style={{ width: '20%' }} />
|
|
65
|
+
</colgroup>
|
|
60
66
|
<thead>
|
|
61
67
|
<tr style={{ backgroundColor: 'var(--content-card-background)' }}>
|
|
62
68
|
<th className="text-left p-3" style={{ color: 'var(--text-secondary)' }}>Skill</th>
|