2021-04-02 02:30:45 +00:00
|
|
|
@(mood: &str, character: &str, message: Html<String>, smol: bool)
|
2020-09-27 22:50:18 +00:00
|
|
|
<div class="conversation">
|
2021-04-02 02:30:45 +00:00
|
|
|
<div class="conversation-picture @if smol { conversation-smol }">
|
2020-09-27 22:50:18 +00:00
|
|
|
<picture>
|
2020-09-28 00:09:48 +00:00
|
|
|
<source srcset="https://cdn.christine.website/file/christine-static/stickers/@character.to_lowercase()/@(mood).avif" type="image/avif">
|
2020-09-27 22:50:18 +00:00
|
|
|
<source srcset="https://cdn.christine.website/file/christine-static/stickers/@character.to_lowercase()/@(mood).webp" type="image/webp">
|
|
|
|
<img src="https://cdn.christine.website/file/christine-static/stickers/@character.to_lowercase()/@(mood).png" alt="@character is @mood">
|
|
|
|
</picture>
|
2020-09-19 15:33:46 +00:00
|
|
|
</div>
|
2021-04-02 02:30:45 +00:00
|
|
|
@if smol {
|
2021-04-03 02:28:18 +00:00
|
|
|
<div class="conversation-chat"><<b>@character</b>> @message</div>
|
2021-04-02 02:30:45 +00:00
|
|
|
} else {
|
2020-09-27 22:50:18 +00:00
|
|
|
<div>
|
|
|
|
<p>
|
|
|
|
<b>@character</b>
|
|
|
|
</p>
|
|
|
|
<blockquote>
|
|
|
|
@message
|
|
|
|
</blockquote>
|
2020-09-19 15:33:46 +00:00
|
|
|
</div>
|
2021-04-02 02:30:45 +00:00
|
|
|
}
|
2020-09-19 15:33:46 +00:00
|
|
|
</div>
|