fix: adjust cert logo and grid

This commit is contained in:
Ahmad Abdolsaheb
2019-12-15 19:46:49 +03:00
committed by mrugesh
parent 81de7dfaf7
commit fc25c281e4
3 changed files with 47 additions and 47 deletions

View File

@@ -5,6 +5,7 @@ import { bindActionCreators } from 'redux';
import { connect } from 'react-redux'; import { connect } from 'react-redux';
import { createSelector } from 'reselect'; import { createSelector } from 'reselect';
import { Grid, Row, Col, Image, Button } from '@freecodecamp/react-bootstrap'; import { Grid, Row, Col, Image, Button } from '@freecodecamp/react-bootstrap';
import FreeCodeCampLogo from '../assets/icons/freeCodeCampLogo';
// eslint-disable-next-line max-len // eslint-disable-next-line max-len
import MinimalDonateForm from '../components/Donation/components/MinimalDonateForm'; import MinimalDonateForm from '../components/Donation/components/MinimalDonateForm';
@@ -204,14 +205,7 @@ class ShowCertification extends Component {
<header> <header>
<Col md={5} sm={12}> <Col md={5} sm={12}>
<div className='logo'> <div className='logo'>
<Image <FreeCodeCampLogo />
alt="freeCodeCamp.org's Logo"
responsive={true}
src={
'https://s3.amazonaws.com/freecodecamp/freecodecamp_logo' +
'.svg'
}
/>
</div> </div>
</Col> </Col>
<Col md={7} sm={12}> <Col md={7} sm={12}>

View File

@@ -48,19 +48,18 @@ function Intro({
</h1> </h1>
<Spacer /> <Spacer />
</Col> </Col>
<FullWidthRow className='button-group'>
<Link
className='btn btn-lg btn-primary btn-block'
to={`/${username}`}
>
View my Portfolio
</Link>
<Link className='btn btn-lg btn-primary btn-block' to='/settings'>
Update my account settings
</Link>
</FullWidthRow>
</Row> </Row>
<FullWidthRow className='button-group'>
<Link
className='btn btn-lg btn-primary btn-block'
to={`/${username}`}
>
View my Portfolio
</Link>
<Link className='btn btn-lg btn-primary btn-block' to='/settings'>
Update my account settings
</Link>
</FullWidthRow>
<Spacer /> <Spacer />
<Row className='text-center quote-partial'> <Row className='text-center quote-partial'>
<Col sm={10} smOffset={1} xs={12}> <Col sm={10} smOffset={1} xs={12}>

View File

@@ -75,9 +75,10 @@
margin-left: 100px; margin-left: 100px;
} }
.certification-namespace .logo img { .certification-namespace .logo svg {
max-width: 500px; height: 100%;
width: 100%; width: 100%;
max-width: 500px;
} }
.certification-namespace .issue-date { .certification-namespace .issue-date {
@@ -151,6 +152,36 @@
} }
/*mobile media queries*/ /*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) { @media screen and (max-width: 992px) {
.certification-namespace header { .certification-namespace header {
height: 160px; height: 160px;
@@ -163,7 +194,7 @@
height: 80px; height: 80px;
} }
.certification-namespace .logo img { .certification-namespace .logo svg {
margin-top: 20px; margin-top: 20px;
} }
@@ -199,27 +230,3 @@
font-size: 28px; 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;
}
}