fix: align sponsors and give background
This commit is contained in:
committed by
mrugesh mohapatra
parent
7d18cd8de6
commit
4046bb3a0d
@ -2,6 +2,8 @@
|
|||||||
display: block;
|
display: block;
|
||||||
max-width: 100%;
|
max-width: 100%;
|
||||||
height: auto;
|
height: auto;
|
||||||
|
padding: 0;
|
||||||
|
margin: 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
.sls {
|
.sls {
|
||||||
@ -12,4 +14,13 @@
|
|||||||
|
|
||||||
.sl {
|
.sl {
|
||||||
max-height: 80px;
|
max-height: 80px;
|
||||||
|
background-color: white;
|
||||||
|
padding: 5px;
|
||||||
|
border-radius: 10px;
|
||||||
|
width: 150px;
|
||||||
|
height: 100px;
|
||||||
|
margin-bottom: 50px;
|
||||||
|
display: flex;
|
||||||
|
align-items: center;
|
||||||
|
justify-content: center;
|
||||||
}
|
}
|
||||||
|
@ -1,6 +1,7 @@
|
|||||||
import React, { Fragment } from 'react';
|
import React, { Fragment } from 'react';
|
||||||
import Helmet from 'react-helmet';
|
import Helmet from 'react-helmet';
|
||||||
import { Grid, Col, Row } from '@freecodecamp/react-bootstrap';
|
import { Grid, Col, Row } from '@freecodecamp/react-bootstrap';
|
||||||
|
import Media from 'react-media';
|
||||||
|
|
||||||
import { Link, Spacer } from '../components/helpers';
|
import { Link, Spacer } from '../components/helpers';
|
||||||
|
|
||||||
@ -25,17 +26,17 @@ const SponsorsPage = () => {
|
|||||||
</h3>
|
</h3>
|
||||||
<hr />
|
<hr />
|
||||||
<Row className='sls'>
|
<Row className='sls'>
|
||||||
<Link to='https://www.class-central.com'>
|
<Link className='sl' to='https://www.class-central.com'>
|
||||||
<img
|
<img
|
||||||
alt="Class Central's logo"
|
alt="Class Central's logo"
|
||||||
className='img-responsive sl'
|
className='img-responsive'
|
||||||
src='https://s3.amazonaws.com/freecodecamp/class-central-logo.jpg'
|
src='https://s3.amazonaws.com/freecodecamp/class-central-logo.jpg'
|
||||||
/>
|
/>
|
||||||
</Link>
|
</Link>
|
||||||
<Link to='https://www.tsugicloud.org'>
|
<Link className='sl' to='https://www.tsugicloud.org'>
|
||||||
<img
|
<img
|
||||||
alt="TsugiCloud's logo"
|
alt="TsugiCloud's logo"
|
||||||
className='img-responsive sl'
|
className='img-responsive'
|
||||||
src='https://s3.amazonaws.com/freecodecamp/tsugicloud-logo.png'
|
src='https://s3.amazonaws.com/freecodecamp/tsugicloud-logo.png'
|
||||||
/>
|
/>
|
||||||
</Link>
|
</Link>
|
||||||
@ -43,52 +44,112 @@ const SponsorsPage = () => {
|
|||||||
<h2>In-kind sponsors</h2>
|
<h2>In-kind sponsors</h2>
|
||||||
<h3>These companies donate their services to freeCodeCamp.org</h3>
|
<h3>These companies donate their services to freeCodeCamp.org</h3>
|
||||||
<hr />
|
<hr />
|
||||||
|
|
||||||
|
<Media query='(min-width: 500px)'>
|
||||||
|
{matches =>
|
||||||
|
matches ? (
|
||||||
|
<Fragment>
|
||||||
<Row className='sls'>
|
<Row className='sls'>
|
||||||
<Link to='https://netlify.com'>
|
<Link className='sl' to='https://netlify.com'>
|
||||||
<img
|
<img
|
||||||
alt="Netlify's logo"
|
alt="Netlify's logo"
|
||||||
className='img-responsive sl'
|
className='img-responsive'
|
||||||
src='https://s3.amazonaws.com/freecodecamp/netlify-logo.jpg'
|
src='https://s3.amazonaws.com/freecodecamp/netlify-logo.jpg'
|
||||||
/>
|
/>
|
||||||
</Link>
|
</Link>
|
||||||
<Link to='https://www.mlab.com/'>
|
<Link className='sl' to='https://www.mlab.com/'>
|
||||||
<img
|
<img
|
||||||
alt="mLab's logo"
|
alt="mLab's logo"
|
||||||
className='img-responsive sl'
|
className='img-responsive'
|
||||||
src='https://s3.amazonaws.com/freecodecamp/mLab-logo.png'
|
src='https://s3.amazonaws.com/freecodecamp/mLab-logo.png'
|
||||||
/>
|
/>
|
||||||
</Link>
|
</Link>
|
||||||
<Link to='https://auth0.com'>
|
<Link className='sl' to='https://auth0.com'>
|
||||||
<img
|
<img
|
||||||
alt="Auth0's logo"
|
alt="Auth0's logo"
|
||||||
className='img-responsive sl'
|
className='img-responsive'
|
||||||
src='https://s3.amazonaws.com/freecodecamp/auth0-logo.png'
|
src='https://s3.amazonaws.com/freecodecamp/auth0-logo.png'
|
||||||
/>
|
/>
|
||||||
</Link>
|
</Link>
|
||||||
</Row>
|
</Row>
|
||||||
<Row className='sls'>
|
<Row className='sls'>
|
||||||
<Link to='https://www.discourse.org/'>
|
<Link className='sl' to='https://www.discourse.org/'>
|
||||||
<img
|
<img
|
||||||
alt="Discourse's logo"
|
alt="Discourse's logo"
|
||||||
className='img-responsive sl'
|
className='img-responsive'
|
||||||
src='https://s3.amazonaws.com/freecodecamp/discourse-logo.png'
|
src='https://s3.amazonaws.com/freecodecamp/discourse-logo.png'
|
||||||
/>
|
/>
|
||||||
</Link>
|
</Link>
|
||||||
<Link to='https://algolia.com'>
|
<Link className='sl' to='https://algolia.com'>
|
||||||
<img
|
<img
|
||||||
alt="Algolia's logo"
|
alt="Algolia's logo"
|
||||||
className='img-responsive sl'
|
className='img-responsive'
|
||||||
src='https://s3.amazonaws.com/freecodecamp/algolia-logo.jpg'
|
src='https://s3.amazonaws.com/freecodecamp/algolia-logo.jpg'
|
||||||
/>
|
/>
|
||||||
</Link>
|
</Link>
|
||||||
<Link to='https://cloudflare.com'>
|
<Link className='sl' to='https://cloudflare.com'>
|
||||||
<img
|
<img
|
||||||
alt="Cloudflare's logo"
|
alt="Cloudflare's logo"
|
||||||
className='img-responsive sl'
|
className='img-responsive'
|
||||||
src='https://s3.amazonaws.com/freecodecamp/cloudflare-logo.jpg'
|
src='https://s3.amazonaws.com/freecodecamp/cloudflare-logo.jpg'
|
||||||
/>
|
/>
|
||||||
</Link>
|
</Link>
|
||||||
</Row>
|
</Row>
|
||||||
|
</Fragment>
|
||||||
|
) : (
|
||||||
|
<Fragment>
|
||||||
|
<Row className='sls'>
|
||||||
|
<Link className='sl' to='https://netlify.com'>
|
||||||
|
<img
|
||||||
|
alt="Netlify's logo"
|
||||||
|
className='img-responsive'
|
||||||
|
src='https://s3.amazonaws.com/freecodecamp/netlify-logo.jpg'
|
||||||
|
/>
|
||||||
|
</Link>
|
||||||
|
<Link className='sl' to='https://www.mlab.com/'>
|
||||||
|
<img
|
||||||
|
alt="mLab's logo"
|
||||||
|
className='img-responsive'
|
||||||
|
src='https://s3.amazonaws.com/freecodecamp/mLab-logo.png'
|
||||||
|
/>
|
||||||
|
</Link>
|
||||||
|
</Row>
|
||||||
|
<Row className='sls'>
|
||||||
|
<Link className='sl' to='https://auth0.com'>
|
||||||
|
<img
|
||||||
|
alt="Auth0's logo"
|
||||||
|
className='img-responsive'
|
||||||
|
src='https://s3.amazonaws.com/freecodecamp/auth0-logo.png'
|
||||||
|
/>
|
||||||
|
</Link>
|
||||||
|
<Link className='sl' to='https://www.discourse.org/'>
|
||||||
|
<img
|
||||||
|
alt="Discourse's logo"
|
||||||
|
className='img-responsive'
|
||||||
|
src='https://s3.amazonaws.com/freecodecamp/discourse-logo.png'
|
||||||
|
/>
|
||||||
|
</Link>
|
||||||
|
</Row>
|
||||||
|
<Row className='sls'>
|
||||||
|
<Link className='sl' to='https://algolia.com'>
|
||||||
|
<img
|
||||||
|
alt="Algolia's logo"
|
||||||
|
className='img-responsive'
|
||||||
|
src='https://s3.amazonaws.com/freecodecamp/algolia-logo.jpg'
|
||||||
|
/>
|
||||||
|
</Link>
|
||||||
|
<Link className='sl' to='https://cloudflare.com'>
|
||||||
|
<img
|
||||||
|
alt="Cloudflare's logo"
|
||||||
|
className='img-responsive'
|
||||||
|
src='https://s3.amazonaws.com/freecodecamp/cloudflare-logo.jpg'
|
||||||
|
/>
|
||||||
|
</Link>
|
||||||
|
</Row>
|
||||||
|
</Fragment>
|
||||||
|
)
|
||||||
|
}
|
||||||
|
</Media>
|
||||||
</Col>
|
</Col>
|
||||||
</Row>
|
</Row>
|
||||||
</Grid>
|
</Grid>
|
||||||
|
Reference in New Issue
Block a user