UBER-371: Retina images for login page (#3351)

Signed-off-by: Andrey Sobolev <haiodo@gmail.com>
This commit is contained in:
Andrey Sobolev 2023-06-06 12:23:41 +07:00 committed by GitHub
parent 7c48095b75
commit 5ce55303f5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
10 changed files with 23 additions and 3 deletions

View File

@ -155,7 +155,7 @@ module.exports = {
}
},
{
test: /\.(jpg|png|webp)$/,
test: /\.(jpg|png|webp|heic|avif)$/,
use: {
loader: 'file-loader',
options: {

Binary file not shown.

Binary file not shown.

After

Width:  |  Height:  |  Size: 165 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1018 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 46 KiB

Binary file not shown.

Binary file not shown.

After

Width:  |  Height:  |  Size: 521 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.5 MiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 128 KiB

View File

@ -94,14 +94,34 @@
<style lang="scss">
.backd {
background: '#000';
background-color: 'rgb(0,0,0)';
&.paneld {
background: linear-gradient(180deg, #232324 0%, #171719 100%);
}
}
.back {
background: url('../../img/back_signin.png');
// background: url('../../img/back_signin.png');
background-image: -webkit-image-set(
'../../img/login_back.avif' 1x,
'../../img/login_back_2x.avif' 2x,
'../../img/login_back.png' 1x,
'../../img/login_back_2x.png' 2x,
'../../img/login_back.webp' 1x,
'../../img/login_back_2x.webp' 2x,
'../../img/login_back.jpg' 1x,
'../../img/login_back_2x.jpg' 2x
); /* Temporary fallback for Chrome and Safari browsers until they support 'image-set()' better */
background-image: image-set(
'../../img/login_back.avif' 1x,
'../../img/login_back_2x.avif' 2x,
'../../img/login_back.png' 1x,
'../../img/login_back_2x.png' 2x,
'../../img/login_back.webp' 1x,
'../../img/login_back_2x.webp' 2x,
'../../img/login_back.jpg' 1x,
'../../img/login_back_2x.jpg' 2x
);
background-size: cover;
background-position-y: center;