From 11a929e861f10518663af36039e555c7c66949c4 Mon Sep 17 00:00:00 2001 From: Miroslav Pejic Date: Sat, 14 Sep 2024 16:08:26 +0200 Subject: [PATCH] [call-me] - move github button --- app/server.js | 2 +- package.json | 2 +- public/client.js | 2 ++ public/index.html | 25 +++++++++++++------------ public/style.css | 10 +++++++++- 5 files changed, 26 insertions(+), 15 deletions(-) diff --git a/app/server.js b/app/server.js index 9454737..da12a0d 100755 --- a/app/server.js +++ b/app/server.js @@ -83,11 +83,11 @@ const io = socketIO(server); // Start the server and listen on the specified port server.listen(port, () => { console.log('Server', { - version: packageJson.version, running_at: host, ice: config.iceServers, api_key_secret: config.apiKeySecret, api_docs: apiDocs, + version: packageJson.version, }); }); diff --git a/package.json b/package.json index ecaabd0..928d034 100755 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "callme", - "version": "1.0.4", + "version": "1.0.5", "description": "Your Go-To for Instant Video Calls", "author": "Miroslav Pejic - miroslav.pejic.85@gmail.com", "license": "AGPLv3", diff --git a/public/client.js b/public/client.js index 96e7511..9b5d2ee 100755 --- a/public/client.js +++ b/public/client.js @@ -10,6 +10,7 @@ const socket = io(); const config = { iceServers: [{ urls: 'stun:stun.l.google.com:19302' }] }; // DOM elements +const githubDiv = document.querySelector('#githubDiv'); const signInPage = document.querySelector('#signInPage'); const usernameIn = document.querySelector('#usernameIn'); const signInBtn = document.querySelector('#signInBtn'); @@ -164,6 +165,7 @@ function handleSignIn(data) { if (!success) { handleError('Username already in use. Try a different username.'); } else { + githubDiv.style.display = 'none'; signInPage.style.display = 'none'; roomPage.style.display = 'block'; diff --git a/public/index.html b/public/index.html index 70e1f6f..8f424ef 100755 --- a/public/index.html +++ b/public/index.html @@ -39,6 +39,19 @@ + +
+ Star + +
+
@@ -63,18 +76,6 @@
- -
- Star - -
diff --git a/public/style.css b/public/style.css index 20d3b79..74d19f7 100644 --- a/public/style.css +++ b/public/style.css @@ -22,6 +22,12 @@ body { background: url('background.jpg') center/cover no-repeat; /* Consolidate background properties */ } +/* Home Sign in */ +#signInPage { + position: absolute; + display: block; +} + /* General Card Styles */ .card { max-width: 400px !important; @@ -111,7 +117,9 @@ input { /* GitHub div */ #githubDiv { - margin-top: 35px; + position: absolute; + top: 10px; + right: 10px; } /* Swal2 custom theme */