Files
developer-roadmap/components/sponsor-banner/index.js
2020-02-01 17:08:34 +04:00

28 lines
875 B
JavaScript

import React from 'react';
import { BannerWrap, CloseSponsor, EmojiWrap, SponsorLogo } from './style';
export function SponsorBanner({ onCloseBanner = () => null }){
return (
<div className='row'>
<div className='col p-0'>
<BannerWrap
href={`https://try.digitalocean.com/developer-cloud/?utm_source=roadmapsh&utm_medium=partnerships`}
target='_blank'
className='alert alert-info'
>
<SponsorLogo src='/sponsors/do.svg' />
Sponsored by DigitalOcean
<EmojiWrap src={'/sponsors/heart-eyes.svg'} />
Check them out!
<CloseSponsor
onClick={(e) => {
e.preventDefault();
onCloseBanner();
}}
className='close'>&times;</CloseSponsor>
</BannerWrap>
</div>
</div>
);
}