diff --git a/webroot/index.html b/webroot/index.html index 41dc0412..4f7e103f 100644 --- a/webroot/index.html +++ b/webroot/index.html @@ -12,7 +12,7 @@ - + @@ -158,6 +165,10 @@ showBlahNotification("error:chat.add.failed"); } } + + async function createGroup() { + + } start(); diff --git a/webroot/main.js b/webroot/main.js index f046bf40..c7572d02 100644 --- a/webroot/main.js +++ b/webroot/main.js @@ -49,6 +49,18 @@ try { var roomContentBar = roomContent.children[0]; + var roomTopBar = document.getElementsByTagName("roomtopbar")[1]; + + var sidebarProfile = document.getElementById("sidebar-profile"); + var sidebarProfileButton = sidebarProfile.children.item(1); + var sidebarProfileIndicator = sidebarProfile.children.item(0); + + var sidebarInbox = document.getElementById("sidebar-inbox"); + var sidebarInboxButton = sidebarInbox.children.item(1); + var sidebarInboxIndicator = sidebarInbox.children.item(0); + + + } catch (e) { } @@ -519,6 +531,8 @@ collapseGroupsBtn.addEventListener("click", () => { }); addDmBtn.addEventListener("click", () => { + roomTopBar.innerHTML = "Invite to dm"; + roomDetailsBar.style.display = "none"; roomContentMain.innerHTML = `
@@ -528,7 +542,7 @@ addDmBtn.addEventListener("click", () => {
- +
- ` + `; }); addGroupBtn.addEventListener("click", () => { - + roomTopBar.innerHTML = "Create group"; + roomDetailsBar.style.display = "none"; + roomContentMain.innerHTML = + ` +
+ + Create Group +

Create a private, encrypted group

+
+
+ + +
+
+ +
+
+ `; }); @@ -557,3 +590,46 @@ sidebarAddButton.addEventListener("mouseleave", () => { sidebarAddIndicator.classList.remove("hover"); }); +sidebarProfileButton.addEventListener("mouseenter", () => { + sidebarProfileIndicator.classList.add("hover"); +}); +sidebarProfileButton.addEventListener("mouseleave", () => { + sidebarProfileIndicator.classList.remove("hover"); +}); + +sidebarInboxButton.addEventListener("mouseenter", () => { + sidebarInboxIndicator.classList.add("hover"); +}); +sidebarInboxButton.addEventListener("mouseleave", () => { + sidebarInboxIndicator.classList.remove("hover"); +}); + + +function gotoSideProfilePopup() { + +} +function gotoCreateSpace() { + roomTopBar.innerHTML = "Create space"; + roomDetailsBar.style.display = "none"; + roomContentMain.innerHTML = + ` +
+ + Create Space +

Create a space for your community

+
+
+ + +
+
+ +
+
+ `; +} +function gotoHome() { + +} diff --git a/webroot/pfpexamp.png b/webroot/pfpexamp.png new file mode 100644 index 00000000..416243bb Binary files /dev/null and b/webroot/pfpexamp.png differ diff --git a/webroot/style.css b/webroot/style.css index 663eea28..934879a8 100644 --- a/webroot/style.css +++ b/webroot/style.css @@ -68,6 +68,11 @@ button, input { align-items: center; justify-content: flex-start; border: var(--border-width) solid var(--light-border-color); + + backface-visibility: hidden; + transform: translateZ(0); + will-change: transform; + transform-origin: center center; } input { padding-left: calc(var(--button-margin) * 2); @@ -120,11 +125,16 @@ indicator.active { height: var(--icon-button-height); width: var(--icon-button-height); justify-content: center; + overflow: hidden; } .icon-button svg { width: var(--icon-button-size); height: var(--icon-button-size); } +.icon-button img { + width: calc(var(--icon-button-height) - (var(--border-width) * 2)); + height: calc(var(--icon-button-height) - (var(--border-width) * 2)); +} button:hover, input:hover { background-color: rgba(255, 255, 255, 0.1); } @@ -340,4 +350,9 @@ herotitle { .submit-button:hover { background-color: rgba(255, 255, 255, 0.5); +} + + +.bottom-element { + margin-top: auto; } \ No newline at end of file