Исправил кнопку, добавил стили
This commit is contained in:
1 parent
ba921e8348
commit
1cb9f9a509
3 files changed
+69
-5
No files matched your search
@@ -0,0 +1,68 @@
|
||||
.modalBox {
|
||||
padding: 10px 20px 30px;
|
||||
}
|
||||
|
||||
.title {
|
||||
text-align: center;
|
||||
font-size: 28px;
|
||||
font-weight: 700;
|
||||
}
|
||||
|
||||
.subtitle {
|
||||
text-align: center;
|
||||
margin-top: 6px;
|
||||
margin-bottom: 26px;
|
||||
color: #666;
|
||||
font-size: 16px;
|
||||
}
|
||||
|
||||
.form {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 16px;
|
||||
}
|
||||
|
||||
.field {
|
||||
position: relative;
|
||||
}
|
||||
|
||||
.input {
|
||||
width: 93%;
|
||||
padding: 18px;
|
||||
font-size: 18px;
|
||||
border-radius: 12px;
|
||||
border: 1px solid #ddd;
|
||||
background: #f9f9f9;
|
||||
outline: none;
|
||||
transition: 0.2s;
|
||||
}
|
||||
|
||||
.input:focus {
|
||||
border-color: #ffd400;
|
||||
background: white;
|
||||
}
|
||||
|
||||
.textarea {
|
||||
height: 120px;
|
||||
resize: none;
|
||||
padding: 18px;
|
||||
border-radius: 12px;
|
||||
border: 1px solid #ddd;
|
||||
background: #f9f9f9;
|
||||
font-size: 18px;
|
||||
}
|
||||
|
||||
.error {
|
||||
font-size: 13px;
|
||||
color: #d33;
|
||||
position: absolute;
|
||||
bottom: -18px;
|
||||
left: 5px;
|
||||
}
|
||||
|
||||
.button {
|
||||
margin-top: 10px;
|
||||
width: 100%;
|
||||
height: 58px;
|
||||
font-size: 18px;
|
||||
}
|
||||
@@ -4,7 +4,7 @@ import { motion } from "framer-motion";
|
||||
import { useForm } from "react-hook-form";
|
||||
import * as yup from "yup";
|
||||
import { yupResolver } from "@hookform/resolvers/yup";
|
||||
import styles from "./ModalRequestForm.module.css";
|
||||
import styles from "./PriceLisForm.module.css";
|
||||
import Button from "../Button/Button";
|
||||
import { client } from "../../api/client";
|
||||
|
||||
|
||||
@@ -50,10 +50,6 @@ const ItemPage = () => {
|
||||
<h1>{product.name}</h1>
|
||||
|
||||
<p className={styles.short}>{product.description}</p>
|
||||
|
||||
<button className={styles.download}>
|
||||
СКАЧАТЬ ПРАЙС-ЛИСТ
|
||||
</button>
|
||||
<Button
|
||||
label="СКАЧАТЬ ПРАЙС-ЛИСТ"
|
||||
onClick={() => setOpen(true)}
|
||||
|
||||
Reference in new issue
Block a user