Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[WIP] Gamerzclass #2198

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,4 @@ ENV NPM_CONFIG_LOGLEVEL warn

WORKDIR /usr/src

CMD ["npm", "start:install"]
CMD ["npm", "run", "start:install"]
41 changes: 30 additions & 11 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Binary file removed public/assets/images/dotacoach-32x24.png
Binary file not shown.
Binary file removed public/assets/images/dotacoach-logo.png
Binary file not shown.
Binary file added public/assets/images/gamerzclass-24px.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/assets/images/gamerzclass-logo.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
57 changes: 35 additions & 22 deletions src/components/Home/Sponsors.jsx
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
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';
import React from "react";
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

auto format quote change?

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";

const StyledDiv = styled.div`
display: flex;
Expand Down Expand Up @@ -35,33 +35,46 @@ const StyledDiv = styled.div`

const Sponsors = ({ strings }) => (
<StyledDiv>
<div className="headline">
{strings.home_sponsored_by}
</div>
<div className="headline">{strings.home_sponsored_by}</div>
<div className="images">
<a href="//dotacoach.org" target="_blank" rel="noopener noreferrer">
<img src="/assets/images/dotacoach-logo.png" alt="" />
<a href="//gamerzclass.com" target="_blank" rel="noopener noreferrer">
<img src="/assets/images/gamerzclass-logo.png" alt="" />
</a>
<a href="http://www.vpgame.com/" target="_blank" rel="noopener noreferrer">
<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">
<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">
<a
href="https://www.rivalry.com/opendota"
target="_blank"
rel="noopener noreferrer"
>
<img src="/assets/images/rivalry-logo.png" alt="" />
</a>
{ process.env.ENABLE_GOSUAI &&
<a href="https://gosu.ai/dota/?utm_source=opendota&utm_medium=cpc&utm_campaign=Home" target="_blank" rel="noopener noreferrer">
{process.env.ENABLE_GOSUAI && (
<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> }
</a>
)}
</div>
<ButtonsDiv>
<FlatButton
label={
<span style={{ fontWeight: 300 }}>
{strings.home_become_sponsor}
</span>
<span style={{ fontWeight: 300 }}>{strings.home_become_sponsor}</span>
}
href="//carry.opendota.com"
/>
Expand All @@ -70,11 +83,11 @@ const Sponsors = ({ strings }) => (
);

Sponsors.propTypes = {
strings: PropTypes.shape({}),
strings: PropTypes.shape({})
};

const mapStateToProps = state => ({
strings: state.app.strings,
strings: state.app.strings
});

export default connect(mapStateToProps)(Sponsors);
Loading