Skip to content

armgit / ente

Public Imported from GitHub
0

πŸ’š End-to-end encrypted cloud for everything.

Update web Ente wordmark

Anand Baburajana27bb0128a56
diff --git a/web/apps/albums/src/app/styles/photoswipe.css b/web/apps/albums/src/app/styles/photoswipe.css
index 6ca38ba76c..bef1ba18b6 100644
--- a/web/apps/albums/src/app/styles/photoswipe.css
+++ b/web/apps/albums/src/app/styles/photoswipe.css
@@ -214,19 +214,19 @@
display: flex;
align-items: center;
justify-content: center;
- margin-top: 21.5px;
+ margin-top: 20.5px;
margin-inline-start: 4px;
margin-inline-end: 0;
width: auto;
min-width: 0;
padding-inline: 0;
- height: 20px;
+ height: 22px;
color: rgb(255 255 255 / 0.85);
}
.pswp-ente-public-album .pswp__button--ente-logo .pswp__ente-logo-svg {
display: block;
- height: 15px;
+ height: 17px;
width: auto;
}
}
diff --git a/web/apps/albums/src/public-album/page/PublicAlbumPage.tsx b/web/apps/albums/src/public-album/page/PublicAlbumPage.tsx
index 8ef01c8a30..5cda12e76d 100644
--- a/web/apps/albums/src/public-album/page/PublicAlbumPage.tsx
+++ b/web/apps/albums/src/public-album/page/PublicAlbumPage.tsx
@@ -719,7 +719,7 @@ export default function PublicAlbumPage() {
) : (
<SpacedRow sx={{ flex: 1 }}>
<EnteLogoLink href="https://ente.com">
- <EnteLogo height={15} />
+ <EnteLogo height={17} />
</EnteLogoLink>
<Stack direction="row" spacing={2}>
<SecondaryActionButton
diff --git a/web/apps/albums/src/public-album/viewer/components/PublicAlbumSingleFileViewer.tsx b/web/apps/albums/src/public-album/viewer/components/PublicAlbumSingleFileViewer.tsx
index 0bbd1c0482..b6c33af5d2 100644
--- a/web/apps/albums/src/public-album/viewer/components/PublicAlbumSingleFileViewer.tsx
+++ b/web/apps/albums/src/public-album/viewer/components/PublicAlbumSingleFileViewer.tsx
@@ -557,12 +557,12 @@ export const PublicAlbumSingleFileViewer: React.FC<
lineHeight: 0,
"& svg": {
width: "auto",
- height: { xs: 15, sm: 19 },
+ height: { xs: 17, sm: 21 },
},
"&:hover": { opacity: 1 },
}}
>
- <EnteLogo height={15} />
+ <EnteLogo height={17} />
</Box>
{isPhotoSwipeContentLoading ? (
<CircularProgress
diff --git a/web/apps/albums/src/public-album/viewer/lib/photoswipe.ts b/web/apps/albums/src/public-album/viewer/lib/photoswipe.ts
index 400a9bcd71..3ae23e61d3 100644
--- a/web/apps/albums/src/public-album/viewer/lib/photoswipe.ts
+++ b/web/apps/albums/src/public-album/viewer/lib/photoswipe.ts
@@ -1,3 +1,7 @@
+import {
+ enteWordmarkSVGHTML,
+ enteWordmarkViewBox,
+} from "ente-base/components/ente-wordmark";
import log from "ente-base/log";
import type { EnteFile } from "ente-media/file";
import { FileType } from "ente-media/file-type";
@@ -2136,8 +2140,8 @@ const bottomRightControlsHTML = () => `
`;
const publicAlbumEnteLogoHTML = () => `
-<svg class="pswp__ente-logo-svg" viewBox="0 0 43 13" fill="currentColor" xmlns="http://www.w3.org/2000/svg">
- <path d="M6.102 12.144C4.998 12.144 4.026 11.928 3.186 11.496C2.358 11.064 1.716 10.476 1.26 9.732C0.804 8.976 0.576 8.118 0.576 7.158C0.576 6.186 0.798 5.328 1.242 4.584C1.698 3.828 2.316 3.24 3.096 2.82C3.876 2.388 4.758 2.172 5.742 2.172C6.69 2.172 7.542 2.376 8.298 2.784C9.066 3.18 9.672 3.756 10.116 4.512C10.56 5.256 10.782 6.15 10.782 7.194C10.782 7.302 10.776 7.428 10.764 7.572C10.752 7.704 10.74 7.83 10.728 7.95H2.862V6.312H9.252L8.172 6.798C8.172 6.294 8.07 5.856 7.866 5.484C7.662 5.112 7.38 4.824 7.02 4.62C6.66 4.404 6.24 4.296 5.76 4.296C5.28 4.296 4.854 4.404 4.482 4.62C4.122 4.824 3.84 5.118 3.636 5.502C3.432 5.874 3.33 6.318 3.33 6.834V7.266C3.33 7.794 3.444 8.262 3.672 8.67C3.912 9.066 4.242 9.372 4.662 9.588C5.094 9.792 5.598 9.894 6.174 9.894C6.69 9.894 7.14 9.816 7.524 9.66C7.92 9.504 8.28 9.27 8.604 8.958L10.098 10.578C9.654 11.082 9.096 11.472 8.424 11.748C7.752 12.012 6.978 12.144 6.102 12.144ZM18.5375 2.172C19.3055 2.172 19.9895 2.328 20.5895 2.64C21.2015 2.94 21.6815 3.408 22.0295 4.044C22.3775 4.668 22.5515 5.472 22.5515 6.456V12H19.7435V6.888C19.7435 6.108 19.5695 5.532 19.2215 5.16C18.8855 4.788 18.4055 4.602 17.7815 4.602C17.3375 4.602 16.9355 4.698 16.5755 4.89C16.2275 5.07 15.9515 5.352 15.7475 5.736C15.5555 6.12 15.4595 6.612 15.4595 7.212V12H12.6515V2.316H15.3335V4.998L14.8295 4.188C15.1775 3.54 15.6755 3.042 16.3235 2.694C16.9715 2.346 17.7095 2.172 18.5375 2.172ZM29.0568 12.144C27.9168 12.144 27.0288 11.856 26.3928 11.28C25.7568 10.692 25.4388 9.822 25.4388 8.67V0.174H28.2468V8.634C28.2468 9.042 28.3548 9.36 28.5708 9.588C28.7868 9.804 29.0808 9.912 29.4528 9.912C29.8968 9.912 30.2748 9.792 30.5868 9.552L31.3428 11.532C31.0548 11.736 30.7068 11.892 30.2988 12C29.9028 12.096 29.4888 12.144 29.0568 12.144ZM23.9448 4.692V2.532H30.6588V4.692H23.9448ZM37.4262 12.144C36.3222 12.144 35.3502 11.928 34.5102 11.496C33.6822 11.064 33.0402 10.476 32.5842 9.732C32.1282 8.976 31.9002 8.118 31.9002 7.158C31.9002 6.186 32.1222 5.328 32.5662 4.584C33.0222 3.828 33.6402 3.24 34.4202 2.82C35.2002 2.388 36.0822 2.172 37.0662 2.172C38.0142 2.172 38.8662 2.376 39.6222 2.784C40.3902 3.18 40.9962 3.756 41.4402 4.512C41.8842 5.256 42.1062 6.15 42.1062 7.194C42.1062 7.302 42.1002 7.428 42.0882 7.572C42.0762 7.704 42.0642 7.83 42.0522 7.95H34.1862V6.312H40.5762L39.4962 6.798C39.4962 6.294 39.3942 5.856 39.1902 5.484C38.9862 5.112 38.7042 4.824 38.3442 4.62C37.9842 4.404 37.5642 4.296 37.0842 4.296C36.6042 4.296 36.1782 4.404 35.8062 4.62C35.4462 4.824 35.1642 5.118 34.9602 5.502C34.7562 5.874 34.6542 6.318 34.6542 6.834V7.266C34.6542 7.794 34.7682 8.262 34.9962 8.67C35.2362 9.066 35.5662 9.372 35.9862 9.588C36.4182 9.792 36.9222 9.894 37.4982 9.894C38.0142 9.894 38.4642 9.816 38.8482 9.66C39.2442 9.504 39.6042 9.27 39.9282 8.958L41.4222 10.578C40.9782 11.082 40.4202 11.472 39.7482 11.748C39.0762 12.012 38.3022 12.144 37.4262 12.144Z" />
+<svg class="pswp__ente-logo-svg" viewBox="${enteWordmarkViewBox}" xmlns="http://www.w3.org/2000/svg">
+ ${enteWordmarkSVGHTML}
</svg>
`;
diff --git a/web/packages/base/components/EnteLogo.tsx b/web/packages/base/components/EnteLogo.tsx
index 1d77de41fc..c3cd69e1d0 100644
--- a/web/packages/base/components/EnteLogo.tsx
+++ b/web/packages/base/components/EnteLogo.tsx
@@ -1,5 +1,6 @@
import { styled } from "@mui/material";
import React from "react";
+import { enteWordmarkPaths, enteWordmarkViewBox } from "./ente-wordmark";
interface EnteLogoProps {
/**
@@ -11,7 +12,7 @@ interface EnteLogoProps {
}
/**
- * The Ente logo ("ente" in Montserrat), as an inline SVG.
+ * The Ente wordmark, as an inline SVG.
*
* Having it as an inline SVG has two advantages:
*
@@ -24,22 +25,23 @@ interface EnteLogoProps {
*/
export const EnteLogo: React.FC<EnteLogoProps> = ({ height }) => (
<svg
- height={height ?? "18"}
- viewBox="0 0 43 13"
- fill="currentColor"
+ height={height ?? 18}
+ viewBox={enteWordmarkViewBox}
xmlns="http://www.w3.org/2000/svg"
>
- <path d="M6.102 12.144C4.998 12.144 4.026 11.928 3.186 11.496C2.358 11.064 1.716 10.476 1.26 9.732C0.804 8.976 0.576 8.118 0.576 7.158C0.576 6.186 0.798 5.328 1.242 4.584C1.698 3.828 2.316 3.24 3.096 2.82C3.876 2.388 4.758 2.172 5.742 2.172C6.69 2.172 7.542 2.376 8.298 2.784C9.066 3.18 9.672 3.756 10.116 4.512C10.56 5.256 10.782 6.15 10.782 7.194C10.782 7.302 10.776 7.428 10.764 7.572C10.752 7.704 10.74 7.83 10.728 7.95H2.862V6.312H9.252L8.172 6.798C8.172 6.294 8.07 5.856 7.866 5.484C7.662 5.112 7.38 4.824 7.02 4.62C6.66 4.404 6.24 4.296 5.76 4.296C5.28 4.296 4.854 4.404 4.482 4.62C4.122 4.824 3.84 5.118 3.636 5.502C3.432 5.874 3.33 6.318 3.33 6.834V7.266C3.33 7.794 3.444 8.262 3.672 8.67C3.912 9.066 4.242 9.372 4.662 9.588C5.094 9.792 5.598 9.894 6.174 9.894C6.69 9.894 7.14 9.816 7.524 9.66C7.92 9.504 8.28 9.27 8.604 8.958L10.098 10.578C9.654 11.082 9.096 11.472 8.424 11.748C7.752 12.012 6.978 12.144 6.102 12.144ZM18.5375 2.172C19.3055 2.172 19.9895 2.328 20.5895 2.64C21.2015 2.94 21.6815 3.408 22.0295 4.044C22.3775 4.668 22.5515 5.472 22.5515 6.456V12H19.7435V6.888C19.7435 6.108 19.5695 5.532 19.2215 5.16C18.8855 4.788 18.4055 4.602 17.7815 4.602C17.3375 4.602 16.9355 4.698 16.5755 4.89C16.2275 5.07 15.9515 5.352 15.7475 5.736C15.5555 6.12 15.4595 6.612 15.4595 7.212V12H12.6515V2.316H15.3335V4.998L14.8295 4.188C15.1775 3.54 15.6755 3.042 16.3235 2.694C16.9715 2.346 17.7095 2.172 18.5375 2.172ZM29.0568 12.144C27.9168 12.144 27.0288 11.856 26.3928 11.28C25.7568 10.692 25.4388 9.822 25.4388 8.67V0.174H28.2468V8.634C28.2468 9.042 28.3548 9.36 28.5708 9.588C28.7868 9.804 29.0808 9.912 29.4528 9.912C29.8968 9.912 30.2748 9.792 30.5868 9.552L31.3428 11.532C31.0548 11.736 30.7068 11.892 30.2988 12C29.9028 12.096 29.4888 12.144 29.0568 12.144ZM23.9448 4.692V2.532H30.6588V4.692H23.9448ZM37.4262 12.144C36.3222 12.144 35.3502 11.928 34.5102 11.496C33.6822 11.064 33.0402 10.476 32.5842 9.732C32.1282 8.976 31.9002 8.118 31.9002 7.158C31.9002 6.186 32.1222 5.328 32.5662 4.584C33.0222 3.828 33.6402 3.24 34.4202 2.82C35.2002 2.388 36.0822 2.172 37.0662 2.172C38.0142 2.172 38.8662 2.376 39.6222 2.784C40.3902 3.18 40.9962 3.756 41.4402 4.512C41.8842 5.256 42.1062 6.15 42.1062 7.194C42.1062 7.302 42.1002 7.428 42.0882 7.572C42.0762 7.704 42.0642 7.83 42.0522 7.95H34.1862V6.312H40.5762L39.4962 6.798C39.4962 6.294 39.3942 5.856 39.1902 5.484C38.9862 5.112 38.7042 4.824 38.3442 4.62C37.9842 4.404 37.5642 4.296 37.0842 4.296C36.6042 4.296 36.1782 4.404 35.8062 4.62C35.4462 4.824 35.1642 5.118 34.9602 5.502C34.7562 5.874 34.6542 6.318 34.6542 6.834V7.266C34.6542 7.794 34.7682 8.262 34.9962 8.67C35.2362 9.066 35.5662 9.372 35.9862 9.588C36.4182 9.792 36.9222 9.894 37.4982 9.894C38.0142 9.894 38.4642 9.816 38.8482 9.66C39.2442 9.504 39.6042 9.27 39.9282 8.958L41.4222 10.578C40.9782 11.082 40.4202 11.472 39.7482 11.748C39.0762 12.012 38.3022 12.144 37.4262 12.144Z" />
+ {enteWordmarkPaths.map((d, index) => (
+ <path key={index} d={d} fill="currentColor" />
+ ))}
</svg>
);
/**
- * A container for {@link EnteLogo} that reset the line height to vertically
+ * A container for {@link EnteLogo} that resets the line height to vertically
* center the logo within the surrounding context.
*
* By default, the line height causes the SVG to have an extra space at the
* bottom. Removing it allows the SVG contents to be centered using its inherent
- * sizing. his is a convenience container that resets the line height, and also
+ * sizing. This is a convenience container that resets the line height, and also
* takes the {@link sx} prop to allow for easy tweaking of other styling of the
* container without touching the SVG.
*/
diff --git a/web/packages/base/components/ente-wordmark.ts b/web/packages/base/components/ente-wordmark.ts
new file mode 100644
index 0000000000..061f740761
--- /dev/null
+++ b/web/packages/base/components/ente-wordmark.ts
@@ -0,0 +1,15 @@
+/**
+ * Shared geometry for the Ente wordmark across React and non-React surfaces.
+ */
+export const enteWordmarkViewBox = "0 0 844 264";
+
+export const enteWordmarkPaths = [
+ "M225.65 175.02H75.0694C82.344 192.768 98.6376 201.649 123.957 201.649C139.382 201.649 152.621 196.554 163.674 186.369L216.051 223.039C194.807 250.103 163.53 263.632 122.213 263.632C85.2607 263.632 55.5763 252.861 33.1734 231.327C11.0601 209.503 0 181.998 0 148.824C0 115.651 10.9084 88.442 32.7321 66.3218C54.5558 44.2085 82.344 33.1484 116.097 33.1484C149.849 33.1484 175.603 44.0637 196.841 65.8874C218.085 87.4215 228.704 114.775 228.704 147.949C228.704 158.133 227.684 167.152 225.65 175.013V175.02ZM74.1937 124.822H157.993C152.463 104.453 138.789 94.2686 116.965 94.2686C95.1417 94.2686 80.3029 104.453 74.1937 124.822Z",
+ "M372.127 33.1613C396.281 33.1613 415.63 41.4564 430.179 58.0397C445.018 74.3333 452.437 97.3223 452.437 127.007V257.521H379.981V136.171C379.981 125.11 377.071 116.671 371.251 110.851C365.432 104.742 357.426 101.687 347.242 101.687C335.892 101.687 327.018 105.176 320.619 112.161C314.51 118.856 311.448 128.606 311.448 141.404V257.515H238.992V39.2568H311.448V61.0805C324.542 42.4562 344.767 33.1406 372.12 33.1406L372.127 33.1613Z",
+ "M611.041 39.2689V108.677H565.649V171.969C565.649 181.285 568.849 187.249 575.247 189.87C581.943 192.2 593.872 192.924 611.041 192.056V257.534C567.98 262.774 537.42 258.844 519.381 245.749C501.922 232.069 493.193 208.066 493.193 173.728V108.691H460.461V39.2827H493.193V0H565.649V39.2827H611.041V39.2689Z",
+ "M840.438 175.02H689.858C697.132 192.768 713.426 201.649 738.739 201.649C754.163 201.649 767.402 196.554 778.456 186.369L830.833 223.039C809.588 250.103 778.311 263.632 736.994 263.632C700.035 263.632 670.358 252.861 647.955 231.327C625.841 209.503 614.781 181.998 614.781 148.824C614.781 115.651 625.69 88.442 647.52 66.3218C669.344 44.2085 697.132 33.1484 730.885 33.1484C764.637 33.1484 790.391 44.0637 811.629 65.8874C832.873 87.4215 843.492 114.775 843.492 147.949C843.492 158.133 842.472 167.152 840.438 175.013V175.02ZM688.982 124.822H772.781C767.258 104.453 753.577 94.2686 731.754 94.2686C709.93 94.2686 695.091 104.453 688.982 124.822Z",
+] as const;
+
+export const enteWordmarkSVGHTML = enteWordmarkPaths
+ .map((d) => `<path d="${d}" fill="currentColor" />`)
+ .join("");