mirror of
https://github.com/danog/telegram-tt.git
synced 2024-11-27 04:45:08 +01:00
Auth: Use text instead of image for the "Sign in to Telegram" header (#1012)
This commit is contained in:
parent
6b750c7196
commit
29ba0b997e
Binary file not shown.
Before Width: | Height: | Size: 1.9 KiB |
@ -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;
|
||||
|
@ -170,7 +170,7 @@ const AuthPhoneNumber: FC<StateProps & DispatchProps> = ({
|
||||
<div id="auth-phone-number-form" className="custom-scroll">
|
||||
<div className="auth-form">
|
||||
<div id="logo" />
|
||||
<div className="caption-image" />
|
||||
<h2>Sign in to Telegram</h2>
|
||||
<p className="note">
|
||||
Please confirm your country and
|
||||
<br />enter your phone number.
|
||||
|
@ -20,8 +20,6 @@ import './UiLoader.scss';
|
||||
// @ts-ignore
|
||||
import telegramLogoPath from '../../assets/telegram-logo.svg';
|
||||
// @ts-ignore
|
||||
import authCaptionPath from '../../assets/auth-caption.png';
|
||||
// @ts-ignore
|
||||
import monkeyPath from '../../assets/monkey.svg';
|
||||
import { selectIsRightColumnShown } from '../../modules/selectors';
|
||||
|
||||
@ -70,13 +68,10 @@ const preloadTasks = {
|
||||
preloadAvatars(),
|
||||
]),
|
||||
authPhoneNumber: () => Promise.all([
|
||||
preloadImage(authCaptionPath),
|
||||
preloadFonts(),
|
||||
preloadImage(telegramLogoPath),
|
||||
]),
|
||||
authCode: () => Promise.all([
|
||||
preloadImage(monkeyPath),
|
||||
preloadFonts(),
|
||||
]),
|
||||
authCode: () => preloadImage(monkeyPath),
|
||||
authPassword: () => preloadImage(monkeyPath),
|
||||
authQrCode: preloadFonts,
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user