Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

create the chat box #4

Open
wants to merge 1 commit into
base: develop
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
101 changes: 101 additions & 0 deletions Chat_box.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,101 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>Paolobot</title>
<meta name="viewport" content="width=device-width, initial-scale=1">
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.10.2/jquery.min.js"></script>
<link href="http://netdna.bootstrapcdn.com/bootstrap/3.3.1/css/bootstrap.min.css" rel="stylesheet">
<link rel="stylesheet" href="css/style.css">
</head>

<body>

<div class="container bootstrap">
<div class="row">
<div class="col-md-4 col-md-offset-4">
<div class="portlet portlet-default">
<div class="portlet-heading">
<div class="portlet-title">
<h4><i class="fa fa-circle text-black"></i> PaoloBot</h4>
</div>
<div class="clearfix"></div>
</div>
<div id="chat" class="panel-collapse collapse in">
<div>
<div class="portlet-body chat-widget" style="overflow-y: auto; width: auto; height: 300px;">
<div class="row">
<div class="col-lg-12">
<p class="text-center text-muted small">July 14, 2018 12:23 PM</p>
</div>
</div>
<div class="row">
<div class="col-lg-12">
<div class="media">
<a class="pull-left" href="#">
<img class="avatar media-object img-circle" src="img/g4630.png" alt="Avatar">
</a>
<div class="media-body">
<h4 class="media-heading">paoloBot
</h4>
<p>Hi, it is a pleasure to meet you Wale, I'm here to help you with your learning path</p>
</div>
</div>
</div>
</div>
<hr>
<div class="row">
<div class="col-lg-12">
<div class="media">
<a class="pull-left" href="#">
<img class="media-object img-circle" src="https://lorempixel.com/30/30/people/7/" alt="">
</a>
<div class="media-body">
<h4 class="media-heading">Wale Smith
</h4>
<p>Awesome, this what exactly what I need.</p>
<p>Please help make it happen</p>
</div>
</div>
</div>
</div>
<hr>
<div class="row">
<div class="col-lg-12">
<div class="media">
<a class="pull-left" href="#">
<!-- <img class="media-object img-circle" src="https://lorempixel.com/30/30/people/7/" alt=""> -->
<img class="avatar media-object img-circle" src="img/g4630.png" alt="Avatar">
</a>
<div class="media-body">
<h4 class="media-heading">paoloBot
</h4>
<p>Sure it is why I am here, lets start.</p>
</div>
</div>
</div>
</div>
<hr>
</div>
</div>
<div class="portlet-footer">
<form role="form">
<div class="form-group">
<textarea class="form-control" placeholder="Enter message..."></textarea>
</div>
<div class="form-group">
<button type="button" class="btn btn-default pull-right">Send</button>
<div class="clearfix"></div>
</div>
</form>
</div>
</div>
</div>
</div>
<!-- /.col-md-4 -->
</div>
</div>


</body>
</html>
58 changes: 58 additions & 0 deletions css/style.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,58 @@

.portlet {
margin-bottom: 15px;
}

.portlet {
border: 1px solid;
}

.portlet .portlet-heading {
padding: 0 15px;
}

.portlet .portlet-heading h4 {
padding: 1px 0;
font-size: 16px;
}

.portlet .portlet-heading .portlet-title {
float: left;
}

.portlet .portlet-heading .portlet-title h4 {
margin: 10px 0;
}

.portlet .portlet-body {
padding: 15px;
background: #fff;
}

.portlet .portlet-footer {
padding: 10px 15px;
background: #424B50;
}

.portlet .portlet-footer ul {
margin: 0;
}

.portlet-default>.portlet-heading,
.portlet-dark-blue>.portlet-heading {
color: #fff;
background-color: #E05045;
}

@media(min-width:768px) {
.portlet {
margin-bottom: 30px;
}
}

.avatar {
vertical-align: middle;
width: 30px;
height: 30px;
border-radius: 50%;
}
Binary file added img/g4630.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.