2020-10-11 13:26:24 +00:00
|
|
|
mixin group(name)
|
|
|
|
.c-group
|
|
|
|
.c-group__icon
|
|
|
|
.c-group__name= name
|
|
|
|
|
|
|
|
mixin room(name)
|
|
|
|
.c-room
|
|
|
|
.c-room__icon
|
|
|
|
.c-room__name= name
|
|
|
|
|
2020-10-12 11:19:10 +00:00
|
|
|
mixin message(name, messages)
|
|
|
|
.c-message-group
|
|
|
|
.c-message-group__avatar
|
|
|
|
.c-message-group__icon
|
|
|
|
.c-message-group__messages
|
2020-10-12 12:35:54 +00:00
|
|
|
.c-message-group__intro
|
|
|
|
.c-message-group__name= name
|
|
|
|
.c-message-group__date at 4:20 pm
|
2020-10-12 11:19:10 +00:00
|
|
|
each message in messages
|
|
|
|
.c-message= message
|
|
|
|
|
2020-10-12 12:35:54 +00:00
|
|
|
mixin message-notice(content)
|
|
|
|
.c-message-notice
|
|
|
|
.c-message-notice__inner= content
|
|
|
|
|
|
|
|
mixin message-event(icon, content)
|
|
|
|
.c-message-event
|
|
|
|
.c-message-event__inner
|
2020-10-19 11:43:33 +00:00
|
|
|
img(src=icon alt="").c-message-event__icon
|
2020-10-12 12:35:54 +00:00
|
|
|
= content
|
|
|
|
|
2020-10-11 13:26:24 +00:00
|
|
|
doctype html
|
|
|
|
html
|
|
|
|
head
|
|
|
|
meta(charset="utf-8")
|
2020-10-20 10:25:04 +00:00
|
|
|
// var static = !{JSON.stringify([...static.entries()].reduce((a, c) => (a[c[0]] = getRelative(c[1]), a), {}))}
|
|
|
|
script
|
|
|
|
| var staticFiles = new Map(
|
|
|
|
!= JSON.stringify([...static.keys()].map(k => [k, getStatic(k)]))
|
|
|
|
| )
|
2020-10-19 11:43:33 +00:00
|
|
|
link(rel="stylesheet" type="text/css" href=getStatic("/sass/main.sass"))
|
|
|
|
script(type="module" src=getStatic("/js/groups.js"))
|
|
|
|
script(type="module" src=getStatic("/js/chat-input.js"))
|
|
|
|
script(type="module" src=getStatic("/js/room-picker.js"))
|
|
|
|
script(type="module" src=getStatic("/js/sync/sync.js"))
|
|
|
|
script(type="module" src=getStatic("/js/chat.js"))
|
2020-10-11 13:26:24 +00:00
|
|
|
title Carbon
|
|
|
|
body
|
|
|
|
main.main
|
|
|
|
.c-groups
|
2020-10-19 11:43:33 +00:00
|
|
|
.c-groups__display#c-groups-display
|
|
|
|
.c-group-marker#c-group-marker
|
|
|
|
.c-groups__container#c-groups-list
|
|
|
|
.c-rooms#c-rooms
|
2020-10-11 13:26:24 +00:00
|
|
|
.c-chat
|
2020-10-19 11:43:33 +00:00
|
|
|
.c-chat__messages#c-chat-messages
|
|
|
|
.c-chat__inner#c-chat
|
2020-10-12 11:19:10 +00:00
|
|
|
.c-chat-input
|
2020-10-19 11:43:33 +00:00
|
|
|
textarea(placeholder="Send a message..." autocomplete="off").c-chat-input__textarea#c-chat-textarea
|