Created
November 8, 2017 01:58
-
-
Save valentineus/291bf0ded68bb27118491a9e6a037d93 to your computer and use it in GitHub Desktop.
Simple chat
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!doctype html> | |
<html lang="en"> | |
<head> | |
<title>Hello, world!</title> | |
<!-- Required meta tags --> | |
<meta charset="utf-8"> | |
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no"> | |
<!-- Bootstrap CSS --> | |
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0-beta.2/css/bootstrap.min.css" integrity="sha384-PsH8R72JQ3SOdhVi3uxftmaW6Vc51MKb0q5P2rRUpPvrszuE4W1povHYgTpBfshb" crossorigin="anonymous"> | |
<!-- Own styles --> | |
<link href="styles.css" rel="stylesheet"> | |
</head> | |
<body> | |
<main role="main" class="container"> | |
<div class="alert alert-danger alert-dismissible fade show" role="alert"> | |
<strong>Error!</strong> The text of the error. | |
<button type="button" class="close" data-dismiss="alert" aria-label="Close"> | |
<span aria-hidden="true">×</span> | |
</button> | |
</div> | |
<div class="row"> | |
<div class="col-lg-6 offset-lg-3"> | |
<div class="input-group"> | |
<span class="input-group-btn"> | |
<button class="btn btn-secondary" type="button">Send</button> | |
</span> | |
<input type="text" class="form-control" placeholder="Message text" aria-label="Message text"> | |
</div> | |
</div> | |
</div> | |
<div class="template"> | |
<h1>Simple chat with the bot</h1> | |
<div class="alert alert-light text-right" role="alert"> | |
Hello! | |
</div> | |
<div class="alert alert-dark text-left" role="alert"> | |
Good morning. | |
</div> | |
<div class="alert alert-light text-right" role="alert"> | |
This is an outgoing message. | |
</div> | |
<div class="alert alert-dark text-left" role="alert"> | |
And this is an incoming message. | |
</div> | |
</div> | |
</main> | |
<!-- Optional JavaScript --> | |
<!-- jQuery first, then Popper.js, then Bootstrap JS --> | |
<script src="https://code.jquery.com/jquery-3.2.1.slim.min.js" integrity="sha384-KJ3o2DKtIkvYIK3UENzmM7KCkRr/rE9/Qpg6aAZGJwFDMVNA/GpGFF93hXpG5KkN" crossorigin="anonymous"></script> | |
<script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.12.3/umd/popper.min.js" integrity="sha384-vFJXuSJphROIrBnz7yo7oB41mKfc8JzQZiCq4NCceLEaO4IHwicKwpJf9c9IpFgh" crossorigin="anonymous"></script> | |
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0-beta.2/js/bootstrap.min.js" integrity="sha384-alpBpkh1PFOepccYVYDB4do5UnbKysX5WZXm3XxPqe5iKTfUKjNkCk9SaVuEZflJ" crossorigin="anonymous"></script> | |
</body> | |
</html> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
body { | |
padding-top: 5rem; | |
} | |
.template { | |
padding: 3rem 1.5rem; | |
text-align: center; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment