blob: f892c1e28619f02dac72646972a66497b8890bc9 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
@(mood: &str, character: &str, message: Html<String>, smol: bool)
<div class="conversation">
<div class="conversation-picture @if smol { conversation-smol }">
<picture>
<source srcset="https://cdn.christine.website/file/christine-static/stickers/@character.to_lowercase()/@(mood).avif" type="image/avif">
<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>
</div>
@if smol {
<div class="conversation-chat"><<b>@character</b>> @message</div>
} else {
<div>
<p>
<b>@character</b>
</p>
<blockquote>
@message
</blockquote>
</div>
}
</div>
|