Add color hash for user avatar backgrounds

This commit is contained in:
Gabe Kangas
2020-06-15 13:41:37 -07:00
parent 986c168d07
commit 7e959e3ba1
3 changed files with 93 additions and 0 deletions

View File

@@ -100,6 +100,7 @@
<img
v-bind:src="message.image"
class="message-avatar rounded-full bg-black bg-opacity-50"
v-bind:style="{ backgroundColor: message.userColor() }"
/>
<div class="message-content">
<p class="message-author text-white font-bold">{{ message.author }}</p>
@@ -137,6 +138,7 @@
</div>
</div>
<script src="js/usercolors.js"></script>
<script src="js/config.js"></script>
<script src="js/utils.js"></script>
<script src="js/message.js"></script>