Skip to content

Commit

Permalink
Merge pull request #31 from hyphacoop/snippet
Browse files Browse the repository at this point in the history
feat: add html snippet to the sidebar
  • Loading branch information
akhileshthite authored Dec 5, 2024
2 parents c8b5eba + 74d66b1 commit a5284a7
Show file tree
Hide file tree
Showing 3 changed files with 34 additions and 2 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ You can easily deploy a customized version of the reader by [forking](https://gi

```json
{
"version": "1.2.0",
"version": "1.0.0",
"communityName": "Akhi's Art Club",
"theme": {
"bgColor": "#ecfeff",
Expand Down
23 changes: 23 additions & 0 deletions sidebar.css
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,24 @@ sidebar-nav nav a:hover {
text-decoration: none;
}

.dp-snippet {
text-align: left;
margin-top: 4px;
display: flex;
flex-direction: column;
align-items: flex-start;
}

.dp-snippet div {
font-size: 0.75rem;
color: var(--rdp-details-color);
}

.dp-snippet a img {
margin-top: 4px;
width: 90px;
height: auto;
}

.release-version {
font-size: 0.75rem;
Expand Down Expand Up @@ -93,6 +111,11 @@ sidebar-nav nav a:hover {
sidebar-nav nav {
text-align: center;
}

.dp-snippet {
text-align: center;
align-items: center;
}
}

@media screen and (max-width: 400px) {
Expand Down
11 changes: 10 additions & 1 deletion sidebar.html
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,17 @@ <h1 id="header-branding" class="header-branding">Social Reader</h1>
<theme-selector></theme-selector>
<a href="./about.html">About</a>
<a href="https://hypha.coop/dripline/announcing-dp-social-inbox/">Social Inbox</a>
<a href="https://distributed.press">Distributed Press</a>
</nav>
<div class="dp-snippet">
<div>Powered by</div>
<a href="//distributed.press" target="_blank" rel="noopener noreferrer">
<img
alt="Distributed Press"
src="//distributed.press/img/logos/logo-distributedpress-grey.png"
/>
</a>
</div>
<distributed-search></distributed-search>

<div id="release-version" class="release-version"></div>

0 comments on commit a5284a7

Please sign in to comment.