diff --git a/.gitignore b/.gitignore
new file mode 100644
index 0000000..e69de29
diff --git a/assets/background.png b/assets/background.png
deleted file mode 100644
index 9dda602..0000000
Binary files a/assets/background.png and /dev/null differ
diff --git a/assets/profile_pics/1.jpg b/assets/profile_pics/1.jpg
deleted file mode 100644
index 0a10fb2..0000000
Binary files a/assets/profile_pics/1.jpg and /dev/null differ
diff --git a/assets/profile_pics/default.jpg b/assets/profile_pics/default.jpg
deleted file mode 100644
index fec1bb4..0000000
Binary files a/assets/profile_pics/default.jpg and /dev/null differ
diff --git a/backend/cdn/profiles/default.jpg b/backend/cdn/profiles/default.jpg
index fec1bb4..62a6d8c 100644
Binary files a/backend/cdn/profiles/default.jpg and b/backend/cdn/profiles/default.jpg differ
diff --git a/backend/cdn/profiles/default.svg b/backend/cdn/profiles/default.svg
new file mode 100644
index 0000000..338881d
--- /dev/null
+++ b/backend/cdn/profiles/default.svg
@@ -0,0 +1 @@
+
\ No newline at end of file
diff --git a/backend/src/cdn.rs b/backend/src/cdn.rs
index a7d7819..9c9b59b 100644
--- a/backend/src/cdn.rs
+++ b/backend/src/cdn.rs
@@ -13,7 +13,7 @@ pub async fn profile_pic(user_id: usize) -> Option {
{
Some(image)
} else {
- Some(NamedFile::open("./cdn/profiles/default.jpg").await.ok()?)
+ Some(NamedFile::open("./cdn/profiles/default.svg").await.ok()?)
}
}
diff --git a/backend/static/css/index.css b/backend/static/css/index.css
index 4a7ed54..5dc0fdd 100644
--- a/backend/static/css/index.css
+++ b/backend/static/css/index.css
@@ -8,16 +8,34 @@ body {
font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
background: #0a0a0a;
color: #e0e0e0;
+ min-height: 100vh;
+ min-width: 100vw;
height: 100vh;
overflow: hidden;
}
+* {
+ margin: 0;
+ padding: 0;
+ box-sizing: border-box;
+}
+
+body {
+ font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
+ background: #0a0a0a;
+ color: #e0e0e0;
+
+ display: flex;
+ align-items: center;
+ justify-content: center;
+}
+
.chat-container {
display: flex;
flex-direction: column;
height: 100vh;
- max-width: 50vh;
- margin: 0 auto;
+ max-width: 100vw;
+ margin: 0 0;
background: #121212;
position: relative;
overflow: hidden;
@@ -341,13 +359,14 @@ body {
flex-direction: column;
/*justify-content: flex-end;*/
flex: 1;
- padding: 15px 0 15px 0;
+ padding: 15px;
+ gap: 15px;
overflow-y: scroll;
background: #121212;
}
.message {
- margin: 10px 20px;
+ margin: 0;
padding: 10px 10px;
border-radius: 10px;
background: rgba(30, 30, 30, 0.4);
@@ -499,23 +518,6 @@ body {
background: #444;
}
-* {
- margin: 0;
- padding: 0;
- box-sizing: border-box;
-}
-
-body {
- font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
- background: #0a0a0a;
- color: #e0e0e0;
- min-height: 100vh;
- display: flex;
- align-items: center;
- justify-content: center;
- padding: 20px;
-}
-
.signup-container {
width: 100%;
max-width: 480px;
diff --git a/backend/templates/chat.html.tera b/backend/templates/chat.html.tera
index dca6654..4cd8dcd 100644
--- a/backend/templates/chat.html.tera
+++ b/backend/templates/chat.html.tera
@@ -19,7 +19,7 @@
-
+ -->
@@ -97,39 +97,39 @@
// Toggle location tracking
- const locationBubble = document.getElementById("locationBubble");
- const joinButton = document.getElementById("joinButton");
- let isExpanded = false;
+ // const locationBubble = document.getElementById("locationBubble");
+ // const joinButton = document.getElementById("joinButton");
+ // let isExpanded = false;
- locationBubble.addEventListener("click", function (e) {
- // Don't toggle expanded state if clicking the join button
- if (e.target.id === "joinButton") return;
+ // locationBubble.addEventListener("click", function (e) {
+ // // Don't toggle expanded state if clicking the join button
+ // if (e.target.id === "joinButton") return;
- isExpanded = !isExpanded;
- this.classList.toggle("expanded", isExpanded);
- });
+ // isExpanded = !isExpanded;
+ // this.classList.toggle("expanded", isExpanded);
+ // });
- joinButton.addEventListener("click", function (e) {
- e.stopPropagation();
- currentUserInLocation = !currentUserInLocation;
- this.classList.toggle("active", currentUserInLocation);
- this.textContent = currentUserInLocation ? "Leave" : "Join";
- locationBubble.classList.toggle(
- "active",
- currentUserInLocation,
- );
+ // joinButton.addEventListener("click", function (e) {
+ // e.stopPropagation();
+ // currentUserInLocation = !currentUserInLocation;
+ // this.classList.toggle("active", currentUserInLocation);
+ // this.textContent = currentUserInLocation ? "Leave" : "Join";
+ // locationBubble.classList.toggle(
+ // "active",
+ // currentUserInLocation,
+ // );
- // Animate click
- this.style.transform = "scale(0.95)";
- setTimeout(() => {
- this.style.transform = "";
- }, 150);
+ // // Animate click
+ // this.style.transform = "scale(0.95)";
+ // setTimeout(() => {
+ // this.style.transform = "";
+ // }, 150);
- updateLocationUsers();
- });
+ // updateLocationUsers();
+ // });
- // Initialize location users
- updateLocationUsers();
+ // // Initialize location users
+ // updateLocationUsers();
// Handle message sending
const input = document.querySelector("input");
@@ -162,15 +162,6 @@
messagesContainer.scrollHeight;
}
- function getCurrentTime() {
- const now = new Date();
- return now.toLocaleTimeString("en-GB", {
- hour: "numeric",
- minute: "2-digit",
- hour12: true,
- });
- }
-
function sendMessage() {
const message = input.value.trim();
if (message) {
diff --git a/icons/call.svg b/icons/call.svg
deleted file mode 100644
index d527069..0000000
--- a/icons/call.svg
+++ /dev/null
@@ -1 +0,0 @@
-
\ No newline at end of file
diff --git a/icons/down_arrow.svg b/icons/down_arrow.svg
deleted file mode 100644
index 8aca477..0000000
--- a/icons/down_arrow.svg
+++ /dev/null
@@ -1 +0,0 @@
-
\ No newline at end of file
diff --git a/icons/location.svg b/icons/location.svg
deleted file mode 100644
index 872023c..0000000
--- a/icons/location.svg
+++ /dev/null
@@ -1 +0,0 @@
-
\ No newline at end of file
diff --git a/icons/pin.svg b/icons/pin.svg
deleted file mode 100644
index 4375bde..0000000
--- a/icons/pin.svg
+++ /dev/null
@@ -1 +0,0 @@
-
\ No newline at end of file
diff --git a/icons/search.svg b/icons/search.svg
deleted file mode 100644
index b78a3fe..0000000
--- a/icons/search.svg
+++ /dev/null
@@ -1 +0,0 @@
-
\ No newline at end of file
diff --git a/icons/send.svg b/icons/send.svg
deleted file mode 100644
index 26dfe0e..0000000
--- a/icons/send.svg
+++ /dev/null
@@ -1 +0,0 @@
-
\ No newline at end of file
diff --git a/index.html b/index.html
index 3325c89..e69de29 100644
--- a/index.html
+++ b/index.html
@@ -1,748 +0,0 @@
-
-
-
-
-
- Discord Clone - Group Chat
-
-
-
-
-
-
-
-
-
-
-
-
-

-
-
-
-

-
-
-
Live Location
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/map.png b/map.png
deleted file mode 100644
index 8d46e33..0000000
Binary files a/map.png and /dev/null differ
diff --git a/vibecodedconcept.html b/vibecodedconcept.html
index 9c57e99..e69de29 100644
--- a/vibecodedconcept.html
+++ b/vibecodedconcept.html
@@ -1,454 +0,0 @@
-
-
-
-
-
- Discord Clone - Group Chat
-
-
-
-
-
-
-
-