diff --git a/webroot/img/airplay.png b/webroot/img/airplay.png
new file mode 100644
index 000000000..f1c99750b
Binary files /dev/null and b/webroot/img/airplay.png differ
diff --git a/webroot/img/social-icons.gif b/webroot/img/social-icons.gif
new file mode 100644
index 000000000..cd9e8a8f5
Binary files /dev/null and b/webroot/img/social-icons.gif differ
diff --git a/webroot/index.html b/webroot/index.html
index 467c4f387..c80dd491c 100644
--- a/webroot/index.html
+++ b/webroot/index.html
@@ -13,6 +13,7 @@
+
+
+
diff --git a/webroot/js/app.js b/webroot/js/app.js
index d8775f208..e7f334f88 100644
--- a/webroot/js/app.js
+++ b/webroot/js/app.js
@@ -1,7 +1,6 @@
async function setupApp() {
Vue.filter('plural', pluralize);
-
window.app = new Vue({
el: "#app-container",
data: {
@@ -10,9 +9,16 @@ async function setupApp() {
sessionMaxViewerCount: 0,
overallMaxViewerCount: 0,
messages: [],
- description: "",
- title: "",
+ extraUserContent: "",
isOnline: false,
+ // from config
+ logo: null,
+ socialHandles: [],
+ streamerName: "",
+ summary: "",
+ tags: [],
+ title: "",
+
},
watch: {
messages: {
@@ -33,16 +39,21 @@ async function setupApp() {
appMessaging.init();
const config = await new Config().init();
+ app.logo = config.logo;
+ app.socialHandles = config.socialHandles;
+ app.streamerName = config.name;
+ app.summary = config.summary && addNewlines(config.summary);
+ app.tags = config.tags;
app.title = config.title;
- const configFileLocation = "./js/config.json";
+ // const configFileLocation = "../js/config.json";
try {
- const pageContentFile = "/static/content.md"
+ const pageContentFile = "../static/content.md"
const response = await fetch(pageContentFile);
const descriptionMarkdown = await response.text()
const descriptionHTML = new showdown.Converter().makeHtml(descriptionMarkdown);
- app.description = descriptionHTML;
+ app.extraUserContent = descriptionHTML;
return this;
} catch (error) {
console.log(error);
@@ -55,9 +66,9 @@ function setupWebsocket() {
// Uncomment to point to somewhere other than goth.land
const protocol = location.protocol == "https:" ? "wss" : "ws"
- var ws = new WebSocket(protocol + "://" + location.host + "/entry")
+ // var ws = new WebSocket(protocol + "://" + location.host + "/entry")
- // var ws = new WebSocket("wss://goth.land/entry")
+ var ws = new WebSocket("wss://goth.land/entry")
ws.onmessage = (e) => {
const model = JSON.parse(e.data)
diff --git a/webroot/js/config.js b/webroot/js/config.js
index 72ea04958..a3538abeb 100644
--- a/webroot/js/config.js
+++ b/webroot/js/config.js
@@ -1,3 +1,4 @@
+// add more to the promises later.
class Config {
async init() {
const configFileLocation = "./js/config.json";
diff --git a/webroot/js/config.json b/webroot/js/config.json
index e42ba63db..a83b98954 100644
--- a/webroot/js/config.json
+++ b/webroot/js/config.json
@@ -1,10 +1,21 @@
{
+ "name": "gabek",
"title": "Owncast Demo Server",
- "logo": "/img/logo.png",
- "description": "This is a demo server for Owncast. You can read more about it at owncast.online. You can edit this description in your web config file.
Blathers is an owl with brown feathers. His face is white and he has a yellow beak. His arms are wing shaped and he has yellow talons. His eyes are very big with small black irises. He also has big pink cheek circles on his cheeks. His belly appears to be checkered in diamonds with light brown and white squares, similar to an argyle vest, which is traditionally associated with academia. His green bowtie further alludes to his academic nature.",
+ "logo": "/img/logo128.png",
+
+ "summary": "This is brief summary of whom you are or what your stream is. demo server for Owncast. You can read more about it at owncast.online. You can edit this description in your web config file.\n\nBlathers is an owl with brown feathers. His face is white and he has a yellow beak. His arms are wing shaped and he has yellow talons. His eyes are very big with small black irises. He also has big pink cheek circles on his cheeks. His belly appears to be checkered in diamonds with light brown and white squares, similar to an argyle vest, which is traditionally associated with academia. His green bowtie further alludes to his academic nature.",
+
"tags": [
"music",
"software",
"animal crossing"
+ ],
+ "socialHandles": [
+ { "platform": "twitter", "handle": "abc" },
+ { "platform": "instagram", "handle": "abc" },
+ { "platform": "facebook", "handle": "" },
+ { "platform": "tiktok", "handle": "abc" },
+ { "platform": "soundcloud", "handle": "abc" },
+ { "platform": "newone", "handle": "abc" }
]
}
\ No newline at end of file
diff --git a/webroot/js/footer.js b/webroot/js/footer.js
new file mode 100644
index 000000000..330bd34d4
--- /dev/null
+++ b/webroot/js/footer.js
@@ -0,0 +1,27 @@
+Vue.component('owncast-footer', {
+ template: `
+
+ `,
+});
+
+
+Vue.component('stream-tags', {
+ props: ['tags'],
+ template: `
+