Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import React from 'react';
- import FlatButton from 'material-ui/FlatButton';
- import { connect } from 'react-redux';
- import PropTypes from 'prop-types';
- import styled from 'styled-components';
- import { ButtonsDiv } from './Styled';
- // sponsors style
- const StyledDiv = styled.div`
- display: flex;
- flex-direction: column;
- align-items: center;
- margin-top: 30px;
- margin-bottom: 20px;
- text-align: center;
- & .headline {
- text-transform: uppercase;
- margin-bottom: 20px;
- font-size: 20px;
- }
- & img {
- height: 32px;
- margin: 10px 15px;
- transition: var(--normalTransition);
- }
- & a {
- background-color: transparent !important;
- padding: 0 !important;
- border-width: 1px !important;
- border-radius: 0 !important;
- }
- `;
- // display sponsor links
- const Sponsors = ({ strings }) => {
- return (<StyledDiv>
- <div className="headline">{strings.home_sponsored_by}</div>
- <div className="images">
- <a
- href="http://www.vpgame.com/"
- target="_blank"
- rel="noopener noreferrer"
- >
- <img src="/assets/images/vp-logo.png" alt="" />
- </a>
- <a
- href="https://www.openai.com"
- target="_blank"
- rel="noopener noreferrer"
- >
- <img src="/assets/images/openai-logo.png" alt="" />
- </a>
- <a
- href="https://www.rivalry.com/opendota"
- target="_blank"
- rel="noopener noreferrer"
- >
- <img src="/assets/images/rivalry-logo.png" alt="" />
- </a>
- <a
- href="https://gosu.ai/dota/?utm_source=opendota&utm_medium=cpc&utm_campaign=Home"
- target="_blank"
- rel="noopener noreferrer"
- >
- <img src="/assets/images/gosu-logo.png" alt="" />
- </a>
- </div>
- <ButtonsDiv>
- <FlatButton
- label={
- <span style={{ fontWeight: 300 }}>{strings.home_become_sponsor}</span>
- }
- href="//carry.opendota.com"
- />
- </ButtonsDiv>
- </StyledDiv>);
- };
- Sponsors.propTypes = {
- strings: PropTypes.shape({}),
- };
- const mapStateToProps = state => ({
- strings: state.app.strings,
- });
- export default connect(mapStateToProps)(Sponsors);
Add Comment
Please, Sign In to add comment