Skip to content

Commit 3f04420

Browse files
committed
fix badges
1 parent cdb3cc0 commit 3f04420

1 file changed

Lines changed: 5 additions & 5 deletions

File tree

utils/baseline-status.mjs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -25,20 +25,20 @@ export function baselineStatus(feature) {
2525

2626
export function baselineIcon(status, year) {
2727
if (status === 'Experimental') {
28-
return `<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 111 62"><title>${status}</title><path d="m30.833 0 18.5 18.6-6.166 6.2-18.5-18.6L30.833 0Z" fill="#d30038"/><path d="M86.333 6.2 111 31 86.333 55.8l-6.166-6.2 18.5-18.6-18.5-18.6 6.166-6.2Z" fill="#f8b7c8"/><path d="m67.833 37.2-6.166 6.2 18.5 18.6 6.166-6.2-18.5-18.6Z" fill="#d30038"/><path d="m24.667 6.2 6.166 6.2-18.5 18.6 18.5 18.6-6.166 6.2L0 31 24.667 6.2Z" fill="#f8b7c8"/><path d="m80.167 0 6.166 6.2-55.5 55.8-6.166-6.2L80.167 0Z" fill="#d30038"/></svg>`;
28+
return `<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 111 62" width="111" height="62"><title>${status}</title><path d="m30.833 0 18.5 18.6-6.166 6.2-18.5-18.6L30.833 0Z" fill="#d30038"/><path d="M86.333 6.2 111 31 86.333 55.8l-6.166-6.2 18.5-18.6-18.5-18.6 6.166-6.2Z" fill="#f8b7c8"/><path d="m67.833 37.2-6.166 6.2 18.5 18.6 6.166-6.2-18.5-18.6Z" fill="#d30038"/><path d="m24.667 6.2 6.166 6.2-18.5 18.6 18.5 18.6-6.166 6.2L0 31 24.667 6.2Z" fill="#f8b7c8"/><path d="m80.167 0 6.166 6.2-55.5 55.8-6.166-6.2L80.167 0Z" fill="#d30038"/></svg>`;
2929
}
3030

3131
if (status === 'Limited availability') {
32-
return `<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 111 62"><title>${status}</title><path d="m30.833 0 18.5 18.6-6.166 6.2-18.5-18.6L30.833 0Z" fill="#D78000"/><path d="M86.333 6.2 111 31 86.333 55.8l-6.166-6.2 18.5-18.6-18.5-18.6 6.166-6.2Z" fill="#E5D0AC"/><path d="m67.833 37.2-6.166 6.2 18.5 18.6 6.166-6.2-18.5-18.6Z" fill="#D78000"/><path d="m24.667 6.2 6.166 6.2-18.5 18.6 18.5 18.6-6.166 6.2L0 31 24.667 6.2Z" fill="#E5D0AC"/><path d="m80.167 0 6.166 6.2-55.5 55.8-6.166-6.2L80.167 0Z" fill="#D78000"/></svg>`;
32+
return `<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 111 62" width="111" height="62"><title>${status}</title><path d="m30.833 0 18.5 18.6-6.166 6.2-18.5-18.6L30.833 0Z" fill="#D78000"/><path d="M86.333 6.2 111 31 86.333 55.8l-6.166-6.2 18.5-18.6-18.5-18.6 6.166-6.2Z" fill="#E5D0AC"/><path d="m67.833 37.2-6.166 6.2 18.5 18.6 6.166-6.2-18.5-18.6Z" fill="#D78000"/><path d="m24.667 6.2 6.166 6.2-18.5 18.6 18.5 18.6-6.166 6.2L0 31 24.667 6.2Z" fill="#E5D0AC"/><path d="m80.167 0 6.166 6.2-55.5 55.8-6.166-6.2L80.167 0Z" fill="#D78000"/></svg>`;
3333
}
3434

3535
if (status.startsWith('Newly available')) {
36-
return `<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 232 62"><title>${status}</title><g><path d="M30.833 0 37 6.1l-6.167 6.1-6.166-6.1L30.833 0Zm12.334 12.2 6.166 6.1-6.166 6.1L37 18.3l6.167-6.1Zm49.333 0 6.167 6.1-6.167 6.1-6.167-6.1 6.167-6.1Zm12.333 12.2L111 30.5l-6.167 6.1-6.166-6.1 6.166-6.1ZM92.5 36.6l6.167 6.1-6.167 6.1-6.167-6.1 6.167-6.1ZM80.167 48.8l6.166 6.1-6.166 6.1L74 54.9l6.167-6.1ZM67.833 36.6 74 42.7l-6.167 6.1-6.166-6.1 6.166-6.1ZM18.5 12.2l6.167 6.1-6.167 6.1-6.167-6.1 6.167-6.1Z" fill="#A9C1EA"/><path d="m80.167 0 6.166 6.1-55.5 54.9L0 30.5l6.167-6.1 24.666 24.4L80.167 0Z" fill="#1671F1"/><text fill="#1671F1" style="font-family: monospace; font-size: 45px;" x="125" y="34">${year}</text></g></svg>`;
36+
return `<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 232 62" width="232" height="62"><title>${status}</title><g><path d="M30.833 0 37 6.1l-6.167 6.1-6.166-6.1L30.833 0Zm12.334 12.2 6.166 6.1-6.166 6.1L37 18.3l6.167-6.1Zm49.333 0 6.167 6.1-6.167 6.1-6.167-6.1 6.167-6.1Zm12.333 12.2L111 30.5l-6.167 6.1-6.166-6.1 6.166-6.1ZM92.5 36.6l6.167 6.1-6.167 6.1-6.167-6.1 6.167-6.1ZM80.167 48.8l6.166 6.1-6.166 6.1L74 54.9l6.167-6.1ZM67.833 36.6 74 42.7l-6.167 6.1-6.166-6.1 6.166-6.1ZM18.5 12.2l6.167 6.1-6.167 6.1-6.167-6.1 6.167-6.1Z" fill="#A9C1EA"/><path d="m80.167 0 6.166 6.1-55.5 54.9L0 30.5l6.167-6.1 24.666 24.4L80.167 0Z" fill="#1671F1"/><text fill="#1671F1" style="font-family: monospace; font-size: 45px;" x="125" y="34">${year}</text></g></svg>`;
3737
}
3838

3939
if (status === 'Widely available') {
40-
return `<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 111 62"><title>${status}</title><g><path d="M30.833 0 37 6.1l-6.167 6.1-6.166-6.1L30.833 0Zm12.334 12.2 6.166 6.1-6.166 6.1L37 18.3l6.167-6.1Zm49.333 0 6.167 6.1-6.167 6.1-6.167-6.1 6.167-6.1Zm12.333 12.2L111 30.5l-6.167 6.1-6.166-6.1 6.166-6.1ZM92.5 36.6l6.167 6.1-6.167 6.1-6.167-6.1 6.167-6.1ZM80.167 48.8l6.166 6.1-6.166 6.1L74 54.9l6.167-6.1ZM67.833 36.6 74 42.7l-6.167 6.1-6.166-6.1 6.166-6.1ZM18.5 12.2l6.167 6.1-6.167 6.1-6.167-6.1 6.167-6.1Z" fill="#A9C1EA"/><path d="m80.167 0 6.166 6.1-55.5 54.9L0 30.5l6.167-6.1 24.666 24.4L80.167 0Z" fill="#1671F1"/></g></svg>`;
40+
return `<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 111 62" width="111" height="62"><title>${status}</title><g><path d="M30.833 0 37 6.1l-6.167 6.1-6.166-6.1L30.833 0Zm12.334 12.2 6.166 6.1-6.166 6.1L37 18.3l6.167-6.1Zm49.333 0 6.167 6.1-6.167 6.1-6.167-6.1 6.167-6.1Zm12.333 12.2L111 30.5l-6.167 6.1-6.166-6.1 6.166-6.1ZM92.5 36.6l6.167 6.1-6.167 6.1-6.167-6.1 6.167-6.1ZM80.167 48.8l6.166 6.1-6.166 6.1L74 54.9l6.167-6.1ZM67.833 36.6 74 42.7l-6.167 6.1-6.166-6.1 6.166-6.1ZM18.5 12.2l6.167 6.1-6.167 6.1-6.167-6.1 6.167-6.1Z" fill="#A9C1EA"/><path d="m80.167 0 6.166 6.1-55.5 54.9L0 30.5l6.167-6.1 24.666 24.4L80.167 0Z" fill="#1671F1"/></g></svg>`;
4141
}
4242

43-
return `<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 232 62"><title>${status}</title><g><path d="m86.333 6.2-6.166 6.2 18.5 18.6-18.5 18.6-12.334-12.4-6.166 6.2 18.5 18.6L111 31 86.333 6.2ZM30.833 0 6.167 24.8l6.166 6.2 18.5-18.6 12.334 12.4 6.166-6.2L30.833 0Z" fill="#B9D8BF"/><path d="m80.167 0 6.166 6.2-55.5 55.8L0 31l6.167-6.2 24.666 24.8L80.167 0Z" fill="#148936"/><text fill="#148936" style="font-family: monospace; font-size: 45px;" x="125" y="34">${year}</text></g></svg>`;
43+
return `<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 232 62" width="232" height="62"><title>${status}</title><g><path d="m86.333 6.2-6.166 6.2 18.5 18.6-18.5 18.6-12.334-12.4-6.166 6.2 18.5 18.6L111 31 86.333 6.2ZM30.833 0 6.167 24.8l6.166 6.2 18.5-18.6 12.334 12.4 6.166-6.2L30.833 0Z" fill="#B9D8BF"/><path d="m80.167 0 6.166 6.2-55.5 55.8L0 31l6.167-6.2 24.666 24.8L80.167 0Z" fill="#148936"/><text fill="#148936" style="font-family: monospace; font-size: 45px;" x="125" y="34">${year}</text></g></svg>`;
4444
}

0 commit comments

Comments
 (0)