diff --git a/src/components/ContactForm/ContactForm.jsx b/src/components/ContactForm/ContactForm.jsx index f503fb8..db46509 100644 --- a/src/components/ContactForm/ContactForm.jsx +++ b/src/components/ContactForm/ContactForm.jsx @@ -6,51 +6,43 @@ import "./ContactForm.styles.scss"; import { fileUpload } from "../../assets/images"; -const mock = [ - { - id: 1, - type: "text", - name: "name", - placeholder: "Имя", - }, - { - id: 2, - type: "email", - name: "email", - placeholder: "E-mail", - }, - { - id: 3, - type: "textarea", - name: "text", - placeholder: "Опишите в этом поле свой проект и, по возможности, прикрепите файл с ТЗ", - }, - { - id: 4, - type: "file", - name: "file", - icon: fileUpload, - }, - { - id: 5, - type: "submit", - } -]; - -function ContactForm({ fields = mock }) { +function ContactForm() { return (
); diff --git a/src/components/ContactForm/ContactForm.styles.scss b/src/components/ContactForm/ContactForm.styles.scss index 45304c8..dc349b1 100644 --- a/src/components/ContactForm/ContactForm.styles.scss +++ b/src/components/ContactForm/ContactForm.styles.scss @@ -1,4 +1,6 @@ @import "../../assets/styles/theme.scss"; +$icon-size: 24px; +$color-file-button: rgb(7, 42, 200); .contact-form { padding: 20px 22px; @@ -18,11 +20,32 @@ display: flex; flex-direction: column; gap: 14px; - + + * { + box-sizing: border-box; + } + + .row { + display: flex; + gap: 14px; + } + + .file-input * { + width: fit-content; + color: $color-file-button; + font-weight: 500; + + .icon { + height: $icon-size; + width: $icon-size; + filter: invert(15%) sepia(100%) saturate(2861%) hue-rotate(229deg) brightness(93%) contrast(120%);; + } + } + .submit { width: 100%; cursor: pointer; - + padding: 12px; font-size: 18px; line-height: normal; diff --git a/src/pages/Contact/Contact.jsx b/src/pages/Contact/Contact.jsx index b7e8ec9..91009f5 100755 --- a/src/pages/Contact/Contact.jsx +++ b/src/pages/Contact/Contact.jsx @@ -7,7 +7,7 @@ import "./Contact.styles.scss"; function Contact() { return ( - <> +