Skip to content

Commit

Permalink
add google and baidu search (#153)
Browse files Browse the repository at this point in the history
* feat: 新版站点

* fix: issue #14

* feat: build

* feat:  optimization for loading js

* chore: adjust build for loading js

* fix: [issue28](#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

* feat: add google and baidu search

* feat: build
  • Loading branch information
purple-force authored and jerrick-zhu committed Sep 17, 2018
1 parent 810b792 commit 544ab56
Show file tree
Hide file tree
Showing 397 changed files with 1,219 additions and 789 deletions.
59 changes: 58 additions & 1 deletion build/blog.css
Expand Up @@ -54,7 +54,6 @@
opacity: 1; }
.header-container .header-body .language-switch {
float: right;
display: inline-block;
box-sizing: border-box;
width: 24px;
height: 24px;
Expand All @@ -75,6 +74,64 @@
.header-container .header-body .language-switch-normal {
border: 1px solid #333;
color: #333; }
.header-container .header-body .search {
float: right;
width: 24px;
height: 24px;
margin-top: 21px;
margin-right: 40px;
line-height: normal;
position: relative; }
.header-container .header-body .search .icon-search {
display: inline-block;
cursor: pointer;
width: 12px;
height: 12px;
border-radius: 50%;
border: 2px solid;
position: relative; }
.header-container .header-body .search .icon-search::before {
content: '';
transform: rotate(45deg);
width: 8px;
height: 2px;
position: absolute;
top: 13px;
left: 11px; }
.header-container .header-body .search-primary .icon-search {
border-color: #fff;
opacity: 0.6; }
.header-container .header-body .search-primary .icon-search::before {
background-color: #fff; }
.header-container .header-body .search-primary .icon-search:hover {
opacity: 1; }
.header-container .header-body .search-normal .icon-search {
border-color: #333;
opacity: 0.6; }
.header-container .header-body .search-normal .icon-search::before {
background-color: #333; }
.header-container .header-body .search-normal .icon-search:hover {
opacity: 1; }
.header-container .header-body .search .search-input {
position: absolute;
left: -172px;
top: 28px;
background: #fff;
border-radius: 4px;
overflow: hidden;
box-shadow: 0 8px 16px 0 rgba(0, 0, 0, 0.05), 0 -8px 16px 0 rgba(0, 0, 0, 0.05); }
.header-container .header-body .search .search-input img {
width: 28px;
height: 28px;
cursor: pointer;
vertical-align: middle; }
.header-container .header-body .search .search-input input {
padding: 0 4px;
border: none;
outline: none;
width: 160px;
height: 24px;
vertical-align: middle; }

@media screen and (max-width: 640px) {
.header-container .header-body .logo {
Expand Down
6 changes: 3 additions & 3 deletions build/blog.js

Large diffs are not rendered by default.

59 changes: 58 additions & 1 deletion build/blogDetail.css
Expand Up @@ -54,7 +54,6 @@
opacity: 1; }
.header-container .header-body .language-switch {
float: right;
display: inline-block;
box-sizing: border-box;
width: 24px;
height: 24px;
Expand All @@ -75,6 +74,64 @@
.header-container .header-body .language-switch-normal {
border: 1px solid #333;
color: #333; }
.header-container .header-body .search {
float: right;
width: 24px;
height: 24px;
margin-top: 21px;
margin-right: 40px;
line-height: normal;
position: relative; }
.header-container .header-body .search .icon-search {
display: inline-block;
cursor: pointer;
width: 12px;
height: 12px;
border-radius: 50%;
border: 2px solid;
position: relative; }
.header-container .header-body .search .icon-search::before {
content: '';
transform: rotate(45deg);
width: 8px;
height: 2px;
position: absolute;
top: 13px;
left: 11px; }
.header-container .header-body .search-primary .icon-search {
border-color: #fff;
opacity: 0.6; }
.header-container .header-body .search-primary .icon-search::before {
background-color: #fff; }
.header-container .header-body .search-primary .icon-search:hover {
opacity: 1; }
.header-container .header-body .search-normal .icon-search {
border-color: #333;
opacity: 0.6; }
.header-container .header-body .search-normal .icon-search::before {
background-color: #333; }
.header-container .header-body .search-normal .icon-search:hover {
opacity: 1; }
.header-container .header-body .search .search-input {
position: absolute;
left: -172px;
top: 28px;
background: #fff;
border-radius: 4px;
overflow: hidden;
box-shadow: 0 8px 16px 0 rgba(0, 0, 0, 0.05), 0 -8px 16px 0 rgba(0, 0, 0, 0.05); }
.header-container .header-body .search .search-input img {
width: 28px;
height: 28px;
cursor: pointer;
vertical-align: middle; }
.header-container .header-body .search .search-input input {
padding: 0 4px;
border: none;
outline: none;
width: 160px;
height: 24px;
vertical-align: middle; }

@media screen and (max-width: 640px) {
.header-container .header-body .logo {
Expand Down
6 changes: 3 additions & 3 deletions build/blogDetail.js

Large diffs are not rendered by default.

59 changes: 58 additions & 1 deletion build/community.css
Expand Up @@ -54,7 +54,6 @@
opacity: 1; }
.header-container .header-body .language-switch {
float: right;
display: inline-block;
box-sizing: border-box;
width: 24px;
height: 24px;
Expand All @@ -75,6 +74,64 @@
.header-container .header-body .language-switch-normal {
border: 1px solid #333;
color: #333; }
.header-container .header-body .search {
float: right;
width: 24px;
height: 24px;
margin-top: 21px;
margin-right: 40px;
line-height: normal;
position: relative; }
.header-container .header-body .search .icon-search {
display: inline-block;
cursor: pointer;
width: 12px;
height: 12px;
border-radius: 50%;
border: 2px solid;
position: relative; }
.header-container .header-body .search .icon-search::before {
content: '';
transform: rotate(45deg);
width: 8px;
height: 2px;
position: absolute;
top: 13px;
left: 11px; }
.header-container .header-body .search-primary .icon-search {
border-color: #fff;
opacity: 0.6; }
.header-container .header-body .search-primary .icon-search::before {
background-color: #fff; }
.header-container .header-body .search-primary .icon-search:hover {
opacity: 1; }
.header-container .header-body .search-normal .icon-search {
border-color: #333;
opacity: 0.6; }
.header-container .header-body .search-normal .icon-search::before {
background-color: #333; }
.header-container .header-body .search-normal .icon-search:hover {
opacity: 1; }
.header-container .header-body .search .search-input {
position: absolute;
left: -172px;
top: 28px;
background: #fff;
border-radius: 4px;
overflow: hidden;
box-shadow: 0 8px 16px 0 rgba(0, 0, 0, 0.05), 0 -8px 16px 0 rgba(0, 0, 0, 0.05); }
.header-container .header-body .search .search-input img {
width: 28px;
height: 28px;
cursor: pointer;
vertical-align: middle; }
.header-container .header-body .search .search-input input {
padding: 0 4px;
border: none;
outline: none;
width: 160px;
height: 24px;
vertical-align: middle; }

@media screen and (max-width: 640px) {
.header-container .header-body .logo {
Expand Down
6 changes: 3 additions & 3 deletions build/community.js

Large diffs are not rendered by default.

59 changes: 58 additions & 1 deletion build/documentation.css
Expand Up @@ -54,7 +54,6 @@
opacity: 1; }
.header-container .header-body .language-switch {
float: right;
display: inline-block;
box-sizing: border-box;
width: 24px;
height: 24px;
Expand All @@ -75,6 +74,64 @@
.header-container .header-body .language-switch-normal {
border: 1px solid #333;
color: #333; }
.header-container .header-body .search {
float: right;
width: 24px;
height: 24px;
margin-top: 21px;
margin-right: 40px;
line-height: normal;
position: relative; }
.header-container .header-body .search .icon-search {
display: inline-block;
cursor: pointer;
width: 12px;
height: 12px;
border-radius: 50%;
border: 2px solid;
position: relative; }
.header-container .header-body .search .icon-search::before {
content: '';
transform: rotate(45deg);
width: 8px;
height: 2px;
position: absolute;
top: 13px;
left: 11px; }
.header-container .header-body .search-primary .icon-search {
border-color: #fff;
opacity: 0.6; }
.header-container .header-body .search-primary .icon-search::before {
background-color: #fff; }
.header-container .header-body .search-primary .icon-search:hover {
opacity: 1; }
.header-container .header-body .search-normal .icon-search {
border-color: #333;
opacity: 0.6; }
.header-container .header-body .search-normal .icon-search::before {
background-color: #333; }
.header-container .header-body .search-normal .icon-search:hover {
opacity: 1; }
.header-container .header-body .search .search-input {
position: absolute;
left: -172px;
top: 28px;
background: #fff;
border-radius: 4px;
overflow: hidden;
box-shadow: 0 8px 16px 0 rgba(0, 0, 0, 0.05), 0 -8px 16px 0 rgba(0, 0, 0, 0.05); }
.header-container .header-body .search .search-input img {
width: 28px;
height: 28px;
cursor: pointer;
vertical-align: middle; }
.header-container .header-body .search .search-input input {
padding: 0 4px;
border: none;
outline: none;
width: 160px;
height: 24px;
vertical-align: middle; }

@media screen and (max-width: 640px) {
.header-container .header-body .logo {
Expand Down
6 changes: 3 additions & 3 deletions build/documentation.js

Large diffs are not rendered by default.

61 changes: 59 additions & 2 deletions build/home.css
Expand Up @@ -54,7 +54,6 @@
opacity: 1; }
.header-container .header-body .language-switch {
float: right;
display: inline-block;
box-sizing: border-box;
width: 24px;
height: 24px;
Expand All @@ -75,6 +74,64 @@
.header-container .header-body .language-switch-normal {
border: 1px solid #333;
color: #333; }
.header-container .header-body .search {
float: right;
width: 24px;
height: 24px;
margin-top: 21px;
margin-right: 40px;
line-height: normal;
position: relative; }
.header-container .header-body .search .icon-search {
display: inline-block;
cursor: pointer;
width: 12px;
height: 12px;
border-radius: 50%;
border: 2px solid;
position: relative; }
.header-container .header-body .search .icon-search::before {
content: '';
transform: rotate(45deg);
width: 8px;
height: 2px;
position: absolute;
top: 13px;
left: 11px; }
.header-container .header-body .search-primary .icon-search {
border-color: #fff;
opacity: 0.6; }
.header-container .header-body .search-primary .icon-search::before {
background-color: #fff; }
.header-container .header-body .search-primary .icon-search:hover {
opacity: 1; }
.header-container .header-body .search-normal .icon-search {
border-color: #333;
opacity: 0.6; }
.header-container .header-body .search-normal .icon-search::before {
background-color: #333; }
.header-container .header-body .search-normal .icon-search:hover {
opacity: 1; }
.header-container .header-body .search .search-input {
position: absolute;
left: -172px;
top: 28px;
background: #fff;
border-radius: 4px;
overflow: hidden;
box-shadow: 0 8px 16px 0 rgba(0, 0, 0, 0.05), 0 -8px 16px 0 rgba(0, 0, 0, 0.05); }
.header-container .header-body .search .search-input img {
width: 28px;
height: 28px;
cursor: pointer;
vertical-align: middle; }
.header-container .header-body .search .search-input input {
padding: 0 4px;
border: none;
outline: none;
width: 160px;
height: 24px;
vertical-align: middle; }

@media screen and (max-width: 640px) {
.header-container .header-body .logo {
Expand Down Expand Up @@ -208,7 +265,7 @@
border-radius: 4px;
text-decoration: none; }
.button-primary {
background: #4190FF; }
background: #30AFED; }
.button-normal {
background: transparent;
border: 1px solid #fff; }
Expand Down

0 comments on commit 544ab56

Please sign in to comment.