Skip to content

Commit 3f9fbca

Browse files
feat: update badge text and width constants for research program labels
1 parent 16980d9 commit 3f9fbca

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

‎src/app/api/badge/[slug]/route.js‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,13 +37,13 @@ export async function GET(request, { params }) {
3737
resource.isOpenData != null;
3838

3939
const leftText = "Yourself to Science";
40-
const rightText = isComplete ? "Complete Data Source" : "Verified Data Source";
40+
const rightText = isComplete ? "Complete Research Program" : "Indexed Research Program";
4141

4242
// Approximate width calculation (standard fonts)
4343
const logoWidth = 24;
4444
const leftTextWidth = 185; // Increased to fit "Yourself to Science™" comfortably
4545
const leftWidth = logoWidth + leftTextWidth;
46-
const rightWidth = isComplete ? 135 : 130;
46+
const rightWidth = isComplete ? 170 : 165;
4747
const totalWidth = leftWidth + rightWidth;
4848

4949
// Official Theme Colors

0 commit comments

Comments
 (0)