This repository was archived by the owner on Nov 8, 2022. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +53
-13
lines changed
src/containers/content/HelpCenterContent Expand file tree Collapse file tree 2 files changed +53
-13
lines changed Original file line number Diff line number Diff line change @@ -6,6 +6,10 @@ import { ICON } from '@/config'
66
77import {
88 Wrapper ,
9+ RateWrapper ,
10+ ShareWrapper ,
11+ ShareList ,
12+ ShareIcon ,
913 Title ,
1014 BoxWrapper ,
1115 Button ,
@@ -27,19 +31,28 @@ const Reaction: React.FC<TProps> = ({ visibles }) => {
2731 const { uselessClicked } = visibles
2832 return (
2933 < Wrapper >
30- < Title > 这些信息是否有用?</ Title >
31- < BoxWrapper >
32- < Button onClick = { usefulOnClick } >
33- < UsefulIcon src = { `${ ICON } /useful-color.svg` } />
34- < UsefulText > 有用</ UsefulText >
35- </ Button >
36- < UselessWrapper >
37- < UselessButton active = { uselessClicked } onClick = { uselessOnClick } >
38- < CryIcon src = { `${ ICON } /shape/cry.svg` } active = { uselessClicked } />
39- </ UselessButton >
40- < UselessText > 没有帮助</ UselessText >
41- </ UselessWrapper >
42- </ BoxWrapper >
34+ < RateWrapper >
35+ < Title > 这些信息是否有用?</ Title >
36+ < BoxWrapper >
37+ < Button onClick = { usefulOnClick } >
38+ < UsefulIcon src = { `${ ICON } /useful-color.svg` } />
39+ < UsefulText > 有用</ UsefulText >
40+ </ Button >
41+ < UselessWrapper >
42+ < UselessButton active = { uselessClicked } onClick = { uselessOnClick } >
43+ < CryIcon src = { `${ ICON } /shape/cry.svg` } active = { uselessClicked } />
44+ </ UselessButton >
45+ < UselessText > 没有帮助</ UselessText >
46+ </ UselessWrapper >
47+ </ BoxWrapper >
48+ </ RateWrapper >
49+ < ShareWrapper >
50+ < ShareList >
51+ < ShareIcon src = { `${ ICON } /social/weichat.svg` } />
52+ < ShareIcon src = { `${ ICON } /social/twitter.svg` } />
53+ < ShareIcon src = { `${ ICON } /social/zhihu.svg` } />
54+ </ ShareList >
55+ </ ShareWrapper >
4356 </ Wrapper >
4457 )
4558}
Original file line number Diff line number Diff line change @@ -5,9 +5,16 @@ import Img from '@/Img'
55import { css , theme } from '@/utils'
66
77export const Wrapper = styled . div `
8+ ${ css . flex ( ) } ;
89 margin-bottom: 25px;
10+ margin-right: 30px;
911`
12+ export const RateWrapper = styled . div `
13+ flex-grow: 1;
14+ `
15+ // reactions
1016export const Title = styled . div `
17+ font-size: 14px;
1118 margin-bottom: 14px;
1219`
1320export const BoxWrapper = styled . div `
@@ -64,3 +71,23 @@ export const UselessText = styled.span`
6471
6572 transition: opacity 0.25s ease-in-out;
6673`
74+
75+ export const ShareWrapper = styled . div `
76+ ${ css . flexColumn ( 'justify-end' ) } ;
77+ `
78+ export const ShareList = styled . div `
79+ ${ css . flex ( 'align-center' ) } ;
80+ margin-bottom: 6px;
81+ `
82+ export const ShareIcon = styled ( Img ) `
83+ fill: ${ theme ( 'banner.desc' ) } ;
84+ ${ css . size ( 16 ) } ;
85+ margin-left: 12px;
86+
87+ &:hover {
88+ fill: ${ theme ( 'banner.title' ) } ;
89+ cursor: pointer;
90+ }
91+
92+ transition: all 0.25s;
93+ `
You can’t perform that action at this time.
0 commit comments