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

Commit 6eea5c0

Browse files
committed
refactor(header): add link to logo text
1 parent 893d344 commit 6eea5c0

File tree

4 files changed

+17
-4
lines changed

4 files changed

+17
-4
lines changed

components/Navigator/BriefView.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ const BriefView = ({ community }) => (
3636
<LogoHolder src={CommunityLogoHolder} />
3737
)}
3838
<CommunityInfo>
39-
<LogoText>coderplanets</LogoText>
39+
<LogoText href="/home/posts">coderplanets</LogoText>
4040
<CommunityTitle>{community.title}</CommunityTitle>
4141
</CommunityInfo>
4242
</CommunityWrapper>

components/Navigator/DigestView.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ const DigestView = () => (
2828
</ShortAddr>
2929
}
3030
>
31-
<LogoText>coderplanets</LogoText>
31+
<LogoText href="/home/posts">coderplanets</LogoText>
3232
</Popover>
3333
<BetaLogo src={`${ICON_CMD}/beta.svg`} />
3434
<MainEntries />

components/Navigator/styles/brief_view.js

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,11 +41,18 @@ export const CommunityInfo = styled.div`
4141
${cs.flexColumn()};
4242
margin-top: -2px;
4343
`
44-
export const LogoText = styled.div`
44+
export const LogoText = styled.a`
4545
color: ${theme('header.cardLogoText')};
4646
font-size: 0.8rem;
4747
font-family: Cursive, Helvetica;
48+
display: block;
49+
50+
&:hover {
51+
text-decoration: none;
52+
color: ${theme('header.cardLogoText')};
53+
}
4854
`
55+
4956
export const CommunityTitle = styled.div`
5057
color: ${theme('header.cardTitle')};
5158
font-size: 1rem;

components/Navigator/styles/index.js

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,14 +17,20 @@ export const Logo = styled(CommunityFaceLogo)`
1717
opacity: 0.7;
1818
`
1919
// font-family: cursive; // not general
20-
export const LogoText = styled.div`
20+
export const LogoText = styled.a`
2121
color: ${theme('logoText')};
2222
font-family: Orbitron, Cursive, Helvetica;
2323
font-weight: bolder;
2424
letter-spacing: 1.5px;
2525
font-size: 0.9rem;
2626
margin-left: 6px;
2727
margin-top: 3px;
28+
text-decoration: none;
29+
30+
&:hover {
31+
text-decoration: none;
32+
color: ${theme('logoText')};
33+
}
2834
`
2935

3036
export const BetaLogo = styled(Img)`

0 commit comments

Comments
 (0)