diff --git a/examples/webchat/htdocs/speechbubble-l.png b/examples/webchat/htdocs/speechbubble-l.png new file mode 100644 index 0000000..54e30d5 Binary files /dev/null and b/examples/webchat/htdocs/speechbubble-l.png differ diff --git a/examples/webchat/htdocs/speechbubble-l.svg b/examples/webchat/htdocs/speechbubble-l.svg new file mode 100644 index 0000000..0366e92 --- /dev/null +++ b/examples/webchat/htdocs/speechbubble-l.svg @@ -0,0 +1,85 @@ + + + + + + + + + + + + image/svg+xml + + + + + + + + + + diff --git a/examples/webchat/htdocs/speechbubble-r.png b/examples/webchat/htdocs/speechbubble-r.png new file mode 100644 index 0000000..4284b99 Binary files /dev/null and b/examples/webchat/htdocs/speechbubble-r.png differ diff --git a/examples/webchat/htdocs/speechbubble-r.svg b/examples/webchat/htdocs/speechbubble-r.svg new file mode 100644 index 0000000..db0fa2a --- /dev/null +++ b/examples/webchat/htdocs/speechbubble-r.svg @@ -0,0 +1,85 @@ + + + + + + + + + + + + image/svg+xml + + + + + + + + + + diff --git a/examples/webchat/htdocs/style.css b/examples/webchat/htdocs/style.css index f018ba5..f74c8b6 100644 --- a/examples/webchat/htdocs/style.css +++ b/examples/webchat/htdocs/style.css @@ -8,6 +8,29 @@ img.avatar { /* --------------------------------------------------------------------------- */ +.main-container { + display: flex; + height: 100vh; + flex-direction: column; +} + +#main-div { + flex: 1; + overflow: auto; +} + +.column-container { + display: flex; + flex-direction: column; +} + +.column-fill { + flex: 1; + overflow: auto; +} + +/* --------------------------------------------------------------------------- */ + .alert-count { background: red; color: white; @@ -73,3 +96,76 @@ img.avatar { position: relative; top: 0.5rem; } + +.blurb-box { +} + +.float-right { float: right; } + +.main-container footer { + padding-top: 1rem; + text-align: right; +} + +/* --------------------------------------------------------------------------- */ + +.conversation-control-panel { + font-size: 2rem; +} + +.post-backdrop { + overflow-y: scroll; +} + +.post { + margin: 20px; +} + +.post .post-body { + background: white; + border: solid #d3d3d3 1px; + border-radius: 1.5rem; + padding: 1rem; + margin: 0 0px; +} + +.post p { + margin-bottom: 0; +} + +.post.from-me .post-body { + background: #e8e8ff; + margin-left: 4rem; + margin-right: -1px; +} + +.post.to-me .post-body { + margin-left: -1px; + margin-right: 4rem; +} + +.post.from-me:after { + content: url('/speechbubble-r.png'); + position: relative; + /* left: 100%; */ + right: -100%; + top: -40px; + height: 0px; + width: 0px; + display: block; +} + +.post.to-me:after { + content: url('/speechbubble-l.png'); + position: relative; + left: -16px; + top: -40px; + height: 0px; + width: 0px; + display: block; +} + +.post-body > img { + max-width: 100%; + max-height: 100%; +} \ No newline at end of file diff --git a/examples/webchat/htdocs/templates/conversation-index-entry.html b/examples/webchat/htdocs/templates/conversation-index-entry.html index 3fde15f..6c91039 100644 --- a/examples/webchat/htdocs/templates/conversation-index-entry.html +++ b/examples/webchat/htdocs/templates/conversation-index-entry.html @@ -1,8 +1,8 @@
-
{{title}}
+
{{title}}{{^title}}Untitled{{/title}}
{{#members}} - {{.}} + {{/members}}
diff --git a/examples/webchat/htdocs/templates/nav-account.html b/examples/webchat/htdocs/templates/nav-account.html index dacdfa3..f00f729 100644 --- a/examples/webchat/htdocs/templates/nav-account.html +++ b/examples/webchat/htdocs/templates/nav-account.html @@ -3,7 +3,7 @@ {{questionCount}} {{email}} -