From fc25c281e4f08452b9aad4ff4e42c3e3648fb0ad Mon Sep 17 00:00:00 2001 From: Ahmad Abdolsaheb Date: Sun, 15 Dec 2019 19:46:49 +0300 Subject: [PATCH] fix: adjust cert logo and grid --- .../client-only-routes/ShowCertification.js | 10 +-- client/src/components/Intro/index.js | 23 ++++--- client/src/pages/certification.css | 61 +++++++++++-------- 3 files changed, 47 insertions(+), 47 deletions(-) diff --git a/client/src/client-only-routes/ShowCertification.js b/client/src/client-only-routes/ShowCertification.js index 1dd133d2b6..7fd0e6b24a 100644 --- a/client/src/client-only-routes/ShowCertification.js +++ b/client/src/client-only-routes/ShowCertification.js @@ -5,6 +5,7 @@ import { bindActionCreators } from 'redux'; import { connect } from 'react-redux'; import { createSelector } from 'reselect'; import { Grid, Row, Col, Image, Button } from '@freecodecamp/react-bootstrap'; +import FreeCodeCampLogo from '../assets/icons/freeCodeCampLogo'; // eslint-disable-next-line max-len import MinimalDonateForm from '../components/Donation/components/MinimalDonateForm'; @@ -204,14 +205,7 @@ class ShowCertification extends Component {
- freeCodeCamp.org's Logo +
diff --git a/client/src/components/Intro/index.js b/client/src/components/Intro/index.js index 4c88dbce70..8b0deea037 100644 --- a/client/src/components/Intro/index.js +++ b/client/src/components/Intro/index.js @@ -48,19 +48,18 @@ function Intro({ - - - - View my Portfolio - - - Update my account settings - - + + + View my Portfolio + + + Update my account settings + + diff --git a/client/src/pages/certification.css b/client/src/pages/certification.css index 9351826302..4a405fce55 100644 --- a/client/src/pages/certification.css +++ b/client/src/pages/certification.css @@ -75,9 +75,10 @@ margin-left: 100px; } -.certification-namespace .logo img { - max-width: 500px; +.certification-namespace .logo svg { + height: 100%; width: 100%; + max-width: 500px; } .certification-namespace .issue-date { @@ -151,6 +152,36 @@ } /*mobile media queries*/ +@media screen and (max-width: 675px) { + .certification-namespaces.issue-date { + padding: 0; + border: 0; + } + + .certification-namespace header { + height: 190px; + } + + .certification-namespace h3 { + font-size: 15px; + } + + .certification-namespace h1 { + font-size: 17px; + } + + .certification-namespace h4 { + font-size: 15px; + margin-top: 20px; + } +} + +@media (max-width: 767px) { + .certificate-outer-wrapper .donation-section { + padding: 20px 20px; + } +} + @media screen and (max-width: 992px) { .certification-namespace header { height: 160px; @@ -163,7 +194,7 @@ height: 80px; } - .certification-namespace .logo img { + .certification-namespace .logo svg { margin-top: 20px; } @@ -199,27 +230,3 @@ font-size: 28px; } } - -@media screen and (max-width: 675px) { - .certification-namespaces.issue-date { - padding: 0; - border: 0; - } - - .certification-namespace header { - height: 190px; - } - - .certification-namespace h3 { - font-size: 15px; - } - - .certification-namespace h1 { - font-size: 17px; - } - - .certification-namespace h4 { - font-size: 15px; - margin-top: 20px; - } -}