Almost a chatpage!
This commit is contained in:
18
website/chat.php
Normal file
18
website/chat.php
Normal file
@@ -0,0 +1,18 @@
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<?php
|
||||
include("views/head.php");
|
||||
?>
|
||||
<body>
|
||||
<?php
|
||||
/*
|
||||
* This view adds the main layout over the screen.
|
||||
* Header, menu, footer.
|
||||
*/
|
||||
// include("views/main.php");
|
||||
|
||||
/* Add your view files here. */
|
||||
include("views/chat.php");
|
||||
?>
|
||||
</body>
|
||||
</html>
|
||||
44
website/styles/chat.css
Normal file
44
website/styles/chat.css
Normal file
@@ -0,0 +1,44 @@
|
||||
.chat {
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
.chat-history {
|
||||
/*border: solid #845663;*/
|
||||
width: 80%;
|
||||
height: 500px;
|
||||
margin: 10px auto;
|
||||
background-color: white;
|
||||
vertical-align: bottom;
|
||||
}
|
||||
|
||||
.chat-field input {
|
||||
border-radius: 8px;
|
||||
}
|
||||
|
||||
.chat-field input[type="text"] {
|
||||
width: calc(75% - 60px);
|
||||
|
||||
}
|
||||
|
||||
.chat-field input[type="submit"] {
|
||||
width: 60px;
|
||||
|
||||
}
|
||||
|
||||
.chat-message-self {
|
||||
text-align: right;
|
||||
float: right;
|
||||
margin: 10px;
|
||||
background-color: aqua;
|
||||
padding: 10px;
|
||||
border-radius: 10px;
|
||||
}
|
||||
|
||||
.chat-message-other {
|
||||
text-align: left;
|
||||
float: left;
|
||||
margin: 10px;
|
||||
background-color: aquamarine;
|
||||
padding: 10px;
|
||||
border-radius: 10px;
|
||||
}
|
||||
@@ -6,7 +6,7 @@ Website: myhyvesbookplus.tk
|
||||
-----------------------------------------------------------------------------*/
|
||||
|
||||
body {
|
||||
background-color: white;
|
||||
background-color: #B78996;
|
||||
color: #333;
|
||||
font-family: Arial, sans-serif;
|
||||
}
|
||||
@@ -28,6 +28,16 @@ body {
|
||||
border: 0;
|
||||
}
|
||||
|
||||
input[type="submit"], button {
|
||||
background-color: #845663;
|
||||
color: white;
|
||||
padding: 5px;
|
||||
}
|
||||
|
||||
input[type="text"] {
|
||||
padding: 5px;
|
||||
}
|
||||
|
||||
/* Move element down (clear), below floating elements */
|
||||
.clear {
|
||||
clear: both;
|
||||
|
||||
@@ -6,5 +6,6 @@
|
||||
<style>
|
||||
/* Add your css files here. */
|
||||
@import url("styles/main.css");
|
||||
@import url("styles/chat.css");
|
||||
</style>
|
||||
</head>
|
||||
|
||||
Reference in New Issue
Block a user