Skip to content

Commit

Permalink
site: add search input in home page
Browse files Browse the repository at this point in the history
  • Loading branch information
afc163 committed Mar 26, 2018
1 parent e7ba4fb commit 99cc5b9
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 27 deletions.
1 change: 0 additions & 1 deletion docs/spec/work-with-us.en-US.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@ title: Work with Us
const emails = [
'momo.zxy#alipay.com',
'lindong.lld#alipay.com',
'luli.fxx#alipay.com',
];
ReactDOM.render(
<p>作品和简历请投递:{emails[parseInt(Math.random() * emails.length, 10)]}</p>
Expand Down
1 change: 1 addition & 0 deletions docs/spec/work-with-us.zh-CN.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ title: 加入我们

```__react
const emails = [
'momo.zxy#alipay.com',
'lindong.lld#alipay.com',
];
ReactDOM.render(
Expand Down
16 changes: 0 additions & 16 deletions site/theme/static/responsive.less
Original file line number Diff line number Diff line change
Expand Up @@ -11,22 +11,6 @@
cursor: pointer;
}

@media only screen and (min-width: 1440px) and (max-width: 1599px) {
.main-wrapper > .ant-row > .ant-col-xl-5 {
width: 274px;
}

#header .ant-row .ant-col-xl-5 {
width: 274px;
}
}

@media only screen and (max-width: 1280px) {
.en-us #search-box {
display: none;
}
}

@media only screen and (max-width: @screen-xl) {
#search-box {
display: none;
Expand Down
14 changes: 4 additions & 10 deletions site/theme/template/Home/index.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,6 @@ function getStyle() {
#header #logo {
padding: 0;
}
#header .ant-row > div:last-child #search-box,
#header .ant-row > div:last-child .ant-select,
#header .ant-row > div:last-child .ant-menu,
#header .nav-phone-icon {
Expand All @@ -36,24 +35,19 @@ function getStyle() {
#header .ant-row > div:last-child .header-lang-button {
margin-right: 0;
}
#header .ant-row .ant-col-lg-19,
#header .ant-row .ant-col-xl-19 {
width: 50%;
float: right;
}
footer .footer-wrap{
footer .footer-wrap {
width: 100%;
padding: 0;
}
footer .bottom-bar{
footer .bottom-bar {
margin: auto;
max-width: 1200px;
padding: 16px 24px;
}
footer .bottom-bar{
footer .bottom-bar {
border-top: none;
}
footer .footer-wrap .ant-row{
footer .footer-wrap .ant-row {
width: 100%;
max-width: 1200px;
padding: 86px 24px 93px 24px;
Expand Down

0 comments on commit 99cc5b9

Please sign in to comment.