aboutsummaryrefslogtreecommitdiffstats
path: root/server/sonar-web/src/main/js/apps/about/components/AboutRulesForSonarQubeDotCom.js
diff options
context:
space:
mode:
authorStas Vilchik <vilchiks@gmail.com>2017-02-07 16:31:36 +0100
committerStas Vilchik <stas-vilchik@users.noreply.github.com>2017-02-08 16:25:16 +0100
commit7e62aa89c132359ea678677d89943efefcaae7e8 (patch)
treeacb9699d1f3a33d0980e952b28d19c0373cb35b8 /server/sonar-web/src/main/js/apps/about/components/AboutRulesForSonarQubeDotCom.js
parent6d40de520d8927f6d2b9da67b427e8b589075fe4 (diff)
downloadsonarqube-7e62aa89c132359ea678677d89943efefcaae7e8.tar.gz
sonarqube-7e62aa89c132359ea678677d89943efefcaae7e8.zip
SONAR-8750 Display a branding landing page
Diffstat (limited to 'server/sonar-web/src/main/js/apps/about/components/AboutRulesForSonarQubeDotCom.js')
-rw-r--r--server/sonar-web/src/main/js/apps/about/components/AboutRulesForSonarQubeDotCom.js49
1 files changed, 49 insertions, 0 deletions
diff --git a/server/sonar-web/src/main/js/apps/about/components/AboutRulesForSonarQubeDotCom.js b/server/sonar-web/src/main/js/apps/about/components/AboutRulesForSonarQubeDotCom.js
new file mode 100644
index 00000000000..d16567bf084
--- /dev/null
+++ b/server/sonar-web/src/main/js/apps/about/components/AboutRulesForSonarQubeDotCom.js
@@ -0,0 +1,49 @@
+/*
+ * SonarQube
+ * Copyright (C) 2009-2016 SonarSource SA
+ * mailto:contact AT sonarsource DOT com
+ *
+ * This program is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License as published by the Free Software Foundation; either
+ * version 3 of the License, or (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public License
+ * along with this program; if not, write to the Free Software Foundation,
+ * Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
+ */
+// @flow
+import React from 'react';
+import { Link } from 'react-router';
+import { getRulesUrl } from '../../../helpers/urls';
+
+export default class AboutRulesForSonarQubeDotCom extends React.Component {
+ render () {
+ return (
+ <div className="sqcom-about-rules">
+ <div className="about-page-container">
+ <Link to={getRulesUrl()} className="sqcom-about-rules-link">
+ +2000 rules
+ <span className="spacer-left">
+ <svg width="15" height="36" viewBox="0 0 15 36">
+ <g transform="matrix(1,0,0,1,-267,-362)">
+ <path d="M268,363L281,380L269,397" style={{ fill: 'none', stroke: '#c1d9ea', strokeWidth: 1 }}/>
+ </g>
+ </svg>
+ </span>
+ </Link>
+ <Link to={getRulesUrl({ languages: 'js' })} className="sqcom-about-rules-link">JavaScript</Link>
+ <Link to={getRulesUrl({ languages: 'java' })} className="sqcom-about-rules-link">Java</Link>
+ <Link to={getRulesUrl({ languages: 'c,cpp' })} className="sqcom-about-rules-link">C/C++</Link>
+ <Link to={getRulesUrl({ languages: 'cs' })} className="sqcom-about-rules-link">C#</Link>
+ <Link to={getRulesUrl()} className="button">And More</Link>
+ </div>
+ </div>
+ );
+ }
+}