From 2ba1a63832dcd71a00d78dcd9b70bec406fa3758 Mon Sep 17 00:00:00 2001 From: isHardCoded Date: Mon, 16 Jun 2025 12:48:23 +0300 Subject: [PATCH] =?UTF-8?q?=D0=94=D0=BE=D0=B1=D0=B0=D0=B2=D0=B8=D0=BB?= =?UTF-8?q?=D0=B8=20=D0=BE=D0=B1=D1=80=D0=B0=D0=B1=D0=BE=D1=82=D1=87=D0=B8?= =?UTF-8?q?=D0=BA=20=D1=81=D0=BE=D0=B1=D1=8B=D1=82=D0=B8=D0=B9=20=D0=BF?= =?UTF-8?q?=D0=BE=20=D0=BA=D0=BB=D0=B8=D0=BA=D1=83=20=D0=BD=D0=B0=20=D0=BA?= =?UTF-8?q?=D0=B0=D1=80=D1=82=D0=BE=D1=87=D0=BA=D1=83=20=D1=82=D0=BE=D0=B2?= =?UTF-8?q?=D0=B0=D1=80=D0=B0,=20=D1=81=D0=BE=D0=B7=D0=B4=D0=B0=D0=BB?= =?UTF-8?q?=D0=B8=20=D0=BA=D0=BE=D0=BC=D0=BF=D0=BE=D0=BD=D0=B5=D0=BD=D1=82?= =?UTF-8?q?=20Header,=20=D1=83=D1=81=D1=82=D0=B0=D0=BD=D0=BE=D0=B2=D0=B8?= =?UTF-8?q?=D0=BB=D0=B8=20=D0=B1=D0=B8=D0=B1=D0=BB=D0=B8=D0=BE=D1=82=D0=B5?= =?UTF-8?q?=D0=BA=D1=83=20react-icons?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- package-lock.json | 12 +++++++++++- package.json | 5 +++-- src/App.jsx | 17 ++++++++++++++++- src/App.module.css | 5 +++++ 4 files changed, 35 insertions(+), 4 deletions(-) diff --git a/package-lock.json b/package-lock.json index b4904ee..5161a11 100644 --- a/package-lock.json +++ b/package-lock.json @@ -9,7 +9,8 @@ "version": "0.0.0", "dependencies": { "react": "^19.1.0", - "react-dom": "^19.1.0" + "react-dom": "^19.1.0", + "react-icons": "^5.5.0" }, "devDependencies": { "@eslint/js": "^9.25.0", @@ -2461,6 +2462,15 @@ "react": "^19.1.0" } }, + "node_modules/react-icons": { + "version": "5.5.0", + "resolved": "https://registry.npmjs.org/react-icons/-/react-icons-5.5.0.tgz", + "integrity": "sha512-MEFcXdkP3dLo8uumGI5xN3lDFNsRtrjbOEKDLD7yv76v4wpnEq2Lt2qeHaQOr34I/wPN3s3+N08WkQ+CW37Xiw==", + "license": "MIT", + "peerDependencies": { + "react": "*" + } + }, "node_modules/react-refresh": { "version": "0.17.0", "resolved": "https://registry.npmjs.org/react-refresh/-/react-refresh-0.17.0.tgz", diff --git a/package.json b/package.json index 151176e..ac1cf02 100644 --- a/package.json +++ b/package.json @@ -4,14 +4,15 @@ "version": "0.0.0", "type": "module", "scripts": { - "dev": "vite", + "dev": "vite", "build": "vite build", "lint": "eslint .", "preview": "vite preview" }, "dependencies": { "react": "^19.1.0", - "react-dom": "^19.1.0" + "react-dom": "^19.1.0", + "react-icons": "^5.5.0" }, "devDependencies": { "@eslint/js": "^9.25.0", diff --git a/src/App.jsx b/src/App.jsx index 0c6f935..4305cd8 100644 --- a/src/App.jsx +++ b/src/App.jsx @@ -1,14 +1,26 @@ import styles from './App.module.css' import SneakersImage from './assets/images/sneakers-image.jpg' +function Header() { + return ( +
+

Logo

+
+ ) +} + function Product() { + function handleClick() { + console.log('Working!') + } + return (

Sneakers Red & White 2025

- +

NIKE

$38.00

@@ -20,6 +32,9 @@ function Product() { function App() { return ( <> +
+
+
  • diff --git a/src/App.module.css b/src/App.module.css index c1d32ba..75a59fa 100644 --- a/src/App.module.css +++ b/src/App.module.css @@ -1,3 +1,7 @@ +.header { + display: flex; +} + .container { max-width: 1220px; margin: 0 auto; @@ -6,6 +10,7 @@ .list { display: flex; justify-content: space-between; + flex-wrap: wrap; border-radius: 10px; margin-top: 100px; /* временно */ padding: 20px;