fix images

This commit is contained in:
Primakov Alexandr Alexandrovich 2024-04-09 23:52:33 +03:00
parent 11f3ee76ba
commit 9eafbace4c
7 changed files with 47 additions and 7 deletions

BIN
dist/3cd0c7e3db1081cd7bde.png vendored Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 66 KiB

BIN
dist/b58fb5aa9ca6a7f04918.png vendored Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 20 KiB

BIN
dist/b868c75611075ed2d2eb.png vendored Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 60 KiB

2
dist/index.js vendored Normal file

File diff suppressed because one or more lines are too long

29
dist/index.js.LICENSE.txt vendored Normal file
View File

@ -0,0 +1,29 @@
/**
* @license React
* react-dom.production.min.js
*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
/**
* @license React
* react.production.min.js
*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
/**
* @license React
* scheduler.production.min.js
*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/

4
index.d.ts vendored Normal file
View File

@ -0,0 +1,4 @@
declare module '*.png' {
const path: string;
export default path;
}

View File

@ -1,5 +1,10 @@
import React from "react";
import logo from '../assets/logo_1x.png'
import logo2x from '../assets/logo_2x.png'
import logo4x from '../assets/logo_4x.png'
import cucumber from '../assets/cucumber.png'
export const LandingPage = () => {
return (
<>
@ -8,13 +13,13 @@ export const LandingPage = () => {
className="logo"
height="44p"
width="227"
src="./assets/logo_4x.png"
src={logo4x}
alt="Логотип. Надпись Рик и Морти"
srcSet="
./assets/logo_1x.png 220w,
./assets/logo_2x.png 445w,
./assets/logo_4x.png 880w
"
srcSet={`
${logo} 220w,
${logo2x} 445w,
${logo4x} 880w,
`}
sizes="
(max-width: 240px) 100px,
(min-width: 320px) 440px,
@ -87,7 +92,7 @@ export const LandingPage = () => {
Смита.
</p>
</div>
<img className="card--img" src="./assets/cucumber.png" alt="" />
<img className="card--img" src={cucumber} alt="" />
</article>
</main>