JSFiddle - React, Tailwind, and code Playground
HTML
<div class="top">
QUICKCALL.ME - ONLINE AUDIO CHAT FOR GAMERS
</div>
<div class="chatmain">
<div class="chatchannel">CHANNEL NAME: COUNTERSTRK2
</div>
<div class="chatlist">
<div class="chatperson">Danny</div> <div class="chatmic"></div>
<div class="chatperson">American teen</div> <div class="chatloudspeaker"></div>
<div class="chatperson">American teen</div> <div class="chatloudspeaker"></div>
<div class="chatperson">American teen</div> <div class="chatloudspeaker"></div>
<div class="chatperson">American teen</div> <div class="chatloudspeaker"></div>
<div class="chatperson">American teen</div> <div class="chatloudspeaker"></div>
<div class="chatperson">American teen</div> <div class="chatloudspeaker"></div>
<div class="chatperson">American teen</div> <div class="chatloudspeaker"></div>
</div>
<div class="adminbox">SET ROOM PASSWORD
</div>
</div>
<a href="#" class="helpdesk"></a>
<a href="#" class="settings"></a>
<div class="password">
<div class="passwordbox"><input type="text" placeholder="ENTER PASSWORD" class="textbox3"/></div>
<div class="passwordbutton">PROCEED</div>
</div>
CSS
/* @font-face kit by Fonts2u (http://www.fonts2u.com) */ @font-face {font-family:"Gears of Peace";src:url("GearsOfPeace.eot?") format("eot"),url("GearsOfPeace.woff") format("woff"),url("GearsOfPeace.ttf") format("truetype"),url("GearsOfPeace.svg#GearsofPeace") format("svg");font-weight:normal;font-style:normal;}
body
{
margin: 0;
padding: 0;
background: url(background.png) no-repeat center center fixed;
-webkit-background-size: cover;
-moz-background-size: cover;
-o-background-size: cover;
background-size: cover;
font-family:"Gears of Peace";
}
textarea:focus, input:focus{
outline: 0;
}
.top
{
margin: auto;
width: 900px;
height: 45px;
font-family:"Gears of Peace";
font-size: 18px;
text-align: center;
background-color: rgba(0,0,0,0.5);
color: white;
padding-top: 25px;
margin-top: 50px;
}
.top:hover
{
color: red;
transition-duration: 1s;
-webkit-transition-duration: 1s;
-moz-transition-duration: 1s;
-o-transition-duration: 1s;
}
.main
{
width: 650px; height: 280px; margin:auto; margin-top: 40px; padding-top: 60px; background-color: rgba(0,0,0,0.5);
}
.httpbox
{
width: 310px; height: 35px; font-family: Verdana; font-size: 24px; margin: auto; color: grey; background-color: transparent; float: left; margin-top: 4px;
margin-left: 60px; font-style: italic;
}
.adminbox
{
width: 50px; height: 35px; font-family: Verdana; font-size: 24px; margin: auto; color: green; background-color: transparent; float: right; margin-top: 4px;
margin-left: 60px; font-style: italic;
}
.textbox
{
width: 250px; height: 35px; background-color: transparent; color: white; border: none; float: left; font-size: 24px; font-family: Verdana;
font-style: italic; margin-left: 3px;
}
.textbox::-webkit-input-placeholder { color:white}
.textbox:-moz-placeholder { color:white }
.textbox:focus
{
...
JavaScript
$(document).ready(function () {
$('.chatmic').click(function () {
$(".chatmic").toggleClass("chatmicoff");
});
$('.chatloudspeaker').click(function () {
$(".chatloudspeaker").toggleClass("chatloudspeakeroff");
});
$('.adminbox').click(function () {
$(".password").toggle();
$(".textbox3").focus();
});
});