Carbon/src/home.pug

59 lines
1.7 KiB
Text
Raw Normal View History

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
mixin message(name, messages)
.c-message-group
.c-message-group__avatar
.c-message-group__icon
.c-message-group__messages
.c-message-group__intro
.c-message-group__name= name
.c-message-group__date at 4:20 pm
each message in messages
.c-message= message
mixin message-notice(content)
.c-message-notice
.c-message-notice__inner= content
mixin message-event(icon, content)
.c-message-event
.c-message-event__inner
img(src=icon alt="").c-message-event__icon
= content
2020-10-11 13:26:24 +00:00
doctype html
html
head
meta(charset="utf-8")
// 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)]))
| )
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
.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
.c-chat__messages#c-chat-messages
.c-chat__inner#c-chat
.c-chat-input
textarea(placeholder="Send a message..." autocomplete="off").c-chat-input__textarea#c-chat-textarea