From 11428ef5ff296db3a6f37ffb9a2625a281678c2a Mon Sep 17 00:00:00 2001 From: Ahmad Abdolsaheb Date: Mon, 22 Feb 2021 16:30:25 +0300 Subject: [PATCH] fix(client): make certification responsive (#41222) --- .../client-only-routes/ShowCertification.js | 198 +++++++++--------- client/src/pages/certification.css | 9 +- 2 files changed, 104 insertions(+), 103 deletions(-) diff --git a/client/src/client-only-routes/ShowCertification.js b/client/src/client-only-routes/ShowCertification.js index 9129aea716..91a02fdee3 100644 --- a/client/src/client-only-routes/ShowCertification.js +++ b/client/src/client-only-routes/ShowCertification.js @@ -162,7 +162,6 @@ const ShowCertification = props => { !isDonating ) { setIsDonationDisplayed(true); - executeGA({ type: 'event', data: { @@ -265,7 +264,7 @@ const ShowCertification = props => { ); let donationSection = ( - +
{!isDonationSubmitted && ( @@ -273,120 +272,127 @@ const ShowCertification = props => { )} - + + + + + {isDonationSubmitted && donationCloseBtn} - + +
); const shareCertBtns = ( + + + + + - - - ); return ( -
+ + {isDonationDisplayed && !isDonationClosed ? donationSection : ''} - - -
- -
- -
- - -
- {t('certification.issued')}  - - {certDate.toLocaleString([localeCode, 'en-US'], { - year: 'numeric', - month: 'long', - day: 'numeric' - })} - -
- -
+ +
+ +
+ +
+ + +
+ {t('certification.issued')}  + + {certDate.toLocaleString([localeCode, 'en-US'], { + year: 'numeric', + month: 'long', + day: 'numeric' + })} + +
+ +
-
-
- -

placeholder

-

- {{ user: displayName }} -

-

placeholder

-

- {{ title: certTitle }} -

-

{{ time: completionTime }}

-
-
-
-
-
- Quincy Larson's Signature -

- Quincy Larson -

-

{t('certification.executive')}

-
- -

- {t('certification.verify', { certURL: certURL })} -

-
-
-
-
+
+
+ +

placeholder

+

+ {{ user: displayName }} +

+

placeholder

+

+ {{ title: certTitle }} +

+

{{ time: completionTime }}

+
+
+
+
+
+ Quincy Larson's Signature +

+ Quincy Larson +

+

{t('certification.executive')}

+
+ +

+ {t('certification.verify', { certURL: certURL })} +

+
+
+ + {signedInUserName === username ? shareCertBtns : ''} -
+
); }; diff --git a/client/src/pages/certification.css b/client/src/pages/certification.css index cd6a59a1fb..98c8bd8de3 100644 --- a/client/src/pages/certification.css +++ b/client/src/pages/certification.css @@ -13,12 +13,13 @@ margin: 12px 0; } -.certification-namespace.container { +.certification-namespace { max-width: 1500px; width: 100%; padding: 30px; border: var(--theme-color) 15px solid; border-radius: 3px; + background-color: var(--gray-00); } .certification-namespace .row { @@ -39,11 +40,6 @@ align-items: center; min-height: 100vh; flex-direction: column; - padding: 50px; -} - -.certificate-outer-wrapper .donation-section { - padding-bottom: 100px; } .certificate-outer-wrapper .donation-section hr { @@ -263,5 +259,4 @@ .certificate-outer-wrapper { margin-top: calc(-1 * var(--header-height)); - background-color: #fff; }