Skip to content
This repository was archived by the owner on Nov 8, 2022. It is now read-only.

Commit f49ce9a

Browse files
committed
chore(footer): adjust margin & powered by info
1 parent 63be0b2 commit f49ce9a

File tree

7 files changed

+26
-12
lines changed

7 files changed

+26
-12
lines changed

deploy/production/web.tar.gz

77 Bytes
Binary file not shown.

src/containers/layout/ThemePalette/GlobalStyle.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,7 @@ const GlobalStyle = createGlobalStyle`
139139
}
140140
141141
#nprogress .spinner {
142-
top: 10px !important;
142+
top: 8px !important;
143143
}
144144
145145
// masonry cards styles

src/containers/unit/Footer/DesktopView/BottomInfo.tsx

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,8 @@ import {
99
ClassicWrapper,
1010
HolyGrailWrapper,
1111
BeianLink,
12+
PowerByWrapper,
13+
PowerByLink,
1214
} from '../styles/desktop_view/bottom_info'
1315

1416
type TProps = {
@@ -24,6 +26,12 @@ const BottomInfo: FC<TProps> = ({ metric, layout }) => {
2426
<BeianLink href="http://beian.miit.gov.cn">
2527
蜀ICP备17043722号-4
2628
</BeianLink>
29+
<PowerByWrapper>
30+
Powered by
31+
<PowerByLink href="http://github.com/groupher">
32+
Groupher
33+
</PowerByLink>
34+
</PowerByWrapper>
2735
</InnerWrapper>
2836
</RawWrapper>
2937
)
@@ -37,6 +45,10 @@ const BottomInfo: FC<TProps> = ({ metric, layout }) => {
3745
<BeianLink href="http://beian.miit.gov.cn">
3846
蜀ICP备17043722号-4
3947
</BeianLink>
48+
<PowerByWrapper>
49+
Powered by
50+
<PowerByLink href="http://github.com/groupher">Groupher</PowerByLink>
51+
</PowerByWrapper>
4052
</InnerWrapper>
4153
</Wrapper>
4254
)

src/containers/unit/Footer/DesktopView/TopInfo/General.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ const General: FC<TProps> = ({ title }) => {
1515
return (
1616
<Wrapper noBottomBorder>
1717
<Logo />
18-
<BlinkCursor duration={2} />
18+
<BlinkCursor duration={2} top={1} />
1919
<CommunityTitle>{title}</CommunityTitle>
2020
</Wrapper>
2121
)

src/containers/unit/Footer/styles/desktop_view/bottom_info.ts

Lines changed: 10 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,8 @@ const Wrapper = styled.div<{ metric: TMetric }>`
1919
`
2020
export const RawWrapper = styled(Wrapper)``
2121
export const ClassicWrapper = styled(Wrapper)`
22-
padding-left: 24px;
22+
padding-left: 22px;
23+
padding-right: 60px;
2324
${css.media.laptopM`
2425
padding-left: 18px;
2526
`}
@@ -31,14 +32,11 @@ export const HolyGrailWrapper = styled(Wrapper)`
3132
padding-left: 18px;
3233
`}
3334
`
34-
3535
export const InnerWrapper = styled.div`
36-
${css.flexColumn('justify-start')};
37-
color: ${theme('thread.articleDigest')};
36+
${css.flex('justify-between')};
3837
width: 100%;
3938
margin-right: 20px;
4039
`
41-
4240
export const BeianLink = styled.a`
4341
color: ${theme('footer.text')};
4442
text-decoration: none;
@@ -49,7 +47,11 @@ export const BeianLink = styled.a`
4947
color: ${theme('footer.hover')};
5048
}
5149
`
52-
export const CompanyLink = styled(BeianLink)`
53-
font-size: 12px;
54-
margin-bottom: 2px;
50+
export const PowerByWrapper = styled.div`
51+
color: ${theme('footer.text')};
52+
${css.flex('align-center')};
53+
`
54+
export const PowerByLink = styled(BeianLink)`
55+
margin-right: 4px;
56+
margin-left: 6px;
5557
`

src/containers/unit/Footer/styles/desktop_view/top_info/article.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ export const InfoBar = styled(DefaultInfoBar)``
1616
export const Logo = styled(DefaultLogo)`
1717
${css.size(16)};
1818
margin-right: 5px;
19-
margin-top: -4px;
19+
margin-top: -1px;
2020
`
2121
export const ArticleTitle = styled(DefaultSiteTitle)`
2222
color: ${theme('footer.title')};

src/containers/unit/Footer/styles/desktop_view/top_info/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ export const InfoBar = styled.div`
2424
`
2525
export const Logo = styled(CommunityFaceLogo)`
2626
${css.size(18)};
27-
margin-top: -4px;
27+
margin-top: -1;
2828
margin-left: 2px;
2929
cursor: pointer;
3030
`

0 commit comments

Comments
 (0)