You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@dubbo.apache.org by il...@apache.org on 2018/08/13 09:43:16 UTC

[incubator-dubbo-website] branch asf-site updated: adjust home page buttons (#89)

This is an automated email from the ASF dual-hosted git repository.

iluo pushed a commit to branch asf-site
in repository https://gitbox.apache.org/repos/asf/incubator-dubbo-website.git


The following commit(s) were added to refs/heads/asf-site by this push:
     new 84faa66  adjust home page buttons (#89)
84faa66 is described below

commit 84faa66f40b889b486caa168a6ba123f702bc5eb
Author: chenliandong <li...@alibaba-inc.com>
AuthorDate: Mon Aug 13 17:43:14 2018 +0800

    adjust home page buttons (#89)
    
    * feat: 新版站点
    
    * fix: issue #14
    
    * feat: build
    
    * feat:  optimization for loading js
    
    * chore: adjust build for loading js
    
    * fix: [issue28](https://github.com/apache/incubator-dubbo-website/issues/28) not compiled
    
    * feat: 修改hash类型,支持Google爬虫SEO
    
    * fix: docs page sidemenu unselected
    
    * add star icon && optimize for build
    
    * use react github button
    
    * add attendtion
    
    * build
    
    * modify README.md
    
    * 调整首页按钮颜色
    
    * build
---
 build/home.css                   | 13 +------------
 build/home.js                    |  2 +-
 en-us/index.html                 |  2 +-
 src/components/button/index.scss |  2 ++
 src/pages/home/index.jsx         |  4 ++--
 src/pages/home/index.scss        | 13 -------------
 zh-cn/index.html                 |  2 +-
 7 files changed, 8 insertions(+), 30 deletions(-)

diff --git a/build/home.css b/build/home.css
index 5c842d9..816b4c5 100644
--- a/build/home.css
+++ b/build/home.css
@@ -200,6 +200,7 @@
   height: 48px;
   line-height: 48px;
   min-width: 140px;
+  padding: 0 12px;
   font-family: Avenir-Heavy;
   font-size: 16px;
   color: #FFF;
@@ -984,18 +985,6 @@ h1, h2, h3, h4, h5, h6 {
   .home-page .top-section .button-area {
     text-align: center;
     margin-top: 40px; }
-    .home-page .top-section .button-area .button {
-      display: inline-block;
-      background-color: #fff;
-      border-radius: 4px;
-      width: 140px;
-      height: 54px;
-      line-height: 54px;
-      color: #2DACEC;
-      font-family: Avenir-Heavy;
-      font-size: 14px;
-      color: #2DACEC;
-      text-align: center; }
     .home-page .top-section .button-area .button:first-child {
       margin-right: 20px; }
 
diff --git a/build/home.js b/build/home.js
index 83de2d7..763f4a1 100644
--- a/build/home.js
+++ b/build/home.js
@@ -3,4 +3,4 @@
   Licensed under the MIT License (MIT), see
   http://jedwatson.github.io/classnames
 */
-!function(){"use strict";function n(){for(var e=[],t=0;t<arguments.length;t++){var r=arguments[t];if(r){var o=typeof r;if("string"===o||"number"===o)e.push(r);else if(Array.isArray(r))e.push(n.apply(null,r));else if("object"===o)for(var a in r)i.call(r,a)&&r[a]&&e.push(a)}}return e.join(" ")}var i={}.hasOwnProperty;void 0!==e&&e.exports?e.exports=n:(r=[],void 0!==(o=function(){return n}.apply(t,r))&&(e.exports=o))}()},function(e,t,n){"use strict";function r(e,t,r){var o=r.configurable,u= [...]
\ No newline at end of file
+!function(){"use strict";function n(){for(var e=[],t=0;t<arguments.length;t++){var r=arguments[t];if(r){var o=typeof r;if("string"===o||"number"===o)e.push(r);else if(Array.isArray(r))e.push(n.apply(null,r));else if("object"===o)for(var a in r)i.call(r,a)&&r[a]&&e.push(a)}}return e.join(" ")}var i={}.hasOwnProperty;void 0!==e&&e.exports?e.exports=n:(r=[],void 0!==(o=function(){return n}.apply(t,r))&&(e.exports=o))}()},function(e,t,n){"use strict";function r(e,t,r){var o=r.configurable,u= [...]
\ No newline at end of file
diff --git a/en-us/index.html b/en-us/index.html
index 8676dbc..fc7ce68 100644
--- a/en-us/index.html
+++ b/en-us/index.html
@@ -12,7 +12,7 @@
 	<link rel="stylesheet" href="/build/home.css" />
 </head>
 <body>
-	<div id="root"><div class="home-page" data-reactroot="" data-reactid="1" data-react-checksum="-1877877022"><section class="top-section" data-reactid="2"><header class="header-container header-container-primary" data-reactid="3"><div class="header-body" data-reactid="4"><a href="/en-us/index.html" data-reactid="5"><img class="logo" src="/img/dubbo_white.png" data-reactid="6"/></a><span class="language-switch language-switch-primary" data-reactid="7">中</span><div class="header-menu" data- [...]
+	<div id="root"><div class="home-page" data-reactroot="" data-reactid="1" data-react-checksum="-181081629"><section class="top-section" data-reactid="2"><header class="header-container header-container-primary" data-reactid="3"><div class="header-body" data-reactid="4"><a href="/en-us/index.html" data-reactid="5"><img class="logo" src="/img/dubbo_white.png" data-reactid="6"/></a><span class="language-switch language-switch-primary" data-reactid="7">中</span><div class="header-menu" data-r [...]
 	<script src="https://f.alicdn.com/react/15.4.1/react-with-addons.min.js"></script>
 	<script src="https://f.alicdn.com/react/15.4.1/react-dom.min.js"></script>
 	<script>
diff --git a/src/components/button/index.scss b/src/components/button/index.scss
index d39f362..46ed515 100644
--- a/src/components/button/index.scss
+++ b/src/components/button/index.scss
@@ -1,9 +1,11 @@
+@import '../../variables.scss';
 .button {
     box-sizing: border-box;
     display: inline-block;
     height: 48px;
     line-height: 48px;
     min-width: 140px;
+    padding: 0 12px;
     font-family: Avenir-Heavy;
     font-size: 16px;
     color: #FFF;
diff --git a/src/pages/home/index.jsx b/src/pages/home/index.jsx
index 2706453..f7c8aed 100644
--- a/src/pages/home/index.jsx
+++ b/src/pages/home/index.jsx
@@ -72,8 +72,8 @@ class Home extends Language {
             </div>
             <p className="product-desc">{dataSource.brand.briefIntroduction}</p>
             <div className="button-area">
-              <a className="button" href={getLink(dataSource.brand.getStartedButton.link)}>{dataSource.brand.getStartedButton.text}</a>
-              <Button type="primary" link={getLink(dataSource.brand.viewOnGithubButton.link)}>{dataSource.brand.viewOnGithubButton.text}</Button>
+              <Button type="primary" link={getLink(dataSource.brand.getStartedButton.link)}>{dataSource.brand.getStartedButton.text}</Button>
+              <Button type="normal" link={getLink(dataSource.brand.viewOnGithubButton.link)}>{dataSource.brand.viewOnGithubButton.text}</Button>
             </div>
           </div>
           <div className="animation animation1" />
diff --git a/src/pages/home/index.scss b/src/pages/home/index.scss
index a47cddb..71ddeda 100644
--- a/src/pages/home/index.scss
+++ b/src/pages/home/index.scss
@@ -124,19 +124,6 @@
     .button-area {
       text-align: center;
       margin-top: 40px;
-      .button {
-        display: inline-block;
-        background-color: #fff;
-        border-radius: 4px;
-        width: 140px;
-        height: 54px;
-        line-height: 54px;
-        color: $brandColor;
-        font-family: Avenir-Heavy;
-        font-size: 14px;
-        color: #2DACEC;
-        text-align: center;
-      }
       .button:first-child {
         margin-right: 20px;
       }
diff --git a/zh-cn/index.html b/zh-cn/index.html
index d2501f2..0b401ae 100644
--- a/zh-cn/index.html
+++ b/zh-cn/index.html
@@ -12,7 +12,7 @@
 	<link rel="stylesheet" href="/build/home.css" />
 </head>
 <body>
-	<div id="root"><div class="home-page" data-reactroot="" data-reactid="1" data-react-checksum="-1426639043"><section class="top-section" data-reactid="2"><header class="header-container header-container-primary" data-reactid="3"><div class="header-body" data-reactid="4"><a href="/zh-cn/index.html" data-reactid="5"><img class="logo" src="/img/dubbo_white.png" data-reactid="6"/></a><span class="language-switch language-switch-primary" data-reactid="7">En</span><div class="header-menu" data [...]
+	<div id="root"><div class="home-page" data-reactroot="" data-reactid="1" data-react-checksum="-33865154"><section class="top-section" data-reactid="2"><header class="header-container header-container-primary" data-reactid="3"><div class="header-body" data-reactid="4"><a href="/zh-cn/index.html" data-reactid="5"><img class="logo" src="/img/dubbo_white.png" data-reactid="6"/></a><span class="language-switch language-switch-primary" data-reactid="7">En</span><div class="header-menu" data-r [...]
 	<script src="https://f.alicdn.com/react/15.4.1/react-with-addons.min.js"></script>
 	<script src="https://f.alicdn.com/react/15.4.1/react-dom.min.js"></script>
 	<script>