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

logic css js done for now #41

Open
wants to merge 1 commit into
base: master
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
191 changes: 191 additions & 0 deletions css/main.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,191 @@
html{
height: 100%;
}
body{
margin: 0px;
padding: 0px;
height: 100%;
}



#flexContainer{
display: flex;
}

#container1, #container3{
flex: 2;
background-color: #AFD3D1;
height: 100vh;
}

#container2{
flex: 5;
background-color: #D1D3D2;
text-align: center;
position: relative;
height: 100vh;
}


#titleDiv{
text-align: center;
width: 260px;
height: 75px;
/*border: solid 3px blue;*/
margin: 10px auto 0 auto;
}

#gameButtonDiv{
text-align: center;
width: 260px;
height: 75px;
margin: 410px auto 0 auto;
}

#scoreToBeatDiv{
text-align: center;
width: 260px;
height: 75px;
border: solid 5px #FFFFFF;
border-radius: 25px;
margin: 10px auto 0 auto;
background-color: #D2D2D3;
display: none;
}

#player1FinalScore{
margin-top: 23px;
font-size: 20px;
font-family: 'Fira Sans', sans-serif;
color: #F0787A;

}

#computerHalf{
width: 100%;
height: 33%;
}

#playerHalf{
position: absolute;
display: none;
top: 250px;
width: 100%;
height: 50%;
}

#timerDiv{
display: none;
}

#questionBox{
margin: 50px auto 0 auto;
height: 100px;
width: 550px;
background-color: #F2777A;
border: solid 5px #FFFFFF;
border-radius: 20px;
}

#questionBoxText{
font-size: 35px;
font-family: 'Fira Sans', sans-serif;
color: #FFFFFF;
margin-top: 25px;
}

#answerBox{
height: 100px;
width: 350px;
background-color: #AED4CE;
border: solid 5px #FFFFFF;
border-radius: 20px;
margin: 0 auto 20px auto;
display: none;

}

#answerBoxText{
margin-top: 30px;
font-size: 30px;
font-family: 'Fira Sans', sans-serif;
color: #FFFFFF;
}


#curPlayerNScore{
margin-top: 10px;
display: inline;
}

#displayCurrentPlayer{
display: inline;
margin: 10px 0 0 -200px;
width: 100px;
color: #FFFFFF;
font-size: 18px;
font-family: 'Fira Sans', sans-serif;
}

#displayCurrentScore{
display: inline;
margin: 10px auto 0 30px;
width: 100px;
color: #FFFFFF;
font-size: 18px;
font-family: 'Fira Sans', sans-serif;
}

#playerInputArea{
margin: 5px auto 0 auto;
}

#playerInputBox{
width: 500px;
height: 80px;
font-size: 50px;
font-family: 'Fira Sans', sans-serif;
text-align: center;
color: #D1D2D4;
border: solid 5px #E1E3E4;
}

#newGameButton{
border-radius: 20px;
background-color: #F0787A;
font-size: 35px;
font-family: 'Fira Sans', sans-serif;
color: #AFD3CF;
width: 250px;
height: 70px;
border: solid 5px #FFFFFF;
}

#newGameButton:active {
transform: translateY(4px);
}

#newGameButton:hover {
background-color: #ba595c;
}

#logoImg{
height: 75px;
width: auto;
}

#titleText{
height: 75px;
width: 260px;
margin: 0 auto 60px auto;
font-size: 60px;
font-family: 'Teko', sans-serif;
color: #F0787A;
}

#countDownTimer{
font-size: 24px;
font-family: 'Fira Sans', sans-serif;
color: #F0787A;
}
Binary file added img/logo.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
66 changes: 58 additions & 8 deletions index.html
Original file line number Diff line number Diff line change
@@ -1,11 +1,61 @@
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title></title>
<link rel="stylesheet" href="css/style.css">
</head>
<body>
<script src="js/script.js" charset="utf-8"></script>
</body>
<head>
<title>BE QUICK!</title>
<link rel="shortcut icon" href="img/logo.png"/>
<link href="https://fonts.googleapis.com/css?family=Fira+Sans|Teko" rel="stylesheet">
<link rel="stylesheet" type="text/css" href="css/main.css">
</head>
<body>

<div id="flexContainer">

<div id="container1">
<div id="titleDiv">
<img id="logoImg" src="img/logo.png">
<div id="titleText">BE QUICK!</div>
</div>
<div id="gameButtonDiv">
<button id="newGameButton">New Game</button>
</div>
</div>



<div id="container2">
<div id="computerHalf">
<div id="timerDiv">
<p id="countDownTimer">#s remaining</p>
</div>
<div id="questionBox"><p id="questionBoxText">Click New Game to begin!</p></div>
</div>

<div id="playerHalf">
<div id="answerBox"><p id="answerBoxText">HELLO THIS IS A TEST</p></div>
<div id="curPlayerNScore">
<p id="displayCurrentPlayer">Player: 1</p>
<p id="displayCurrentScore">Current Score: 0</p>
</div>

<div id="playerInputArea">
<form id="playerInputForm">
<input type="text" name="playerInputBox" placeholder="Type here!" id="playerInputBox" autofocus>
</form>
</div>
</div>
</div> <!-- End #container-->


<div id="container3">
<div id="scoreToBeatDiv">
<p id="player1FinalScore">YOUR SCORE TO BEAT: 0</p>
</div>
</div>
</div> <!-- End flexbox container -->

</body>

<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.12.4/jquery.min.js"></script>
<script src="js/main.js"></script>

</html>
Loading