Browse Source

layout changes

visual-improvement
Michael Boeyens 3 years ago
parent
commit
0203461312
5 changed files with 12 additions and 5 deletions
  1. BIN
      db.sqlite
  2. 2
    2
      game.php
  3. 1
    1
      gamevisual.inc
  4. 1
    1
      login.inc
  5. 8
    1
      style.css

BIN
db.sqlite View File


+ 2
- 2
game.php View File

@@ -46,7 +46,7 @@ loginTimout();
shotForm();
difficultyForm();
?>
<input type="submit" class="game__selection" <?php submitButtonValue(); ?>>
<input type="submit" class="difficulty__selection" <?php submitButtonValue(); ?>>
</form>

<?php
@@ -58,7 +58,7 @@ loginTimout();

<!-- logout button -->
<form action="<?php echo htmlspecialchars($_SERVER["PHP_SELF"]); ?>" method="POST">
<input type="submit" value="logout" name="logout" class="game__selection">
<input type="submit" value="logout" name="logout" class="difficulty__selection">
</form>



+ 1
- 1
gamevisual.inc View File

@@ -110,7 +110,7 @@ function tbodyVisualTable()
if (!(isset($_SESSION['game']))) {
?>
<label for="difficulty-select">Choose difficulty:</label>
<select name="difficulty" id="difficulty-select" class="game__selection">
<select name="difficulty" id="difficulty-select" class="difficulty__selection">
<option value="">--please choose the difficulty--</option>
<option value="easy">easy</option>
<option value="medium">medium</option>

+ 1
- 1
login.inc View File

@@ -55,7 +55,7 @@ function registerUser()
$queryResult = $dbase->registerQuery($login);

if ($queryResult) {
return "<span class=\"loginform__input__items errormessage\">loginnaam al in gebruik</span>";
return "<span class=\"loginform__input__items errormessage\">Loginnaam al in gebruik</span>";
} else {
$dbase->registerInsert($login, $password);
header('Location: index.php');

+ 8
- 1
style.css View File

@@ -28,6 +28,13 @@
margin: 0.5em 0;
}

.difficulty__selection {
height: 44px;
margin: 0.5em 0;
font-size: 0.75em;
padding: 5px;
}

.game {
margin: 1em 0.5em;
font-size: 1.2em;
@@ -57,7 +64,7 @@
}

.errormessage {
color: red;
color: hsl(360, 81%, 34%);
font-weight: 600;
}


Loading…
Cancel
Save