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;