From 6b0770844cf0fb44fdcc9b2a1114160b4af56c1a Mon Sep 17 00:00:00 2001 From: yakovlevanton Date: Sat, 10 Aug 2024 06:09:51 +0300 Subject: [PATCH] =?UTF-8?q?=D0=94=D0=BE=D0=B1=D0=B0=D0=B2=D0=B8=D0=BB=20?= =?UTF-8?q?=D0=BA=D0=BD=D0=BE=D0=BF=D0=BA=D0=B8=20=D0=B4=D0=BB=D1=8F=20?= =?UTF-8?q?=D0=BE=D1=82=D0=BE=D0=B1=D1=80=D0=B0=D0=B6=D0=B5=D0=BD=D0=B8?= =?UTF-8?q?=D1=8F=20=D0=B2=D1=81=D0=B5=D1=85=20=D1=83=D1=87=D0=B0=D1=81?= =?UTF-8?q?=D1=82=D0=BD=D0=B8=D0=BA=D0=BE=D0=B2=20=D0=B4=D0=B0=D0=BD=D0=BD?= =?UTF-8?q?=D0=BE=D0=B3=D0=BE=20=D1=87=D0=B0=D1=82=D0=B0,=20=D0=B4=D0=BE?= =?UTF-8?q?=D0=B1=D0=B0=D0=B2=D0=BB=D0=B5=D0=BD=D0=B8=D1=8F=20=D1=83=D1=87?= =?UTF-8?q?=D0=B0=D1=81=D1=82=D0=BD=D0=B8=D0=BA=D0=BE=D0=B2=20=D0=B2=20?= =?UTF-8?q?=D0=B4=D0=B0=D0=BD=D0=BD=D1=8B=D0=B9=20=D1=87=D0=B0=D1=82,=20?= =?UTF-8?q?=D0=B0=20=D1=82=D0=B0=D0=BA=D0=B6=D0=B5=20=D0=BF=D0=B5=D1=80?= =?UTF-8?q?=D0=B5=D1=85=D0=BE=D0=B4=20=D0=BD=D0=B0=20=D1=81=D1=82=D1=80?= =?UTF-8?q?=D0=B0=D0=BD=D0=B8=D1=86=D1=83=20=D0=BF=D1=80=D0=BE=D1=84=D0=B8?= =?UTF-8?q?=D0=BB=D1=8F=20=D0=BF=D1=80=D0=B8=20=D0=BD=D0=B0=D0=B6=D0=B0?= =?UTF-8?q?=D1=82=D0=B8=D0=B8=20=D0=BD=D0=B0=20username=20=D1=83=D1=87?= =?UTF-8?q?=D0=B0=D1=81=D1=82=D0=BD=D0=B8=D0=BA=D0=B0,=20=D1=83=D0=B1?= =?UTF-8?q?=D1=80=D0=B0=D0=BB=20=D1=81=D0=BE=D0=B7=D0=B4=D0=B0=D0=BD=D0=B8?= =?UTF-8?q?=D0=B5=20=D0=B8=20=D0=BF=D1=80=D0=BE=D0=B2=D0=B5=D1=80=D0=BA?= =?UTF-8?q?=D1=83=20=D0=BF=D0=B0=D1=80=D0=BE=D0=BB=D0=B5=D0=B9=20=D1=87?= =?UTF-8?q?=D0=B0=D1=82=D0=BE=D0=B2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- assets/css/chat.css | 91 +++++++++++++++++++++++++++++++++--- assets/css/list-rooms.css | 92 ++++++++++++++++++++++++++++++------- assets/css/profile.css | 13 ++++++ assets/html/chat.html | 18 +++++++- assets/html/list-rooms.html | 82 ++++++++++++++++----------------- assets/html/profile.html | 1 + assets/img/return.svg | 15 ++++++ assets/js/chat.js | 8 ++++ assets/js/list-rooms.js | 46 ++++++++++--------- 9 files changed, 278 insertions(+), 88 deletions(-) create mode 100644 assets/img/return.svg diff --git a/assets/css/chat.css b/assets/css/chat.css index d408af1..353c44f 100644 --- a/assets/css/chat.css +++ b/assets/css/chat.css @@ -21,13 +21,33 @@ body { } .chat-header { - background-color: #0088cc; + background-color: #007bb5; color: white; - padding: 15px; - text-align: center; - font-size: 20px; + padding: 25px; + display: flex; + justify-content: center; + align-items: center; + position: relative; +} +.room-name { + position: absolute; + left: 50%; + font-size: 24px; +} +.members { + border: none; + position: absolute; + left: 80%; + border-radius: 10px; + cursor: pointer; + width: 150px; + background-color: #f7f7f7; + height: 25px; + transition: background-color 0.3s ease; +} +.members:hover { + background-color: #218838; } - .chat-messages { flex: 1; padding: 15px; @@ -97,7 +117,66 @@ body { cursor: pointer; outline: none; } - +.members-list { + display: none; + position: fixed; + background-color: #fff; + margin: 10% auto; + padding: 20px; + border: 1px solid #888; + width: 80%; + max-width: 400px; + border-radius: 10px; + box-shadow: 0 0 10px rgba(0, 0, 0, 0.2); +} +.members-list-header { + display: flex; +} +.all-members { + position: absolute; + left: 32%; + top: 0%; + margin-bottom: 30px; + font-family: Arial, sans-serif; +} +.close { + position: absolute; + right: 5%; + font-size: 24px; + font-weight: bold; +} +.members-list span { + cursor: pointer; +} +.members-list-body ul { + list-style-type: none; + left: 0%; +} +.members-list-body img { + margin-top: 10px; + left: 0%; + height: 30px; + width: 30px; + border-radius: 50%; +} +.members-list-body a { + margin-left: 5px; + margin-top: 10px; + text-decoration: none; + color: black; +} +.overlay { + display: none; + position: fixed; + top: 0; + left: 0; + width: 100%; + height: 100%; + background-color: rgba(0, 0, 0, 0.5); + justify-content: center; + align-items: center; + z-index: 1000; +} .chat-send-button:hover { background-color: #007bb5; } \ No newline at end of file diff --git a/assets/css/list-rooms.css b/assets/css/list-rooms.css index 4a4643a..3d87cf8 100644 --- a/assets/css/list-rooms.css +++ b/assets/css/list-rooms.css @@ -7,7 +7,7 @@ body { .container { max-width: 800px; - margin: 30px auto; + margin: 30px auto; padding: 20px; background-color: #007bff; box-shadow: 0 0 10px rgba(0, 0, 0, 0.1); @@ -16,7 +16,7 @@ body { h1 { text-align: center; - color: #fff; + color: #fff; } .room-list { @@ -55,7 +55,47 @@ h1 { cursor: pointer; transition: background-color 0.3s ease; } - +.add-members-header { + text-align: center; +} +.add-members-footer { + text-align: right; + margin-top: 5px; +} +.add-members-button { + background-color: #218838; + padding: 10px 15px; + font-size: 16px; + color: white; + border: none; + border-radius: 5px; + position: absolute; + margin-left: 500px; + cursor: pointer; + transition: background-color 0.3s ease; +} +.add-members-button:hover { + background-color: #006509 +} +#newMemberLogin { + width: 93.5%; + padding: 10px; + margin: 10px 0; + border: 1px solid #ddd; + border-radius: 5px; +} +.add-member-button { + background-color: #218838; + padding: 10px 15px; + font-size: 16px; + color: white; + border: none; + border-radius: 5px; + position: absolute; + margin-left: -105px; + cursor: pointer; + transition: background-color 0.3s ease; +} .join-button:hover { background-color: #0056b3; } @@ -74,7 +114,7 @@ h1 { .modal-content { background-color: #fff; - margin: 10% auto; + margin: 10% auto; padding: 20px; border: 1px solid #888; width: 80%; @@ -96,19 +136,6 @@ h1 { text-align: right; } -.close { - color: #aaa; - float: right; - font-size: 28px; - font-weight: bold; -} - -.close:hover, .close:focus { - color: black; - text-decoration: none; - cursor: pointer; -} - .modal input { width: 93.5%; padding: 10px; @@ -134,3 +161,34 @@ h1 { .create-room-button:hover { background-color: #218838; } + +.overlay { + display: none; + position: fixed; + top: 0; + left: 0; + width: 100%; + height: 100%; + background-color: rgba(0, 0, 0, 0.5); + justify-content: center; + align-items: center; + z-index: 1000; +} + +.overlay .add-members { + background-color: white; + padding: 30px; + border-radius: 10px; + box-shadow: 0 0 10px rgba(0, 0, 0, 0.2); + max-width: 400px; + width: 100%; + height: 18%; + position: fixed; +} + +.close { + color: #aaa; + float: right; + font-size: 28px; + font-weight: bold; + cursor: pointer; diff --git a/assets/css/profile.css b/assets/css/profile.css index 47c1390..6147869 100644 --- a/assets/css/profile.css +++ b/assets/css/profile.css @@ -24,6 +24,19 @@ body { border-color: antiquewhite; background-color: #0088cc; border-radius: 10px; + position: relative; +} +.return { + background-image: url("/assets/img/return.svg"); + background-repeat: no-repeat; + cursor: pointer; + width: 30px; + height: 30px; + border-radius: 10px; + position: absolute; + left: 20px; + top: 30px; + border: none; } form { display: flex; diff --git a/assets/html/chat.html b/assets/html/chat.html index 809d6b4..056cce1 100644 --- a/assets/html/chat.html +++ b/assets/html/chat.html @@ -9,7 +9,8 @@
- Веб чат + Веб чат +
@@ -19,7 +20,20 @@
- +
+
+
+ × +

Все участники

+
+
+ +
+
+
diff --git a/assets/html/list-rooms.html b/assets/html/list-rooms.html index 390359f..e1dbf92 100644 --- a/assets/html/list-rooms.html +++ b/assets/html/list-rooms.html @@ -1,52 +1,52 @@ - - - Список Чат-Комнат - + + + Список Чат-Комнат + -
-

Выберите Чат-Комнату

- - -
+
+

Выберите Чат-Комнату

+ + +
- - - -