2024-06-13 06:35:40 +00:00
|
|
|
<article class="status gray-9-fg" style="background-color:@status.Background">
|
2024-05-31 01:27:01 +00:00
|
|
|
<div class="row">
|
2024-06-13 04:46:24 +00:00
|
|
|
<div class="emoji" data-emoji="@status.EmojiOrDefault">@status.EmojiOrDefault</div>
|
2024-05-31 01:27:01 +00:00
|
|
|
<div class="max">
|
|
|
|
<a class="author" href="/person/@status.Address">
|
|
|
|
<i class="fa-solid fa-fw fa-at"></i>@status.Address
|
|
|
|
</a>
|
|
|
|
@status.HtmlContent
|
2024-06-13 04:46:24 +00:00
|
|
|
<nav class="no-margin">
|
|
|
|
<a class="chip transparent-border">
|
|
|
|
<i class="fa fa-clock"></i> @status.RelativeTime
|
|
|
|
</a>
|
|
|
|
<a class="chip transparent-border" href="@status.ExternalUrl" target="_blank">
|
|
|
|
<i class="fa fa-message-dots"></i> Respond
|
|
|
|
</a>
|
|
|
|
<div class="max"></div>
|
|
|
|
<button class="transparent circle" @onclick="ShareClick">
|
|
|
|
<i class="fa-solid fa-share-nodes"></i>
|
|
|
|
</button>
|
|
|
|
</nav>
|
2024-05-31 01:27:01 +00:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</article>
|
|
|
|
|
|
|
|
@code {
|
|
|
|
[Parameter]
|
|
|
|
public Status status { get; set; }
|
2024-06-07 04:25:21 +00:00
|
|
|
|
|
|
|
public async Task ShareClick(EventArgs e){
|
|
|
|
await Share.Default.RequestAsync(new ShareTextRequest{
|
|
|
|
Text = $"{status.Content}\n- from [@{status.Address}]({status.Url})",
|
|
|
|
Title = "I saw this on status.lol",
|
|
|
|
Subject = "I saw this on status.lol"
|
|
|
|
});
|
|
|
|
}
|
2024-05-31 01:27:01 +00:00
|
|
|
}
|