diff --git a/logo/just-icon.png b/logo/just-icon.png index d42b0ce..19ed2f5 100644 Binary files a/logo/just-icon.png and b/logo/just-icon.png differ diff --git a/logo/just-icon.svg b/logo/just-icon.svg index 213856d..b90b3d4 100644 --- a/logo/just-icon.svg +++ b/logo/just-icon.svg @@ -1,8 +1,8 @@ { xmlns="http://www.w3.org/2000/svg" strokeLinecap="round" strokeLinejoin="round" - style={{ fontSize: "35", fontFamily: font }} - textAnchor="middle" - dominantBaseline="middle" + style={text ? { fontSize: "35", fontFamily: font } : undefined} + textAnchor={text ? "middle" : undefined} + dominantBaseline={text ? "middle" : undefined} > - + {text && ( + + )} {/* pulsars */} @@ -146,26 +149,28 @@ const Logo = () => { {/* text */} - - - co - - - S - - - M - - - ic - - - Q - - - C - - + {text && ( + + + co + + + S + + + M + + + ic + + + Q + + + C + + + )} ); }; @@ -222,13 +227,16 @@ const fitViewBox = () => { const padding = 1; const svg = document.querySelector("svg"); let { x, y, width, height } = svg.getBBox(); - const viewBox = [ - x - padding, - y - padding, - width + 2 * padding, - height + 2 * padding, - ] - .map(Math.round) - .join(" "); + x -= padding; + y -= padding; + width += 2 * padding; + height += 2 * padding; + x -= (round(width) - width) / 2; + y -= (round(height) - height) / 2; + width = round(width); + height = round(height); + const viewBox = [x, y, width, height].map(Math.round).join(" "); svg.setAttribute("viewBox", viewBox); }; + +const round = (value, factor = 10) => Math.ceil(value / factor) * factor; diff --git a/logo/source/src/styles.css b/logo/source/src/styles.css index 0de3b97..0ee4b9b 100644 --- a/logo/source/src/styles.css +++ b/logo/source/src/styles.css @@ -1,3 +1,3 @@ -body { - /* background: black; */ +svg { + box-shadow: 0 0 5px #0002; } diff --git a/logo/with-text-for-dark-bg.png b/logo/with-text-for-dark-bg.png index 9055f54..7b826d6 100644 Binary files a/logo/with-text-for-dark-bg.png and b/logo/with-text-for-dark-bg.png differ diff --git a/logo/with-text-for-dark-bg.svg b/logo/with-text-for-dark-bg.svg index fa5e644..78eb70b 100644 --- a/logo/with-text-for-dark-bg.svg +++ b/logo/with-text-for-dark-bg.svg @@ -1,11 +1,11 @@ diff --git a/logo/with-text-for-light-bg.png b/logo/with-text-for-light-bg.png index d49a225..a9c13f1 100644 Binary files a/logo/with-text-for-light-bg.png and b/logo/with-text-for-light-bg.png differ diff --git a/logo/with-text-for-light-bg.svg b/logo/with-text-for-light-bg.svg index 583eb0f..e611102 100644 --- a/logo/with-text-for-light-bg.svg +++ b/logo/with-text-for-light-bg.svg @@ -1,11 +1,11 @@