From 667285aad104c6f583fee4cb88fce6ebb95c8a52 Mon Sep 17 00:00:00 2001 From: RezaAshrafi77 Date: Wed, 28 Jul 2021 02:17:31 +0430 Subject: [PATCH] reza added mobile contact --- src/views/Contact/index.js | 71 +++++++++++++++-- src/views/Contact/index.scss | 150 ++++++++++++++++++++++++++++++++++- 2 files changed, 214 insertions(+), 7 deletions(-) diff --git a/src/views/Contact/index.js b/src/views/Contact/index.js index 92755b8..aeddfdc 100644 --- a/src/views/Contact/index.js +++ b/src/views/Contact/index.js @@ -16,10 +16,15 @@ const maxMobileSize = 550; const fontSize = { desktop: { h1: window.innerWidth > maxDesktopSize ? 30 : window.innerWidth / 40, - p : window.innerWidth > maxDesktopSize ? 14: window.innerWidth / 80, - span : window.innerWidth > maxDesktopSize ? 16: window.innerWidth / 80, - } -} + p: window.innerWidth > maxDesktopSize ? 14 : 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 { render() { return ( @@ -58,11 +63,15 @@ export default class Contact extends Component { style={{ width: "55%", justifyContent: "space-between" }} >
- 02163462405 + + 02163462405 + تماس
- Info@Danovin.ir + + Info@Danovin.ir + خانه
@@ -75,6 +84,56 @@ export default class Contact extends Component {