diff --git a/public/nojs.mp4 b/public/nojs.mp4 new file mode 100644 index 00000000..0d8e653a Binary files /dev/null and b/public/nojs.mp4 differ diff --git a/src/components/auth/Auth.scss b/src/components/auth/Auth.scss index 244192eb..37275dc5 100644 --- a/src/components/auth/Auth.scss +++ b/src/components/auth/Auth.scss @@ -34,7 +34,7 @@ background-size: 100%; } - h2 { + h1 { font-size: 1.25rem; line-height: 1; @@ -82,7 +82,7 @@ #auth-code-form, #auth-password-form { - h2 { + h1 { display: flex; align-items: center; justify-content: center; @@ -159,8 +159,9 @@ overflow: hidden; } - h3 { + h1 { margin: 1.5rem 0 1rem 0; + font-size: 1.25rem; } ol { diff --git a/src/components/auth/AuthCode.tsx b/src/components/auth/AuthCode.tsx index 6f50fe29..69f49e6b 100644 --- a/src/components/auth/AuthCode.tsx +++ b/src/components/auth/AuthCode.tsx @@ -91,7 +91,7 @@ const AuthCode: FC = ({ isTracking={isTracking} trackingDirection={trackingDirection} /> -

+

{authPhoneNumber}
= ({ >
-

+

{renderText(lang(authIsCodeViaApp ? 'SentAppCode' : 'Login.JustSentSms'), ['simple_markdown'])}

diff --git a/src/components/auth/AuthPassword.tsx b/src/components/auth/AuthPassword.tsx index 627736b2..54b4d485 100644 --- a/src/components/auth/AuthPassword.tsx +++ b/src/components/auth/AuthPassword.tsx @@ -32,7 +32,7 @@ const AuthPassword: FC = ({
-

{lang('Login.Header.Password')}

+

{lang('Login.Header.Password')}

{lang('Login.EnterPasswordDescription')}

= ({
{!isQrMounted &&
}
-

{lang('Login.QR.Title')}

+

{lang('Login.QR.Title')}

  1. {lang('Login.QR.Help1')}
  2. {renderText(lang('Login.QR2.Help2'), ['simple_markdown'])}
  3. diff --git a/src/index.html b/src/index.html index 91032aa9..ab1171ea 100644 --- a/src/index.html +++ b/src/index.html @@ -24,25 +24,30 @@ - + - + - + +
    diff --git a/src/styles/index.scss b/src/styles/index.scss index c8dd171f..31976e95 100644 --- a/src/styles/index.scss +++ b/src/styles/index.scss @@ -34,6 +34,20 @@ body { } } +noscript { + width: 100%; + height: 100%; + display: grid; + align-content: center; + justify-items: center; + .nojs-video { + pointer-events: none; + &::-webkit-media-controls { + display: none; + } + } +} + body.is-ios, body.is-macos { --font-family: system-ui, -apple-system, BlinkMacSystemFont, "Roboto", "Apple Color Emoji", "Helvetica Neue", sans-serif; diff --git a/webpack.config.js b/webpack.config.js index 0a6ed2a9..99bb52f7 100644 --- a/webpack.config.js +++ b/webpack.config.js @@ -131,7 +131,8 @@ module.exports = (env = {}, argv = {}) => { )] : []), new HtmlWebpackPlugin({ appName: process.env.APP_ENV === 'production' ? 'Telegram Web' : 'Telegram Web Beta', - appleIcon: process.env.APP_ENV === 'production' ? 'apple-touch-icon' : './apple-touch-icon-dev', + appleIcon: process.env.APP_ENV === 'production' ? 'apple-touch-icon' : 'apple-touch-icon-dev', + mainIcon: process.env.APP_ENV === 'production' ? 'icon-192x192' : 'icon-dev-192x192', template: 'src/index.html', }), new MiniCssExtractPlugin({