Skip to content

Commit

Permalink
Add discogs link on record-info
Browse files Browse the repository at this point in the history
  • Loading branch information
GustavAndreasson committed Feb 23, 2024
1 parent dba6a04 commit f310ad7
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 0 deletions.
7 changes: 7 additions & 0 deletions frontend/src/components/RecordInfo/RecordInfo.component.js
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,13 @@ const RecordInfo = ({
</div>
</div>
<div className="right">
<a
className="discogs-link"
target="_blank"
href={"https://www.discogs.com/release/" + rec.id}
>
Discogs
</a>
{rec.listens &&
rec.listens.map((listen, index) => (
<div className="listen-link" key={index}>
Expand Down
12 changes: 12 additions & 0 deletions frontend/src/components/RecordInfo/RecordInfo.scss
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,18 @@
}
}

.right {
text-align: right;
}

.discogs-link {
display: inline-block;
margin-bottom: 5px;
text-decoration: none;
font-size: 14px;
color: #0000aa;
}

.listen-link {
text-align: right;
max-width: 250px;
Expand Down

0 comments on commit f310ad7

Please sign in to comment.