This repository has been archived by the owner on Jun 2, 2023. It is now read-only.
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
42 changed files
with
840 additions
and
261 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,101 @@ | ||
import * as React from "react"; | ||
import { Row, Col } from "antd"; | ||
import classNames from "classnames"; | ||
import googleLogo from "assets/images/customers/google_logo.png"; | ||
import facebookLogo from "assets/images/customers/facebook_logo.png"; | ||
import redHatLogo from "assets/images/customers/red_hat_logo.png"; | ||
import yahooLogo from "assets/images/customers/yahoo_logo.png"; | ||
import ibmLogo from "assets/images/customers/ibm_logo.png"; | ||
import xiaomiLogo from "assets/images/customers/xiaomi_logo.png"; | ||
import samsungLogo from "assets/images/customers/samsung_logo.png"; | ||
import nytLogo from "assets/images/customers/nyt_logo.png"; | ||
import istioLogo from "assets/images/customers/istio_logo.png"; | ||
import zalandoLogo from "assets/images/customers/zalando_logo.png"; | ||
import awsLogo from "assets/images/customers/aws_logo.png"; | ||
import netflixLogo from "assets/images/customers/netflix_logo.png"; | ||
|
||
const usesCI = "usesCI"; | ||
const usesLint = "usesLint"; | ||
|
||
const customers = [ | ||
["Google", googleLogo, "google/keytransparency", usesCI], | ||
["Facebook", facebookLogo, "facebookincubator/magma", usesLint], | ||
["AWS", awsLogo, "aws/aws-xray-sdk-go", usesLint], | ||
["Netflix", netflixLogo, "Netflix/titus-executor", usesLint, "img-responsive-80"], | ||
["Yahoo!", yahooLogo, "yahoo/yfuzz", usesCI, "img-responsive-80"], | ||
["IBM", ibmLogo, "ibm-developer/ibm-cloud-env-golang", usesLint, "img-responsive-80"], | ||
|
||
// second row | ||
["Xiaomi", xiaomiLogo, "XiaoMi/soar", usesLint, "img-responsive-80"], | ||
["Samsung", samsungLogo, "samsung-cnct/cluster-api-provider-ssh", usesLint, "img-responsive-100"], | ||
["Istio", istioLogo, "istio/istio", usesCI, "img-responsive-80"], | ||
["Zalando", zalandoLogo, "zalando/postgres-operator", usesCI, "img-responsive-80"], | ||
["Red Hat", redHatLogo, "openshift/odo", usesCI], | ||
["The New York Times", nytLogo, "NYTimes/encoding-wrapper", usesLint, "img-responsive-100"], | ||
]; | ||
|
||
const mostStarredRepos = [ | ||
"avelino/awesome-go", | ||
"syncthing/syncthing", | ||
"istio/istio", | ||
"ncw/rclone", | ||
"jesseduffield/lazygit", | ||
"tsenart/vegeta", | ||
"dgraph-io/dgraph", | ||
"future-architect/vuls", | ||
"dgraph-io/badger", | ||
"loadimpact/k6", | ||
"developer-learning/reading-go", | ||
"go-swagger/go-swagger", | ||
"gaia-pipeline/gaia", | ||
"montferret/ferret", | ||
"appleboy/gorush", | ||
"smallnest/rpcx", | ||
"michaelmure/git-bug", | ||
"tendermint/tendermint", | ||
"ovh/cds", | ||
]; | ||
|
||
const renderCustomer = (cust: any) => ( | ||
<Col xs={4}> | ||
<div className="flex-row-for-vertical-align"> | ||
<a target="_blank" href={cust[3] === usesCI ? `https://golangci.com/r/github.com/${cust[2]}` : `https://github.com/${cust[2]}`}> | ||
<img | ||
className={classNames(cust[4] ? cust[4] : "img-responsive-50", "flex-vertical-align")} | ||
alt={`${cust[0]} Logo`} | ||
src={cust[1]} | ||
/> | ||
</a> | ||
</div> | ||
</Col> | ||
); | ||
|
||
const getRandomConnectedRepos = (n: number) => { | ||
const shuffled = mostStarredRepos.sort(() => 0.5 - Math.random()); | ||
return shuffled.slice(0, n).map((repo) => ( | ||
<a target="_blank" href={`https://golangci.com/r/github.com/${repo}`}><b>{repo}</b></a> | ||
)).reduce((result, item) => <>{result}, {item}</>); | ||
}; | ||
|
||
const Customers: React.StatelessComponent<any> = (props) => ( | ||
<section className="home-section home-section-padded home-section-gradient"> | ||
<div className="home-section-content"> | ||
<Row type="flex" justify="center"> | ||
<p id="customers" className="home-section-header">Thousands of companies trust GolangCI</p> | ||
</Row> | ||
<Row type="flex" align="middle"> | ||
{customers.slice(0, customers.length / 2).map(renderCustomer)} | ||
</Row> | ||
<Row type="flex" align="middle" className="next-row-in-section"> | ||
{customers.slice(customers.length / 2).map(renderCustomer)} | ||
</Row> | ||
<Row type="flex" justify="center" className="next-row-in-section"> | ||
<div className="full-screen-image"> | ||
<p className="home-section-text">Some random connected to GolangCI repos: {getRandomConnectedRepos(3)}</p> | ||
</div> | ||
</Row> | ||
</div> | ||
</section> | ||
); | ||
|
||
export default Customers; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,51 @@ | ||
import * as React from "react"; | ||
import { Row, Button, Icon } from "antd"; | ||
import prCommentDemoImage from "assets/images/home/pr-comment-demo.png"; | ||
import githubStatusImage from "assets/images/home/github-status.png"; | ||
import { Link } from "react-router-dom"; | ||
|
||
interface IOwnProps { | ||
showLinkOnMoreDetails: boolean; | ||
} | ||
|
||
interface IProps extends IOwnProps {} | ||
|
||
class ProductIntro extends React.Component<IProps> { | ||
public render() { | ||
return ( | ||
<section className="home-section home-section-padded home-section-gradient"> | ||
<div className="home-section-content"> | ||
<Row type="flex" justify="center"> | ||
<p id="integrated-with-github" className="home-section-header">Integrated with GitHub</p> | ||
</Row> | ||
<Row type="flex" justify="center"> | ||
<div className="full-screen-image"> | ||
<p className="home-section-text">GolangCI works with GitHub pull requests. It comments lines in a changed code with found issues.</p> | ||
|
||
<img className="img-responsive" alt="Demo of integration of GolangCI with GitHub Pull Requests" src={prCommentDemoImage} /> | ||
</div> | ||
</Row> | ||
<Row type="flex" justify="center"> | ||
<div className="home-github-status-demo"> | ||
<p className="home-section-text">GolangCI sets a GitHub pull request status: success or failure (issues were found).</p> | ||
<img className="img-responsive" alt="Demo of integration of GolangCI with GitHub Commit Statuses" src={githubStatusImage} /> | ||
</div> | ||
</Row> | ||
|
||
{this.props.showLinkOnMoreDetails && ( | ||
<Row type="flex" justify="center" className="next-row-in-section"> | ||
<Link to="/product"> | ||
<Button type="primary" size="large"> | ||
<Icon type="deployment-unit" /> | ||
See all features | ||
</Button> | ||
</Link> | ||
</Row> | ||
)} | ||
</div> | ||
</section> | ||
); | ||
} | ||
} | ||
|
||
export default ProductIntro; |
Oops, something went wrong.