|
|
@ -16,10 +16,15 @@ const maxMobileSize = 550; |
|
|
|
const fontSize = { |
|
|
|
const fontSize = { |
|
|
|
desktop: { |
|
|
|
desktop: { |
|
|
|
h1: window.innerWidth > maxDesktopSize ? 30 : window.innerWidth / 40, |
|
|
|
h1: window.innerWidth > maxDesktopSize ? 30 : window.innerWidth / 40, |
|
|
|
p : window.innerWidth > maxDesktopSize ? 14: window.innerWidth / 80, |
|
|
|
p: window.innerWidth > maxDesktopSize ? 14 : window.innerWidth / 80, |
|
|
|
span : window.innerWidth > maxDesktopSize ? 16: window.innerWidth / 80, |
|
|
|
span: window.innerWidth > maxDesktopSize ? 16 : window.innerWidth / 80, |
|
|
|
} |
|
|
|
}, |
|
|
|
} |
|
|
|
mobile: { |
|
|
|
|
|
|
|
h1: window.innerWidth > maxMobileSize ? 25 : window.innerWidth / 16, |
|
|
|
|
|
|
|
p: window.innerWidth > maxMobileSize ? 14 : window.innerWidth / 28, |
|
|
|
|
|
|
|
span: window.innerWidth > maxMobileSize ? 15 : window.innerWidth / 28, |
|
|
|
|
|
|
|
}, |
|
|
|
|
|
|
|
}; |
|
|
|
export default class Contact extends Component { |
|
|
|
export default class Contact extends Component { |
|
|
|
render() { |
|
|
|
render() { |
|
|
|
return ( |
|
|
|
return ( |
|
|
@ -58,11 +63,15 @@ export default class Contact extends Component { |
|
|
|
style={{ width: "55%", justifyContent: "space-between" }} |
|
|
|
style={{ width: "55%", justifyContent: "space-between" }} |
|
|
|
> |
|
|
|
> |
|
|
|
<div className="d-flex align-items-center"> |
|
|
|
<div className="d-flex align-items-center"> |
|
|
|
<span style={{ fontSize: fontSize.desktop.span }}>02163462405</span> |
|
|
|
<span style={{ fontSize: fontSize.desktop.span }}> |
|
|
|
|
|
|
|
02163462405 |
|
|
|
|
|
|
|
</span> |
|
|
|
<img src={contact} alt="تماس" className="m-1" /> |
|
|
|
<img src={contact} alt="تماس" className="m-1" /> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
<div className="d-flex align-items-center"> |
|
|
|
<div className="d-flex align-items-center"> |
|
|
|
<span style={{ fontSize: fontSize.desktop.span }}>Info@Danovin.ir</span> |
|
|
|
<span style={{ fontSize: fontSize.desktop.span }}> |
|
|
|
|
|
|
|
Info@Danovin.ir |
|
|
|
|
|
|
|
</span> |
|
|
|
<img src={home} alt="خانه" className="m-1" /> |
|
|
|
<img src={home} alt="خانه" className="m-1" /> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
@ -75,6 +84,56 @@ export default class Contact extends Component { |
|
|
|
<Footer /> |
|
|
|
<Footer /> |
|
|
|
</> |
|
|
|
</> |
|
|
|
) : null} |
|
|
|
) : null} |
|
|
|
|
|
|
|
{window.innerWidth < 1000 ? ( |
|
|
|
|
|
|
|
<div className="mobile-contact d-flex flex-column align-items-center"> |
|
|
|
|
|
|
|
<Navbar page={"contact"} /> |
|
|
|
|
|
|
|
<div className="mobile-contact__form d-flex flex-column"> |
|
|
|
|
|
|
|
<h1 style={{ fontSize: fontSize.mobile.h1 }}>تماس با ما</h1> |
|
|
|
|
|
|
|
<p style={{ fontSize: fontSize.mobile.p }}> |
|
|
|
|
|
|
|
برای ارتباط با دنیای شگفت انگیز دانوین از فرم زیر استفاده کنید و |
|
|
|
|
|
|
|
پس از انتخاب دپارتمان مد نظر پیام خود را ارسال کنید. |
|
|
|
|
|
|
|
</p> |
|
|
|
|
|
|
|
<Input label={"نامونام خانوادگی"} name={"name"} /> |
|
|
|
|
|
|
|
<Input label={"شماره تماس"} name={"mobile"} /> |
|
|
|
|
|
|
|
<Select options={["همه", "پرفروش"]} /> |
|
|
|
|
|
|
|
<Input label={"موضوع پیام"} name={"subject"} /> |
|
|
|
|
|
|
|
<textarea |
|
|
|
|
|
|
|
placeholder="متن پیام" |
|
|
|
|
|
|
|
name="description" |
|
|
|
|
|
|
|
rows="5" |
|
|
|
|
|
|
|
></textarea> |
|
|
|
|
|
|
|
<button>ارسال</button> |
|
|
|
|
|
|
|
</div> |
|
|
|
|
|
|
|
<div className="mobile-contact__address d-flex flex-column"> |
|
|
|
|
|
|
|
<div className="mobile-contact__address--location d-flex align-items-center"> |
|
|
|
|
|
|
|
<img src={location} alt="آدرس" className="m-1" /> |
|
|
|
|
|
|
|
<p style={{ fontSize: fontSize.mobile.p }}> |
|
|
|
|
|
|
|
تهران خیابان انقلاب اسلامی بن بست سروش پلاک 2 طبقه چهار |
|
|
|
|
|
|
|
</p> |
|
|
|
|
|
|
|
</div> |
|
|
|
|
|
|
|
<div |
|
|
|
|
|
|
|
className="d-flex align-items-center mt-1" |
|
|
|
|
|
|
|
style={{ width: "55%", justifyContent: "space-between" }} |
|
|
|
|
|
|
|
> |
|
|
|
|
|
|
|
<div className="d-flex align-items-center"> |
|
|
|
|
|
|
|
<span style={{ fontSize: fontSize.mobile.span }}> |
|
|
|
|
|
|
|
02163462405 |
|
|
|
|
|
|
|
</span> |
|
|
|
|
|
|
|
<img src={contact} alt="تماس" className="m-1" /> |
|
|
|
|
|
|
|
</div> |
|
|
|
|
|
|
|
<div className="d-flex align-items-center"> |
|
|
|
|
|
|
|
<span style={{ fontSize: fontSize.mobile.span }}> |
|
|
|
|
|
|
|
Info@Danovin.ir |
|
|
|
|
|
|
|
</span> |
|
|
|
|
|
|
|
<img src={home} alt="خانه" className="m-1" /> |
|
|
|
|
|
|
|
</div> |
|
|
|
|
|
|
|
</div> |
|
|
|
|
|
|
|
<div className="mobile-contact__address--map d-flex align-items-center mt-3"> |
|
|
|
|
|
|
|
<Location /> |
|
|
|
|
|
|
|
</div> |
|
|
|
|
|
|
|
</div> |
|
|
|
|
|
|
|
</div> |
|
|
|
|
|
|
|
) : null} |
|
|
|
</> |
|
|
|
</> |
|
|
|
); |
|
|
|
); |
|
|
|
} |
|
|
|
} |
|
|
|