Skip to content

Commit 9b16da6

Browse files
committed
logo, badge fix
1 parent af106e6 commit 9b16da6

File tree

14 files changed

+39
-25
lines changed

14 files changed

+39
-25
lines changed

packages/modal/src/ui/components/Button/ButtonSocial/ButtonSocial.tsx

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,7 @@ import Image from "../../Image";
55
import { ButtonSocialProps } from "./ButtonSocial.type";
66

77
function getProviderIcon(method: string, isDark: boolean, isPrimaryBtn: boolean) {
8-
const imageId =
9-
method === AUTH_CONNECTION.TWITTER ? `login-twitter-x${isDark ? "-light" : "-dark"}` : `login-${method}${isDark ? "-light" : "-dark"}`;
8+
const imageId = method === AUTH_CONNECTION.TWITTER ? `login-X-${isDark ? "-light" : "-dark"}` : `login-${method}${isDark ? "-light" : "-dark"}`;
109
const hoverId =
1110
method === AUTH_CONNECTION.APPLE || method === AUTH_CONNECTION.GITHUB || method === AUTH_CONNECTION.TWITTER ? imageId : `login-${method}-active`;
1211
if (isPrimaryBtn) {

packages/modal/src/ui/components/Login/Login.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -517,7 +517,7 @@ function Login(props: LoginProps) {
517517
logoAlignment === "center" ? "w3a--flex w3a--justify-center w3a--items-center" : "w3a--ml-0"
518518
)}
519519
>
520-
<img src={headerLogo || getIcons(isDark ? "logo-dark" : "logo-light")} alt="Logo" className="w3a--object-contain" />
520+
<img src={headerLogo || getIcons(isDark ? "logo-dark" : "logo-light")} alt="Logo" className="w3a--size-full w3a--object-contain" />
521521
</figure>
522522
<p
523523
className={cn(

packages/modal/src/ui/constants.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,3 +14,6 @@ export const DEFAULT_LOGO_LIGHT = "https://images.web3auth.io/web3auth-logo-w.sv
1414
export const DEFAULT_LOGO_DARK = "https://images.web3auth.io/web3auth-logo-w-light.svg"; // logo used on dark mode
1515

1616
export const WALLET_CONNECT_LOGO = "https://images.web3auth.io/login-wallet-connect.svg";
17+
18+
export const DEFAULT_PRIMARY_COLOR = "#0364FF";
19+
export const DEFAULT_ON_PRIMARY_COLOR = "#FFFFFF";

packages/modal/src/ui/i18n/dutch.json

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@
6565
"social.email-new": "[email protected]",
6666
"social.passwordless-cta": "Doorgaan",
6767
"social.passwordless-login": "Log in",
68-
"social.passwordless-title": "E-mail of telefoon",
68+
"social.passwordless-title": "E-mail/Telefoon",
6969
"social.phone": "Telefoon",
7070
"social.policy": "We slaan geen gegevens op die verband houden met uw sociale logins.",
7171
"social.sms": "Mobiel",
@@ -92,7 +92,8 @@
9292
"resendCode": "Code opnieuw verzenden",
9393
"resendTimer": " Opnieuw verzenden in {{timer}} seconden",
9494
"connectYourWallet": "Uw portemonnee verbinden",
95-
"allChains": "Alle ketens"
95+
"allChains": "Alle ketens",
96+
"getWallet": "Portemonnee ophalen"
9697
},
9798
"passwordless": {
9899
"error-invalid-params": "Ontbrekende of ongeldige parameters",

packages/modal/src/ui/i18n/english.json

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@
6565
"social.email-new": "[email protected]",
6666
"social.passwordless-cta": "Continue",
6767
"social.passwordless-login": "Login",
68-
"social.passwordless-title": "Email or Phone",
68+
"social.passwordless-title": "Email/Phone",
6969
"social.phone": "Phone",
7070
"social.policy": "We do not store any data related to your social logins.",
7171
"social.sms": "Mobile",
@@ -92,7 +92,8 @@
9292
"resendCode": "Resend Code",
9393
"resendTimer": " Resend in {{timer}} seconds",
9494
"connectYourWallet": "Connect your wallet",
95-
"allChains": "All Chains"
95+
"allChains": "All Chains",
96+
"getWallet": "Get Wallet"
9697
},
9798
"passwordless": {
9899
"error-invalid-params": "Missing or Invalid Parameters.",

packages/modal/src/ui/i18n/french.json

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@
6363
"social.email-new": "[email protected]",
6464
"social.passwordless-cta": "Continuer",
6565
"social.passwordless-login": "Se connecter",
66-
"social.passwordless-title": "Email ou téléphone",
66+
"social.passwordless-title": "Email/Téléphone",
6767
"social.phone": "Téléphone",
6868
"social.policy": "Nous ne stockons aucune donnée liée à vos connexions sociales.",
6969
"social.sms": "Mobile",
@@ -90,7 +90,8 @@
9090
"resendCode": "Renvoyer le code",
9191
"resendTimer": " Renvoyer dans {{timer}} secondes",
9292
"connectYourWallet": "Connectez votre portefeuille",
93-
"allChains": "Toutes les chaînes"
93+
"allChains": "Toutes les chaînes",
94+
"getWallet": "Obtenir le portefeuille"
9495
},
9596
"passwordless": {
9697
"error-invalid-params": "Paramètres manquants ou invalides.",

packages/modal/src/ui/i18n/german.json

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@
6565
"social.email-new": "[email protected]",
6666
"social.passwordless-cta": "Weitermachen",
6767
"social.passwordless-login": "Anmeldung",
68-
"social.passwordless-title": "E-Mail oder Telefon",
68+
"social.passwordless-title": "E-Mail/Telefon",
6969
"social.phone": "Telefon",
7070
"social.policy": "Wir speichern keine Daten im Zusammenhang mit Ihren Social Logins.",
7171
"social.sms": "Mobiltelefon",
@@ -92,7 +92,8 @@
9292
"resendCode": "Code erneut senden",
9393
"resendTimer": " {{timer}} Sekunden später erneut senden",
9494
"connectYourWallet": "Ihre Wallet verbinden",
95-
"allChains": "Alle Kettens"
95+
"allChains": "Alle Kettens",
96+
"getWallet": "Wallet holen"
9697
},
9798
"passwordless": {
9899
"error-invalid-params": "Fehlende oder ungültige Parameter",

packages/modal/src/ui/i18n/japanese.json

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@
6565
"social.email-new": "[email protected]",
6666
"social.passwordless-cta": "続ける",
6767
"social.passwordless-login": "ログイン",
68-
"social.passwordless-title": "メールまたは電話",
68+
"social.passwordless-title": "メール/電話",
6969
"social.phone": "電話",
7070
"social.policy": "ソーシャルログインに関連するデータは保存されません。",
7171
"social.sms": "モバイル",
@@ -92,7 +92,8 @@
9292
"resendCode": "コードを再送信",
9393
"resendTimer": " {{timer}} 秒後に再送信",
9494
"connectYourWallet": "ウォレットを接続",
95-
"allChains": "すべてのチェーン"
95+
"allChains": "すべてのチェーン",
96+
"getWallet": "ウォレットを取得"
9697
},
9798
"passwordless": {
9899
"error-invalid-params": "パラメーターの欠落または無効なパラメーター",

packages/modal/src/ui/i18n/korean.json

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@
6565
"social.email-new": "[email protected]",
6666
"social.passwordless-cta": "계속",
6767
"social.passwordless-login": "로그인",
68-
"social.passwordless-title": "이메일 또는 전화번호",
68+
"social.passwordless-title": "이메일/전화번호",
6969
"social.phone": "전화번호",
7070
"social.policy": "저희는 소셜 로그인과 관련된 어떠한 데이터도 저장하지 않습니다.",
7171
"social.sms": "모바일",
@@ -92,7 +92,8 @@
9292
"resendCode": "코드 다시 보내기",
9393
"resendTimer": " {{timer}} 초 후 다시 보내기",
9494
"connectYourWallet": "지갑 연결",
95-
"allChains": "모든 체인"
95+
"allChains": "모든 체인",
96+
"getWallet": "지갑 가져오기"
9697
},
9798
"passwordless": {
9899
"error-invalid-params": "누락되었거나 유효하지 않은 정보입니다.",

packages/modal/src/ui/i18n/mandarin.json

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@
6565
"social.email-new": "[email protected]",
6666
"social.passwordless-cta": "继续",
6767
"social.passwordless-login": "登录",
68-
"social.passwordless-title": "邮件或电话",
68+
"social.passwordless-title": "电子邮件/电话",
6969
"social.phone": "电话",
7070
"social.policy": "我们不存储与您的社交登录相关的任何数据。",
7171
"social.sms": "移动",
@@ -92,7 +92,8 @@
9292
"resendCode": "重新发送代码",
9393
"resendTimer": " {{timer}} 秒后重新发送",
9494
"connectYourWallet": "连接您的钱包",
95-
"allChains": "所有链"
95+
"allChains": "所有链",
96+
"getWallet": "获取钱包"
9697
},
9798
"passwordless": {
9899
"error-invalid-params": "缺失或无效参数",

0 commit comments

Comments
 (0)