diff --git a/src/app/components/OrderForm/index.tsx b/src/app/components/OrderForm/index.tsx
new file mode 100644
index 0000000..f8cde2f
--- /dev/null
+++ b/src/app/components/OrderForm/index.tsx
@@ -0,0 +1,115 @@
+import styles from './orderform.module.css';
+
+import Link from 'next/link';
+
+const forms = [
+ {
+ id: 0,
+ left: [{
+ title: 'Ваше имя*',
+ id: 'name',
+ type: 'text',
+ placeholder: 'Укажите имя',
+ pattern: undefined,
+ }, {
+ title: 'Ваш телефон*',
+ id: 'phone',
+ type: 'text',
+ placeholder: '+7 (___) ___-__-__',
+ pattern: '^(\+7|7|8)?[\s\-]?\(?[489][0-9]{2}\)?[\s\-]?[0-9]{3}[\s\-]?[0-9]{2}[\s\-]?[0-9]{2}$',
+ },
+ ],
+ },
+ {
+ id: 1,
+ mid: [{
+ title: 'Название компании',
+ id: 'company',
+ type: 'text',
+ placeholder: 'Укажите имя',
+ pattern: undefined,
+ }, {
+ title: 'E-mail',
+ id: 'email',
+ type: 'email',
+ placeholder: 'example@domain.com',
+ pattern: undefined,
+ },
+ ],
+ },
+ {
+ id: 2,
+ right: [{
+ title: 'Добавить комментарий',
+ id: 'commentary',
+ type: 'text',
+ placeholder: undefined,
+ pattern: undefined,
+ },
+ ],
+ },
+]
+
+const OrderForm = () => {
+ return (
+
+
+ Заказать расчёт или отправить запрос на сотрудничество
+
+
+
+ {'Нажимая на кнопку "Оформить заказ" Я принимаю и соглашаюсь с '}
+ {'Договором оферты '}
+ {'и разрешаю обработку моих персональных данных в соответствии с '}
+ Политикой конфиденциальности
+
+
+ )
+}
+
+export default OrderForm;
\ No newline at end of file
diff --git a/src/app/components/OrderForm/orderform.module.css b/src/app/components/OrderForm/orderform.module.css
new file mode 100644
index 0000000..01b5798
--- /dev/null
+++ b/src/app/components/OrderForm/orderform.module.css
@@ -0,0 +1,87 @@
+.wholesale-order {
+ padding: 76px 0px 76px 0px;
+ display: flex;
+ flex-direction: column;
+ align-items: center;
+ gap: 23px;
+}
+
+.minor-heading {
+ font-size: 30px;
+}
+
+.form {
+ display: flex;
+ flex-direction: column;
+ align-items: center;
+ gap: 40px;
+ width: 100%;
+}
+
+.wholesale-order__contact-form {
+ display: flex;
+ justify-content: space-around;
+ width: 100%;
+}
+
+.contact-form__column {
+ display: flex;
+ flex-direction: column;
+ gap: 16px;
+}
+
+.column__container {
+ display: flex;
+ flex-direction: column;
+ gap: 6px;
+}
+
+.column__container label {
+ font-size: 13px;
+}
+
+.wholesale-order h3 {
+ width: 650px;
+ text-align: center;
+ padding-bottom: 40px;
+}
+
+.wholesale-order__form {
+ width: 370px;
+ height: 50px;
+ border: 1px solid #EDEDF0;
+ font-size: 16px;
+}
+
+.commentary {
+ height: 139px;
+}
+
+.wholesale-order__btn {
+ background-color: var(--accent);
+ color: #FFFFFF;
+ width: 254px;
+ height: 50px;
+ border: none;
+ font-size: 14px;
+ font-weight: 600;
+ border-radius: 3px;
+ margin-top: 10px;
+ cursor: pointer;
+}
+
+.wholesale-order span {
+ font-size: 11px;
+}
+
+.agreement_link {
+ font-size: 12px;
+ color: var(--blue);
+ text-decoration: underline;
+}
+
+.wholesale-order__form::placeholder {
+ padding-left: 15px;
+ font-size: 16px;
+ color: rgba(41, 41, 41, 40%);
+}
\ No newline at end of file
diff --git a/src/app/wholesale/page.module.css b/src/app/wholesale/page.module.css
index 4bafc83..2c110c0 100644
--- a/src/app/wholesale/page.module.css
+++ b/src/app/wholesale/page.module.css
@@ -145,76 +145,6 @@
background-image: url(/svg/otherspheres.svg);
}
-.wholesale-order {
- padding: 76px 0px 76px 0px;
- display: flex;
- flex-direction: column;
- align-items: center;
- gap: 23px;
-}
-
-.wholesale-order__contact-form {
- display: flex;
- justify-content: space-around;
- width: 100%;
-}
-
-.contact-form__column {
- display: flex;
- flex-direction: column;
- gap: 16px;
-}
-
-.column__container {
- display: flex;
- flex-direction: column;
- gap: 6px;
-}
-
-.column__container label {
- font-size: 13px;
-}
-
-.wholesale-order h3 {
- width: 650px;
- text-align: center;
- padding-bottom: 40px;
-}
-
-.wholesale-order__form {
- width: 370px;
- height: 50px;
- border: 1px solid #EDEDF0;
- font-size: 16px;
-}
-
-.commentary {
- height: 139px;
-}
-
-.wholesale-order__btn {
- background-color: var(--accent);
- color: #FFFFFF;
- width: 254px;
- height: 50px;
- border: none;
- font-size: 14px;
- font-weight: 600;
- border-radius: 3px;
- margin-top: 10px;
- cursor: pointer;
-}
-
-.wholesale-order span {
- font-size: 11px;
-}
-
-.agreement_link {
- font-size: 12px;
- color: var(--blue);
- text-decoration: underline;
-}
-
.wholesale-reviews {
padding: 67px 0px 59px 0px;
display: flex;
@@ -337,12 +267,6 @@
}
-.wholesale-order__form::placeholder {
- padding-left: 15px;
- font-size: 16px;
- color: rgba(41, 41, 41, 40%);
-}
-
.bg {
background-color: #F7EBE5;
}
diff --git a/src/app/wholesale/page.tsx b/src/app/wholesale/page.tsx
index 997b824..18bb709 100644
--- a/src/app/wholesale/page.tsx
+++ b/src/app/wholesale/page.tsx
@@ -1,8 +1,9 @@
-import Link from 'next/link';
+// import Link from 'next/link';
import Breadcrumb from '../shared/ui/Breadcrumb';
import styles from './page.module.css';
import Container from '@/app/components/Container';
+import OrderForm from '../components/OrderForm';
const offers = [
{
@@ -158,71 +159,7 @@ const Wholesale = () => {
-
-
- Заказать расчёт или отправить запрос на сотрудничество
-
-
-
-
-
- Добавить комментарий
-
-
-
-
Заказать расчёт
-
- {'Нажимая на кнопку "Оформить заказ" Я принимаю и соглашаюсь с '}
- {'Договором оферты '}
- {'и разрешаю обработку моих персональных данных в соответствии с '}
- Политикой конфиденциальности
-
-
+