From 29ba0b997eac152494a1a1b573ef101f72b9affa Mon Sep 17 00:00:00 2001 From: Alexander Zinchuk Date: Fri, 16 Apr 2021 14:48:12 +0300 Subject: [PATCH] Auth: Use text instead of image for the "Sign in to Telegram" header (#1012) --- src/assets/auth-caption.png | Bin 1898 -> 0 bytes src/components/auth/Auth.scss | 13 ------------- src/components/auth/AuthPhoneNumber.tsx | 2 +- src/components/common/UiLoader.tsx | 9 ++------- 4 files changed, 3 insertions(+), 21 deletions(-) delete mode 100644 src/assets/auth-caption.png diff --git a/src/assets/auth-caption.png b/src/assets/auth-caption.png deleted file mode 100644 index 8f8d3ab87d09d2adb37bc26069f32ba3960987b6..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 1898 zcmV-w2bK7VP))@L=+Kj*NZBm z+uMlksk?^s*i0&T1_J~rNc$z(u9iMs*nU`)TKZ2BLTSB(yTU!iZ~B*$?PsN}7XBqd zIzFP9V3oVNGD{31A3{1pm}G#CkgF?asBXDFgnXkO2_Wv8BDWetUe109IfW2@B?mNS zuGK4{A41m9FG653iz-zGK@#+v;v}B6y#XQej}W4-fT3M}Twqjg-ytfwT|&tG4C|j< z4?&AAAXsEh@gd}g_1G8!^5@4l)Q6DM^hhTUvdGfahmfC@5h6)sC{v(nHxA{ATcLRy zH6b)B6NHqBs0lGg<{YJUTs5tIW^e7WNftp*h~lYTr;68U|0fSmz5234Th%ucfvk;g zUBBWx^Rn~XZ&_RKaf9$QLMYB^K}hKc1%FNvccvoUVw5m%@NDHbkOo+BXI!y=?t2rTzn(){rVnSf;^BCdlh@k)Avwl59 z1_()fafD2T77z`gz8?BjLd2Zec^43(cFUaB3ERVslh7{_LXW59 zgs4j>hY6tza)c1`PJN{&2!Z`&7hy&SQ%A6O46d7q5b@(Wy*GvJEI0Ae$W;EEDtJT)&1g-CM#UQ> zgn=(w5|WiNLAWNQ?#SFL19INU!DDs_Asq0$%BMtiuxH&+LU0}-Ql_OEcD(hPkeV>-D+tI? z4g7FMe~ggL5#nY($rOz)HQ!Ij_VM9fTH z`Ef#8qMQ)6P-hZCK{K69h=+uSgy3$3xDziVM8*lB>uZ=0TJ^3V#P@>Oa=RHJxP%an z6QaeiGeL;izmgE&5swIwn-PK=5u)RS*vHosV!_K>TxD)FhHMjKh*^g!|JPN7mh6c8I-pi`IkW0+^qokEX4z&! zNdH&dgb*vtsXKQrdv!qKlTsKRCPYsq#I~9fKXJVK&zleu7Di@w|Fi6oML>QKQEzmB zkkrc)<}ye;PG`G*s$)GB*V2-!Wz40OlLEVG#)Kx+#U@{Gr)O9XbL z6NGfxgQ$odxq!mVsrd41pIbX9*F&t8g*Z?WEMc$j_`sCq=SAS5%aVhNler1(a3XxW1$>#T=#t|5QS5+}VK!gE(_4pLg-iR=uf zgcR)zt?9j8?QElX=GO%(wCXQFi2wGcXJqmXGnrXv9*~LRJxO!>#Whtw@v;6fL5PW} zA|k3B`>_xC-C(WvCz2|nr1#ijJW)Dqmaa)?k}0EgP3C2UOlmV(Mda-xg;@W(p{O|oY~O{){4ZpGwtk(rj?$n)>w zFs)4p`>7q#K10aKx1~Zm42O`l2{9sGdwn;5J@qe>k=O0b6X|H{cqmH~;_u07*qoM6N<$f<7Z~ZvX%Q diff --git a/src/components/auth/Auth.scss b/src/components/auth/Auth.scss index 96946be84..f9c4d5473 100644 --- a/src/components/auth/Auth.scss +++ b/src/components/auth/Auth.scss @@ -31,19 +31,6 @@ background: url('../../assets/telegram-logo.svg') center no-repeat; } - // Prevent loading additional 10 kB of Roboto font on initial load. - .caption-image { - margin-bottom: 0.5rem; - height: 19px; - background: url('../../assets/auth-caption.png') center center no-repeat; - background-size: auto 100%; - - @media (min-width: 600px) { - height: 48px; - background-size: 273px auto; - } - } - h2 { font-size: 1.25rem; line-height: 1; diff --git a/src/components/auth/AuthPhoneNumber.tsx b/src/components/auth/AuthPhoneNumber.tsx index 0450fedf1..8662f295e 100644 --- a/src/components/auth/AuthPhoneNumber.tsx +++ b/src/components/auth/AuthPhoneNumber.tsx @@ -170,7 +170,7 @@ const AuthPhoneNumber: FC = ({