Browse Source

initial commit

Aleksandrov96 2 years ago
parent
commit
a4b9f17410

+ 8 - 5
nix-project/src/App.scss

@@ -209,7 +209,9 @@ li {
         display: inline-block;
         font-size: 16px;
         transition: .2s ease-in-out;
-                
+        cursor: pointer;
+        letter-spacing: .2rem;
+        
         &:hover {
             background-color: white; 
             color: var(--font-color);
@@ -271,7 +273,7 @@ li {
     position: fixed;
     top: 0;
     left: 0;
-    background-color: rgba(black, .85);
+    background-color: rgba(black, .95);
     z-index: 9999;
     text-align: center;
     position: fixed;
@@ -281,7 +283,7 @@ li {
         height: 25rem;
         box-shadow: var(--shadow-cool);
         border-radius: 1rem;
-        background-color: rgba(240, 238, 238, .2);
+        background-color: rgba(240, 238, 238);
         padding: 2rem;
         position: absolute;
         top: 50%;
@@ -291,7 +293,8 @@ li {
 
         &-close {
             text-decoration: none;
-            color: white;
+            color: var(--primary-color);
+            font-weight: bold;
             opacity: .7;
             position: absolute;
             top: 2rem;
@@ -312,7 +315,7 @@ li {
     }
 
     &_label {
-        color: white;
+        color: var(--font-color);
     }
 
     &_loginForm {

+ 2 - 2
nix-project/src/components/AdminGoodCard/AdminGoodCard.js

@@ -17,13 +17,13 @@ const [descriptionField, setDescriptionField] = useState(description);
 
   return (
     <div className='goodCard'>
-    <h2 className="goodCard_title">{name}</h2>
+    <h2 className="goodCard_title">{nameField}</h2>
         <div className="goodCard_img">
             {images && images[0] && images[0].url && <img src={backURL + '/' + images[0].url} />}
         </div>
         <CSetImageDropzone id={_id} />
             <div className="goodCard_cart">
-                <h2 className="goodCard_cart-price">{price} ₴</h2>
+                <h2 className="goodCard_cart-price">{priceField} ₴</h2>
             <div className="goodCard_cart-btns">
                 <button 
                 className="goodCard_cart-btns--btn"