diff --git a/src/App.jsx b/src/App.jsx
index 6fac84a..fefe748 100644
--- a/src/App.jsx
+++ b/src/App.jsx
@@ -1,7 +1,9 @@
import styles from './App.module.scss'
import SneakersImage from './assets/images/sneakers-image.jpg'
import { FaRegUser } from 'react-icons/fa'
-import React from 'react'
+import { FaHeart } from "react-icons/fa";
+import { BsCheckSquare } from "react-icons/bs";
+import { useState } from 'react'
function Header() {
const handleChange = event => {
@@ -24,26 +26,39 @@ function Header() {
}
function Product() {
- function handleClick() {
+ function LikeCounter() {
+ const [likes,setLikes] = useState(0);
+ return (
+ <>
+
Лайков: {likes}
+ {likes < 10 && }
+ {likes > 0 && }
+ {likes >= 10 && Вы достигли лимита!
}
+
+ >
+ )
+ }
+
+ function handleClick() {
console.log('Working!')
}
function Counter() {
- const [title,setTitle] = React.useState('');
- const [titleValue,setTitleValue] = React.useState({
- title:'',
- });
+ const [isLiked,setIsLiked] = useState(false);
- console.log(titleValue);
+ const toggleLike = () => {
+ setIsLiked(!isLiked);
+ }
return (
<>
- setTitle(e.target.value)}
- />
-
+
>
)
}
@@ -59,7 +74,7 @@ function Product() {
NIKE
$38.00
-
+
)
}
diff --git a/src/App.module.scss b/src/App.module.scss
index cec9515..965d806 100644
--- a/src/App.module.scss
+++ b/src/App.module.scss
@@ -1,5 +1,17 @@
@use './assets/styles/variables' as *;
+.progress {
+ width: 100%;
+ height: 10px;
+ border: 1px solid black;
+
+}
+.value {
+ width:70%;
+ height: 100%;
+ background-color: green;
+}
+
.header {
display: flex;
justify-content: space-between;