Skip to content

Commit

Permalink
added routing
Browse files Browse the repository at this point in the history
  • Loading branch information
grypesc committed Feb 1, 2019
1 parent f353721 commit 7e92a2e
Show file tree
Hide file tree
Showing 2 changed files with 160 additions and 0 deletions.
38 changes: 38 additions & 0 deletions help.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
<!DOCTYPE html>
<html lang="en">
<head>
<title>Game</title>
<link rel="stylesheet" href="menu.css">
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
</head>
<body>

<header>
<h2>Welcome to a shooting game</h2>
</header>

<section>
<enterGameBox>
<p></p><input type="submit" value="Back" onclick="window.location='/';" />
</enterGameBox>

<article>
<div class="row">
<div class="column">
<img src="img/wasd.jpg" alt="HTML5 Icon" width="280" height="200">
<p>Use wasd buttons to move.</p>
</div>
<div class="column">
<img src="img/mouse.png" alt="HTML5 Icon" width="280" height="200" >
<p>Use a mouse to aim and shoot.</p>
</div>
</article>
</section>

<footer>
<p>Created by Grzegorz Rypeść</p>
</footer>

</body>
</html>
122 changes: 122 additions & 0 deletions menu.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,122 @@
<style>
* {
box-sizing: border-box;
}

body {
font-family: Arial, Helvetica, sans-serif;
padding: 40px;
width: 1200px;
height: 800px;
background-color: #262626;
}

/* Style the header */
header {
background-color: #666;
padding: 30px;
text-align: center;
font-size: 35px;
color: white;
}

input[type=text] {
background-color: #f1f1f1;
border-radius: 4px;
color: black;
padding: 4px 4px;
text-align: center;
text-decoration: none;
display: inline-block;
font-size: 16px;
width: 200px;
}
input[type=submit] {
background-color: #777;
border-radius: 16px;
color: white;
padding: 5px 30px;
text-align: center;
text-decoration: none;
display: inline-block;
font-size: 16px;
}

button[type=submit] {
background-color: #777;
border-radius: 16px;
color: white;
padding: 5px 30px;
text-align: center;
text-decoration: none;
display: inline-block;
font-size: 16px;
}



enterGameBox {
float: left;
width: 25%;
height: 300px;
background: lightgrey;
align-content: center;
text-align: center;
margin: auto;
}

article {
float: right;
width: 75%;
background-color: #f1f1f1;
height: 300px;
text-indent: 50px;
image-orientation:


}

sourceCode {
float: right;
width: 100%;
background-color: #f1f1f1;
height: 3000px;
text-indent: 50px;
image-orientation:
}

sources {
float: left;
background-color: white;
height: 400px;
width: 100%;
text-indent: 0px;
line-height: 22px;
display: block;
}
/* Clear floats after the columns */
section:after {
content: "";
display: table;
clear: both;
}

.row {
display: flex;
}

.column {
flex: 33.33%;
padding: 10px;
}


footer {
background-color: #777;
padding: 10px;
text-align: center;
line-height: 150px;
color: white;
height: 200px
}
</style>

0 comments on commit 7e92a2e

Please sign in to comment.