mirror of
https://github.com/bitsocialnet/5chan.git
synced 2026-08-03 07:41:04 +02:00
improved subscriptions box styling
This commit is contained in:
@@ -172,6 +172,7 @@ export const Boards = styled.div`
|
|||||||
padding-bottom: .5em;
|
padding-bottom: .5em;
|
||||||
background: #fff;
|
background: #fff;
|
||||||
word-wrap: break-word;
|
word-wrap: break-word;
|
||||||
|
margin-bottom: 6px;
|
||||||
|
|
||||||
#subscriptions {
|
#subscriptions {
|
||||||
text-align: left;
|
text-align: left;
|
||||||
@@ -258,6 +259,28 @@ export const BoardsContent = styled.div`
|
|||||||
color: #e00
|
color: #e00
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#view-all {
|
||||||
|
color: #800;
|
||||||
|
font-weight: 700;
|
||||||
|
text-decoration: none;
|
||||||
|
|
||||||
|
:hover {
|
||||||
|
color: #e00;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
@media (max-width: 480px) {
|
||||||
|
.boardlink, #view-all {
|
||||||
|
font-size: 1.2em;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
@media (min-width: 480px) {
|
||||||
|
#mobile-br {
|
||||||
|
display: none;
|
||||||
|
}
|
||||||
|
}
|
||||||
`;
|
`;
|
||||||
|
|
||||||
export const Footer = styled.div`
|
export const Footer = styled.div`
|
||||||
|
|||||||
@@ -99,24 +99,27 @@ const Home = () => {
|
|||||||
</div>
|
</div>
|
||||||
</AboutContent>
|
</AboutContent>
|
||||||
</About>
|
</About>
|
||||||
{account.subscriptions?.length > 0 ? (
|
{account?.subscriptions?.length > 0 ? (
|
||||||
<Boards style={{marginBottom: '6px'}}>
|
<Boards>
|
||||||
<BoardsTitle>
|
<BoardsTitle>
|
||||||
<h2>Board Subscriptions</h2>
|
<h2>Board Subscriptions</h2>
|
||||||
</BoardsTitle>
|
</BoardsTitle>
|
||||||
<BoardsContent id="subscriptions">
|
<BoardsContent id="subscriptions">
|
||||||
<h3 style={{textDecoration: 'underline', display: 'inline'}}>
|
<h3 style={{textDecoration: 'underline', display: 'inline'}}>
|
||||||
You have subscribed to {account.subscriptions.length} board{account.subscriptions.length > 1 ? "s" : null}
|
You have subscribed to {account?.subscriptions?.length} board{account?.subscriptions?.length > 1 ? "s" : null}
|
||||||
</h3>
|
</h3>
|
||||||
|
<Link to="/profile/p/subscriptions" id="view-all">[view all]</Link>
|
||||||
<br />
|
<br />
|
||||||
{account.subscriptions.map((subscription, index) => (
|
{account?.subscriptions?.map((subscription, index) => (
|
||||||
<>
|
<>
|
||||||
<Link key={`sub-${index}`} class="boardlink" to={`/p/${subscription.subplebbitAddress}`}>
|
<Link key={`sub-${index}`} className="boardlink" to={`/p/${subscription.subplebbitAddress}`}>
|
||||||
|
<br id="mobile-br" />
|
||||||
{subscription}
|
{subscription}
|
||||||
</Link>
|
</Link>
|
||||||
<br />
|
<br />
|
||||||
</>
|
</>
|
||||||
))}
|
))}
|
||||||
|
<br id="mobile-br" />
|
||||||
</BoardsContent>
|
</BoardsContent>
|
||||||
</Boards>
|
</Boards>
|
||||||
) : null}
|
) : null}
|
||||||
|
|||||||
Reference in New Issue
Block a user