mirror of
https://github.com/m3y54m/Embedded-Engineering-Roadmap.git
synced 2026-10-10 08:18:16 +03:00
style(site): match the logo height to the license badge in the map footer
This commit is contained in:
+4
-3
@@ -206,11 +206,12 @@ export function createMapView({ root, plan, data, build, onSelect }) {
|
||||
};
|
||||
creditLine(fy + 35, 'Creator & Maintainer: ', CREDITS.author);
|
||||
if (build) creditLine(fy + 53, 'Revision: ', `${build.version} · Last update: ${build.date}`);
|
||||
const logoSize = 52;
|
||||
const badge = { w: 103, h: 36 };
|
||||
svg('image', { href: 'assets/logo.svg', x: fr - logoSize, y: fy, width: logoSize, height: logoSize }, credits);
|
||||
const logoSize = badge.h;
|
||||
const iconY = fy + 9;
|
||||
svg('image', { href: 'assets/logo.svg', x: fr - logoSize, y: iconY, width: logoSize, height: logoSize }, credits);
|
||||
const badgeX = fr - logoSize - SPACE - badge.w;
|
||||
svg('image', { href: 'assets/cc-by-sa.svg', x: badgeX, y: fy + (logoSize - badge.h) / 2, width: badge.w, height: badge.h }, link(CREDITS.licenseUrl));
|
||||
svg('image', { href: 'assets/cc-by-sa.svg', x: badgeX, y: iconY, width: badge.w, height: badge.h }, link(CREDITS.licenseUrl));
|
||||
const licenseText = svg('text', { x: badgeX - 14, y: fy + 22, 'text-anchor': 'end', class: 'credit-text' }, link(CREDITS.licenseUrl));
|
||||
licenseText.textContent = 'This work is licensed under the Creative Commons';
|
||||
const licenseText2 = svg('text', { x: badgeX - 14, y: fy + 40, 'text-anchor': 'end', class: 'credit-text' }, link(CREDITS.licenseUrl));
|
||||
|
||||
Reference in New Issue
Block a user