π End-to-end encrypted cloud for everything.
Dart 2faandroidauthye2eeencryptionend-to-end-encryptionfluttergolanggoogle-photosgoogle-photos-alternativeiosopensourcephotosprivacyprivacy-toolstypescriptzero-knowledge
[web][albums] Update uploader name illustration
AswinAsok4858ec5517c1
diff --git a/web/apps/albums/src/public-album/upload/components/UploaderNameInput.tsx b/web/apps/albums/src/public-album/upload/components/UploaderNameInput.tsxindex d0110f7854..77a6188e85 100644--- a/web/apps/albums/src/public-album/upload/components/UploaderNameInput.tsx+++ b/web/apps/albums/src/public-album/upload/components/UploaderNameInput.tsx@@ -1,5 +1,3 @@-import { User03Icon } from "@hugeicons/core-free-icons";-import { HugeiconsIcon } from "@hugeicons/react";import CloseIcon from "@mui/icons-material/Close";import {Box,@@ -16,53 +14,10 @@ import { useFormik } from "formik";import { t } from "i18next";import React from "react";-const SparkleTopRight: React.FC = () => (- <svg- width="14"- height="16"- viewBox="0 0 20 22"- fill="none"- xmlns="http://www.w3.org/2000/svg"- style={{ position: "absolute", top: 0, right: 8 }}- >- <path- d="M19.728 9.21189C15.334 9.91374 11.912 12.6353 11.37 16.3181C11.912 12.6353 9.421 9.04853 5.4114 7.10627C9.806 6.40442 13.228 3.68284 13.77 7.55054e-05C13.228 3.68284 15.719 7.26962 19.728 9.21189Z"- fill="#08C225"- />- </svg>-);--const SparkleBottomRight: React.FC = () => (- <svg- width="22"- height="26"- viewBox="0 0 32 36"- fill="none"- xmlns="http://www.w3.org/2000/svg"- style={{ position: "absolute", bottom: 0, right: -8 }}- >- <path- d="M31.579 17.9746C23.591 18.7003 17.114 23.1692 15.689 29.722C17.114 23.1692 13.077 16.4145 6.1117 12.438C14.099 11.7122 20.576 7.2434 22.001 0.6902C20.576 7.2434 24.613 13.9981 31.579 17.9746Z"- fill="#08C225"- />- </svg>-);--const SparkleBottomLeft: React.FC = () => (- <svg- width="18"- height="16"- viewBox="0 0 26 22"- fill="none"- xmlns="http://www.w3.org/2000/svg"- style={{ position: "absolute", bottom: 8, left: -8 }}- >- <path- d="M25.9639 10.8477C19.9399 13.182 15.9104 18.0874 16.263 23.48C15.9104 18.0874 11.2832 13.7544 4.99991 12.2184C11.0238 9.884 15.0533 4.9787 14.7007 -0.4139C15.0533 4.9787 19.6805 9.3117 25.9639 10.8477Z"- fill="#08C225"- />- </svg>-);+const ENTER_NAME_ILLUSTRATION_SRC = new URL(+ "./enter-name.svg",+ import.meta.url,+).toString();type UploaderNameInputProps = ModalVisibilityProps & {uploaderName: string;@@ -85,19 +40,12 @@ export const UploaderNameInput: React.FC<UploaderNameInputProps> = ({</CloseButton><ContentContainer>- <IllustrationContainer>- <SparkleTopRight />- <SparkleBottomRight />- <SparkleBottomLeft />- <IllustrationWrapper>- <HugeiconsIcon- icon={User03Icon}- size={28}- color="#fff"- strokeWidth={1.8}- />- </IllustrationWrapper>- </IllustrationContainer>+ <Illustration+ src={ENTER_NAME_ILLUSTRATION_SRC}+ alt=""+ aria-hidden+ draggable={false}+ /><TitleSection><Title>{t("enter_name")}</Title>@@ -226,26 +174,13 @@ const ContentContainer = styled(Box)(() => ({gap: 16,}));-const IllustrationContainer = styled(Box)(() => ({- position: "relative",- width: 100,- height: 70,- display: "flex",- justifyContent: "center",- alignItems: "center",+const Illustration = styled("img")(() => ({+ display: "block",+ width: 126,+ height: 121,marginBottom: 8,}));-const IllustrationWrapper = styled(Box)(() => ({- display: "flex",- justifyContent: "center",- alignItems: "center",- width: 52,- height: 52,- borderRadius: "50%",- backgroundColor: "#08C225",-}));-const TitleSection = styled(Box)(() => ({display: "flex",flexDirection: "column",diff --git a/web/apps/albums/src/public-album/upload/components/enter-name.svg b/web/apps/albums/src/public-album/upload/components/enter-name.svgnew file mode 100644index 0000000000..6797bce3d7--- /dev/null+++ b/web/apps/albums/src/public-album/upload/components/enter-name.svg@@ -0,0 +1,22 @@+<svg xmlns="http://www.w3.org/2000/svg" width="126" height="121" viewBox="0 0 126 121" fill="none">+ <title>Enter your name</title>+ <defs>+ <clipPath id="enter-name-head"><circle cx="63" cy="43" r="22"/></clipPath>+ <clipPath id="enter-name-body"><path d="M63 68C45 68 31 79 31 94V98C31 101 34 103 38 103H88C92 103 95 101 95 98V94C95 79 81 68 63 68Z"/></clipPath>+ </defs>+ <g transform="rotate(-6 63 63)" stroke="#232323" stroke-width="5.5" stroke-linejoin="round">+ <circle cx="63" cy="43" r="22" fill="#08C225"/>+ <path d="M63 68C45 68 31 79 31 94V98C31 101 34 103 38 103H88C92 103 95 101 95 98V94C95 79 81 68 63 68Z" fill="#08C225"/>+ <g stroke="none" fill="#24B41F">+ <path clip-path="url(#enter-name-head)" d="M76 23C97 40 83 67 58 66C76 58 83 40 76 23Z"/>+ <path clip-path="url(#enter-name-body)" d="M88 77C91 92 69 99 30 98L30 108H101V77H88Z"/>+ </g>+ <circle cx="63" cy="43" r="22"/>+ <path d="M63 68C45 68 31 79 31 94V98C31 101 34 103 38 103H88C92 103 95 101 95 98V94C95 79 81 68 63 68Z"/>+ <path d="M51 36C53 32 56 30 60 30" stroke="#fff" stroke-width="4.5" stroke-linecap="round"/>+ <path d="M43 86C46 81 50 79 55 78" stroke="#fff" stroke-opacity=".6" stroke-width="5" stroke-linecap="round"/>+ </g>+ <path d="M113 15C106 16 102 20 101 26C102 20 98 16 92 14C98 13 103 9 104 3C103 9 107 13 113 15Z" fill="#08C225"/>+ <path d="M25 63C18 65 14 70 14 76C14 70 9 66 3 64C9 62 13 57 13 51C13 57 18 61 25 63Z" fill="#08C225"/>+ <path d="M123 93C115 94 109 99 108 106C109 99 105 93 98 89C106 88 112 83 113 76C112 83 116 89 123 93Z" fill="#08C225"/>+</svg>