Add description to pixelfed feed

This commit is contained in:
Fred Boniface 2023-11-04 01:00:52 +00:00
parent bb41208e15
commit 78b922dbe7

View File

@ -61,10 +61,12 @@ import type { AtomFeed, PixelfedFeed } from "./feedTypes";
{:then feedData}
{#each feedData.content as feedItem}
<EmptyCard>
<p>{feedItem.title?.split('|')[0]}</p>
<p class="title">{feedItem.title?.split('|')[0]}</p>
<p class="desc">{feedItem.title?.split('| ')[1].split('#')[0]}</p>
<a href={feedItem.pixelfedUrl}>
<img class="pixelfedImg" src="{feedItem.imgUrl}" alt="{feedItem.title}">
</a>
<p class="uploaded">Uploaded: {new Date(feedItem.updated).toLocaleString()}</p>
</EmptyCard>
{/each}
{:catch}
@ -77,10 +79,15 @@ import type { AtomFeed, PixelfedFeed } from "./feedTypes";
max-width: 600px;
margin: auto;
}
p {
.title {
text-align: center;
margin: auto;
font-weight: bolder;
margin-bottom: 5px;
}
.uploaded {
margin: 0;
margin: auto;
font-size: 14px;
}
</style>