diff --git a/modules/core/client/app/trans-string-en.js b/modules/core/client/app/trans-string-en.js index a497029d..9ca9e6eb 100644 --- a/modules/core/client/app/trans-string-en.js +++ b/modules/core/client/app/trans-string-en.js @@ -102,8 +102,11 @@ TITLE_SEARCH: 'Torrents and forum global search', MORE_HELP_RULES: 'More rules and help contents', MORE_GO_FORUM: 'Go to forum home', + MORE_VIP_RULES_AND_RIGHT: 'more vip rules and right here', SEARCH_TYPE_TORRENTS: 'Torrents', - SEARCH_TYPE_FORUM: 'Forum' + SEARCH_TYPE_FORUM: 'Forum', + BTN_JOIN_VIP: 'Join as vip »', + VIP_TOOLTIP: ' - Full free download, higher upload ratio. \n - Exempt from regular system assessment tasks. \n - Exclusive resource download area. \n - Exclusive forum discussion area. \n - H&R download warning immunity.' }, //element title/alt diff --git a/modules/core/client/app/trans-string-zh.js b/modules/core/client/app/trans-string-zh.js index 93727bad..d263a494 100644 --- a/modules/core/client/app/trans-string-zh.js +++ b/modules/core/client/app/trans-string-zh.js @@ -102,8 +102,11 @@ TITLE_SEARCH: '种子以及论坛关键字搜索', MORE_HELP_RULES: '更多规则以及帮助内容', MORE_GO_FORUM: '去论坛逛一下', + MORE_VIP_RULES_AND_RIGHT: '更多 vip 规则及权益请看这里', SEARCH_TYPE_TORRENTS: '搜索种子', - SEARCH_TYPE_FORUM: '搜索论坛' + SEARCH_TYPE_FORUM: '搜索论坛', + BTN_JOIN_VIP: '加入 vip 会员 »', + VIP_TOOLTIP: ' - 全免费下载以及更高的上传加成. \n - 免于定期的系统考评任务. \n - 专属的资源下载区域. \n - 专属的论坛讨论区. \n - 对 H&R 下载警告免疫.' }, //element title/alt diff --git a/modules/core/client/controllers/home.client.controller.js b/modules/core/client/controllers/home.client.controller.js index 80920fe5..06127854 100644 --- a/modules/core/client/controllers/home.client.controller.js +++ b/modules/core/client/controllers/home.client.controller.js @@ -123,7 +123,17 @@ vm.homeNewestTorrents = items.rows; } }); - }; + + /** + * getVipTooltip + * @returns {*} + */ + vm.getVipTooltip = function () { + var ts = $translate.instant('HOME.VIP_TOOLTIP'); + + return marked(ts, {sanitize: true}); + }; + } }()); diff --git a/modules/core/client/img/default-background.jpg b/modules/core/client/img/default-background.jpg index 23e4eb93..6740b32d 100644 Binary files a/modules/core/client/img/default-background.jpg and b/modules/core/client/img/default-background.jpg differ diff --git a/modules/core/client/less/btn-size.less b/modules/core/client/less/btn-size.less index 87c7579e..4429772e 100644 --- a/modules/core/client/less/btn-size.less +++ b/modules/core/client/less/btn-size.less @@ -131,6 +131,27 @@ } } +.btn-mt-o-success-light { + color: @brand-success; + border: solid 1px @brand-success; + &:focus { + color: @brand-success; + border-color: @brand-success; + } +} + +.btn-mt-success-light { + color: #fff; + background-color: @brand-success; + border: solid 1px @brand-success; + &:hover, + &:focus { + color: #333; + background-color: @brand-success; + border-color: @brand-success; + } +} + .btn-mt-o-primary { color: @brand-primary; border: solid 1px @brand-primary; diff --git a/modules/core/client/less/home.less b/modules/core/client/less/home.less index 063c312c..23f63c0f 100644 --- a/modules/core/client/less/home.less +++ b/modules/core/client/less/home.less @@ -4,18 +4,19 @@ margin: 20px 0; color: #4d4e53; .list-items { - background-color: #fafbfc; - box-shadow: 2px 2px 2px rgba(0, 0, 0, .075); + //background-color: #fafbfc; + //box-shadow: 2px 2px 2px rgba(0, 0, 0, .075); margin-top: -25px; padding: 20px 10px; border-top: solid 2px @mt-base-color; p { - &:before { - content: '+'; - display: inline-block; - color: #ff6600; - margin-right: 2px; - } + margin: 0 0 5px; + //&:before { + // content: '+'; + // display: inline-block; + // color: #ff6600; + // margin-right: 2px; + //} &:last-child { margin-bottom: 1px !important; } @@ -47,29 +48,95 @@ } .home_vip_info { - padding: 20px; - min-height: 300px; background-color: #f7f7f7; + .vip-content { + @media (min-width: @screen-sm-min) { + display: table; + width: 100%; + } + .vip-left { + position: relative; + overflow: hidden; + @media (min-width: @screen-sm-min) { + display: table-cell; + float: none; + vertical-align: bottom; + } + @media (max-width: @screen-xs-max) { + display: none; + } + .vip-img { + max-width: 250px; + position: absolute; + bottom: -40px; + left: 60px; + transform: rotateZ(15deg); + } + } + .vip-right { + padding-bottom: 20px; + .vip-title { + color: @brand-success; + margin-bottom: 20px; + small { + color: @brand-success; + } + } + .vip-tooltip { + color: #343231; + ul { + @media (max-width: @screen-xs-max) { + margin-bottom: 20px !important; + } + padding-left: 0; + li { + padding-left: 0; + list-style: none; + &:before { + content: '+'; + display: inline-block; + color: @brand-success; + margin-right: 8px; + } + } + } + } + .vip-more { + a { + color: @brand-success; + &:hover { + color: @state-success-text; + } + } + } + @media (min-width: @screen-sm-min) { + display: table-cell; + float: none; + vertical-align: bottom; + } + } + } } .home_global_search { min-height: 150px; + background-color: #f7f7f7; background-image: url("/modules/core/client/img/default-background.jpg"); - background-position: 0 center; + background-position: 0 -200px; background-repeat: no-repeat; background-size: cover; .search-panel { min-height: 150px; padding: 20px; background-color: #666; - background-color: rgba(0, 0, 0, 0.2); + background-color: rgba(0, 0, 0, 0.4); color: #eee; text-shadow: 1px 1px 3px rgba(0, 1, 0, 0.5), 0 0 9px rgba(0, 1, 0, 0.2); .search-title { font-size: 2.2em; - font-weight: 300; + font-weight: 400; } .search-group { max-width: 40em; diff --git a/modules/core/client/views/home.client.view.html b/modules/core/client/views/home.client.view.html index 5ba618db..f88bf177 100644 --- a/modules/core/client/views/home.client.view.html +++ b/modules/core/client/views/home.client.view.html @@ -26,7 +26,7 @@ -
+