diff --git a/.idea/WebDB.iml b/.idea/WebDB.iml index b313593..0d7f9d7 100644 --- a/.idea/WebDB.iml +++ b/.idea/WebDB.iml @@ -14,5 +14,15 @@ + + + + + + + + + + \ No newline at end of file diff --git a/.idea/inspectionProfiles/Project_Default.xml b/.idea/inspectionProfiles/Project_Default.xml new file mode 100644 index 0000000..f08a78f --- /dev/null +++ b/.idea/inspectionProfiles/Project_Default.xml @@ -0,0 +1,22 @@ + + + + \ No newline at end of file diff --git a/projectplan/projectplan.pdf b/projectplan/projectplan.pdf index d868361..e41b19d 100644 Binary files a/projectplan/projectplan.pdf and b/projectplan/projectplan.pdf differ diff --git a/website/chat.php b/website/chat.php index 57e55bf..218b082 100644 --- a/website/chat.php +++ b/website/chat.php @@ -12,7 +12,7 @@ include("views/main.php"); /* Add your view files here. */ - include("views/chat.php"); + include("views/chat-view.php"); /* This adds the footer. */ include("views/footer.php"); diff --git a/website/img/Logo.png b/website/img/top-logo.png similarity index 100% rename from website/img/Logo.png rename to website/img/top-logo.png diff --git a/website/styles/chat.css b/website/styles/chat.css index 9b836cc..6874372 100644 --- a/website/styles/chat.css +++ b/website/styles/chat.css @@ -1,44 +1,70 @@ +/* Overall chat-screen */ .chat { + position: fixed; + top: 80px; + left: 256px; text-align: center; + padding: 15px 0; + width: calc(100% - 256px); + height: calc(100% - 120px); + display: inline-flex; } -.chat-history { - /*border: solid #845663;*/ - width: 80%; - height: 500px; - margin: 20px auto; +.chat-left { + width: 256px; + height: 100%; + margin-left: 10px; + margin-right: 10px; + display: inline-flex; + +} +.chat-recent, .chat-history { + border-radius: 20px; + width: 100%; background-color: white; +} + +/* List of chats. */ +.chat-recent { + height: 600px; + overflow-y: auto; + padding: 10px; + text-align: left; +} + +.chat-conversation { + margin: 5px; +} + +.chat-right { + width: calc(100% - 256px - 40px); + height: calc(100% - 80px); vertical-align: bottom; + margin-right: 10px; } -.chat-field input { - border-radius: 8px; +/* Chat history. */ +.chat-history { + overflow-y: auto; + height: 100%; + padding-bottom: 10px; } -.chat-field input[type="text"] { - width: calc(75% - 60px); - -} - -.chat-field input[type="submit"] { - width: 60px; - -} .chat-message { width: 100%; - height: 40px; + min-height: 40px; padding-top: 10px; + clear: both; } .chat-message-self, .chat-message-other { + text-align: left; border-radius: 20px; padding: 10px 12px; - min-width: 10%; max-width: 45%; } .chat-message-self { - text-align: right; float: right; margin-right: 10px; background-color: darkgreen; @@ -46,8 +72,28 @@ } .chat-message-other { - text-align: left; float: left; margin-left: 10px; background-color: aquamarine; +} + +/* Chat reply field */ + +.chat-field { + padding: 15px; +} + +.chat-field input { + border-radius: 8px; +} + +.chat-field input[type="text"] { + width: calc(100% - 80px); +} + +.chat-field input[type="submit"] { + width: 60px; + background-color: #845663; + color: white; + padding: 5px; } \ No newline at end of file diff --git a/website/styles/main.css b/website/styles/main.css index 69629f5..fb50ae3 100644 --- a/website/styles/main.css +++ b/website/styles/main.css @@ -58,11 +58,6 @@ body { border: 0; } -input[type="submit"], button { - background-color: #845663; - color: white; - padding: 5px; -} input[type="text"] { padding: 5px; diff --git a/website/views/chat-view.php b/website/views/chat-view.php new file mode 100644 index 0000000..d0a3f53 --- /dev/null +++ b/website/views/chat-view.php @@ -0,0 +1,58 @@ +
+
+ + +
+
+
+
Hi!
+
+
+
Hi!
+
+
+
How it's going?
+
+
+
Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
+
+
+
Hi!
+
+
+
Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
+
+
+
Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
+
+
+
Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
+
+
+
+
+ + +
+
+
+
+
\ No newline at end of file diff --git a/website/views/chat.php b/website/views/chat.php deleted file mode 100644 index 29e643c..0000000 --- a/website/views/chat.php +++ /dev/null @@ -1,29 +0,0 @@ -
-
-
-
-
Hi!
-
-
-
Hi!
-
-
-
How it's going?
-
-
-
Hi!
-
- -
-
- - -
-
-
\ No newline at end of file diff --git a/website/views/header.php b/website/views/header.php index 6636f09..45cb2b9 100644 --- a/website/views/header.php +++ b/website/views/header.php @@ -1,6 +1,6 @@