From 8ccd6b82773ab2871f339508909137d4732b592e Mon Sep 17 00:00:00 2001 From: afc163 Date: Tue, 23 Oct 2018 12:21:26 +0800 Subject: [PATCH] site: add promote link --- site/theme/static/home.less | 10 ++++++++++ site/theme/template/Home/Banner.jsx | 11 +++++++---- site/theme/template/Home/BannerImage.jsx | 16 ++++++++++++++++ 3 files changed, 33 insertions(+), 4 deletions(-) diff --git a/site/theme/static/home.less b/site/theme/static/home.less index 0765ee30d3..57130b7120 100644 --- a/site/theme/static/home.less +++ b/site/theme/static/home.less @@ -375,3 +375,13 @@ svg { } } } + +.banner-1024 { + cursor: pointer; + transition: all .4s; + display: block; + + &:hover { + transform: translateY(-16px) scale(1.01); + } +} diff --git a/site/theme/template/Home/Banner.jsx b/site/theme/template/Home/Banner.jsx index 6afe636deb..d15e63b98a 100644 --- a/site/theme/template/Home/Banner.jsx +++ b/site/theme/template/Home/Banner.jsx @@ -50,10 +50,13 @@ class Banner extends React.PureComponent { - {isMobile && ( -
- -
)} + { + isMobile && ( +
+ +
+ ) + } + 1024 + + ); + } return (