From ba835d30953a1800b775db9acedc279b15c71c66 Mon Sep 17 00:00:00 2001 From: catarina-pinto Date: Sun, 4 Feb 2024 11:11:55 +0000 Subject: [PATCH 1/4] =?UTF-8?q?Corre=C3=A7=C3=A3o=20do=20layout=20da=20p?= =?UTF-8?q?=C3=A1gina=20da=20Pol=C3=ADtica=20de=20Privacidade?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/pages/PrivacyPolicy/index.js | 12 +++++++++++- src/pages/PrivacyPolicy/privacy-policy.scss | 4 ++++ 2 files changed, 15 insertions(+), 1 deletion(-) diff --git a/src/pages/PrivacyPolicy/index.js b/src/pages/PrivacyPolicy/index.js index 5de292d..af76f6b 100644 --- a/src/pages/PrivacyPolicy/index.js +++ b/src/pages/PrivacyPolicy/index.js @@ -15,12 +15,22 @@ function PrivacyPolicy({ translation }) { } ]; + function WebOrMobileClassName() { + var className = ""; + + if (window.innerWidth <= 500) { + className = "container-mobile"; + } + + return className; + } + return ( - +

{translation('PrivacyPolicyPage-Text_p1')}

{translation('PrivacyPolicyPage-Text_p2')}

diff --git a/src/pages/PrivacyPolicy/privacy-policy.scss b/src/pages/PrivacyPolicy/privacy-policy.scss index 8fab9de..00f6956 100644 --- a/src/pages/PrivacyPolicy/privacy-policy.scss +++ b/src/pages/PrivacyPolicy/privacy-policy.scss @@ -4,3 +4,7 @@ h3, h5 { margin-top: 30px !important; } + +.container-mobile { + margin-top: 15px; +} \ No newline at end of file From e09cfb2385b16ad4302aaa43072f8f8738f90342 Mon Sep 17 00:00:00 2001 From: catarina-pinto Date: Sun, 4 Feb 2024 11:18:54 +0000 Subject: [PATCH 2/4] =?UTF-8?q?Corre=C3=A7=C3=A3o=20das=20aspas=20na=20fun?= =?UTF-8?q?=C3=A7=C3=A3o=20WebOrMobileClassName?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/pages/PrivacyPolicy/index.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/pages/PrivacyPolicy/index.js b/src/pages/PrivacyPolicy/index.js index af76f6b..238f57b 100644 --- a/src/pages/PrivacyPolicy/index.js +++ b/src/pages/PrivacyPolicy/index.js @@ -16,10 +16,10 @@ function PrivacyPolicy({ translation }) { ]; function WebOrMobileClassName() { - var className = ""; + var className = ''; if (window.innerWidth <= 500) { - className = "container-mobile"; + className = 'container-mobile'; } return className; From ae597c84f4b5a67bba06610fa270b737f024c880 Mon Sep 17 00:00:00 2001 From: Catarina Pinto <81467625+catarina-pinto@users.noreply.github.com> Date: Tue, 13 Feb 2024 23:59:55 +0000 Subject: [PATCH 3/4] Update index.js --- src/pages/PrivacyPolicy/index.js | 12 +----------- 1 file changed, 1 insertion(+), 11 deletions(-) diff --git a/src/pages/PrivacyPolicy/index.js b/src/pages/PrivacyPolicy/index.js index 238f57b..2faf07b 100644 --- a/src/pages/PrivacyPolicy/index.js +++ b/src/pages/PrivacyPolicy/index.js @@ -15,22 +15,12 @@ function PrivacyPolicy({ translation }) { } ]; - function WebOrMobileClassName() { - var className = ''; - - if (window.innerWidth <= 500) { - className = 'container-mobile'; - } - - return className; - } - return ( - +

{translation('PrivacyPolicyPage-Text_p1')}

{translation('PrivacyPolicyPage-Text_p2')}

From 0fb3bda500533fbd544e4b456543fba49a15ecce Mon Sep 17 00:00:00 2001 From: Catarina Pinto <81467625+catarina-pinto@users.noreply.github.com> Date: Wed, 14 Feb 2024 00:00:15 +0000 Subject: [PATCH 4/4] Update privacy-policy.scss --- src/pages/PrivacyPolicy/privacy-policy.scss | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/src/pages/PrivacyPolicy/privacy-policy.scss b/src/pages/PrivacyPolicy/privacy-policy.scss index 00f6956..f7b96d9 100644 --- a/src/pages/PrivacyPolicy/privacy-policy.scss +++ b/src/pages/PrivacyPolicy/privacy-policy.scss @@ -5,6 +5,8 @@ h5 { margin-top: 30px !important; } -.container-mobile { - margin-top: 15px; -} \ No newline at end of file +@media (max-width: 768px) { + .container-mobile { + margin-top: 15px; + } +}