Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
css changes and profile added
  • Loading branch information
met18001 committed Mar 3, 2020
1 parent 8cb9b63 commit 22be340
Show file tree
Hide file tree
Showing 11 changed files with 81 additions and 2 deletions.
53 changes: 52 additions & 1 deletion css/main.css
Expand Up @@ -55,4 +55,55 @@ h1{
}
p{
text-align: center;
}

}
.button{

}
.user{
display: -webkit-box;
display: flex;
-webkit-box-align: center;
align-items: center;
-webkit-box-pack: center;
justify-content: center;
-webkit-box-orient: vertical;
-webkit-box-direction: normal;
flex-direction: column;
}
h2{
text-align: center;
margin: .5em;
}
h3{
margin-top: 4px;
margin-bottom: 6px;
font-style: italic;
}
#pic{
max-width: 300px;
max-height: 300px;
}
a:link {
color:coral;
text-decoration: none;
}

/* visited link */
a:visited {
color: white;
text-decoration: none;
}

/* mouse over link */
h1:hover{
color: coral;
background-color: lightseagreen;
text-decoration: none;
}

/* selected link */
a:active {
color: coral;
text-decoration: none;
}
Binary file added img/cat.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added img/filler.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added img/jeff.jpg
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added img/mvp.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added img/oof.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added img/placeholder.jpg
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added img/yeet.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions index.html
Expand Up @@ -14,6 +14,7 @@
<body>

<header><h1>~Meira's Mobile App Chat Room~</h1></header>
<a href="http://https://github.uconn.edu/pages/met18001/mobile-app-chat-app/profile.html"><img src="img/mvp.png" alt=""></a>


<div id="chatBox">
Expand Down
7 changes: 6 additions & 1 deletion js/main.js
Expand Up @@ -51,13 +51,18 @@ function makeAndDisplaymMessage(sender,dateStamp,text){

document.querySelector("#sendBtn").addEventListener('click', function(){

makeAndDisplaymMessage("me","now", document.querySelector("#newMsg").value);
makeAndDisplaymMessage("me","now", document.querySelector("#newMsg").value);
document.querySelector("#newMsg").value = "";
document.querySelector("#newMsg").focus();
let src = 'img/notif.mp3';
let audio = new Audio(src);
audio.play();
window.navigator.vibrate(200);

let curr_date = new Date();
let month = curr_date.getMonth() + 1;
let date_str = month.toString() + "/" + curr_date.getDate().toString() + "/" + curr_date.getFullYear().toString();

});


22 changes: 22 additions & 0 deletions profile.html
@@ -0,0 +1,22 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Profile</title>
<link href="https://fonts.googleapis.com/css?family=Advent+Pro&display=swap" rel="stylesheet">
<link href="css/main.css" rel="stylesheet">
</head>
<body>
<div class="user">
<img src="img/mvp.png" alt="placeholder" id="pic">
<h2>Hannah Baker </h2>
<h3>Cookie Curator</h3>
<h1 class="button"> <a href="https://github.uconn.edu/pages/met18001/mobile-app-chat-app/index.html">Go Back to Chat App</a></h1>
<p>
Lorem ipsum dolor sit amet consectetur adipisicing elit. Deserunt numquam, consequatur eos error ducimus quisquam nam ut quasi sint adipisci sit molestiae, ad dolorum iste possimus deleniti rerum ipsum repudiandae.
Lorem ipsum dolor sit amet consectetur adipisicing elit. Qui amet a non quas blanditiis animi, unde modi aliquid voluptatem voluptatibus ipsam repudiandae ea maxime perferendis esse dolores molestias at minus?
</p>
</div>
</body>
</html>

0 comments on commit 22be340

Please sign in to comment.