Skip to content

Commit

Permalink
improved UI
Browse files Browse the repository at this point in the history
  • Loading branch information
invicta198 committed May 16, 2020
1 parent cc0576f commit 5428f19
Show file tree
Hide file tree
Showing 3 changed files with 39 additions and 17 deletions.
48 changes: 32 additions & 16 deletions public/intro.html
Original file line number Diff line number Diff line change
@@ -1,23 +1,39 @@
<!DOCTYPE html>
<html>
<head>
<title>First Page</title>
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/4.4.1/css/bootstrap.min.css">
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.4.1/jquery.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.16.0/umd/popper.min.js"></script>
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/4.4.1/js/bootstrap.min.js"></script>
<script src="/socket.io/socket.io.js"></script>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="https://www.w3schools.com/w3css/4/w3.css">
<link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Lato">
<link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Montserrat">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css">
</head>
<style>
body{
background-color: #A2A2A2;
}
h1, h3 {
font-family: "Lato", sans-serif
}
.w3-bar,h1 {
font-family: "Montserrat", sans-serif
}
#button{
font-family: "Montserrat", sans-serif;
border: 2px solid;
border-radius: 6px;
}
</style>
<body>
<div class="container"><br>
<div class="jumbotron">
<h2 class="display-4">Welcome to Messaging App</h2><br>
<form onsubmit="return false">
<input id="email" class="form-control" placeholder="Email" required="true"><br>
<input id="password" class="form-control" placeholder="Password" required="true"><br><br>
<button id="send" class="btn btn-success" onclick="sendData()">Log In</button>
</form>
<div>Don't have an account?<a href="register">Register</a></div>
</div>
<header class="w3-container w3-center" style="padding:128px 16px">
<h1 class="w3-margin w3-jumbo">CHAT ROOM</h1>
<p class="w3-xlarge">Let's get started</p>
<button id="button" onclick="getLogin()"class="w3-button w3-black w3-padding-large w3-large w3-margin-top">Go On</button>
</header>
</body>
<script>
function getLogin() {
document.location.replace("http://localhost:3000/login");
}
</script>
</html>
3 changes: 3 additions & 0 deletions public/login.html
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,9 @@
<script src="/socket.io/socket.io.js"></script>
</head>
<style>
body{
background-color: #AAAAAA;
}
</style>
<body>
<div class="container"><br>
Expand Down
5 changes: 4 additions & 1 deletion public/register.html
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,9 @@
<script src="/socket.io/socket.io.js"></script>
</head>
<style>
body{
background-color: #AAAAAA;
}
</style>
<body>
<div class="container"><br>
Expand All @@ -33,7 +36,7 @@ <h1 class="display-4">Sign Up Form</h1><br>
var username = document.getElementById("username").value;
if (email=="" || password=="" || username=="") alert("fill all enteries");
else{
//object to be sent
//object to be sent
var settings = {
"async": true,
"crossDomain": true,
Expand Down

0 comments on commit 5428f19

Please sign in to comment.