Skip to content
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
18 changes: 16 additions & 2 deletions game.css
Original file line number Diff line number Diff line change
@@ -1,7 +1,13 @@
html {
height: 100vh;
width: 100vw;
width: 98vw;
background-color: #224633;
font-family: 'Fredericka the Great', cursive;
}

body {
width: 95%;
position: fixed;
}

.main {
Expand All @@ -17,6 +23,7 @@ h1 {
color: #8E888F;
text-align: center;
padding-right: 50px;
font-size: 40px;
}

h2 {
Expand All @@ -39,14 +46,15 @@ h2 {
width: 25%;
background-color: #8E888F;
height: 100%;
color: #ffffff;
}

.score-container {
margin: 65px 25px 0 25px;
padding: 15px;
font-size: 1.5rem;
background-color: #8E888F;

color: #ffffff;
height: 100%;
width: 25%;
display: flex;
Expand Down Expand Up @@ -78,4 +86,10 @@ h2 {

.game-over-display {
display: none;
}

#theme-song {
position: fixed;
bottom: 0;
left: 0;
}
10 changes: 5 additions & 5 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,14 @@
<title>Snake</title>
<link href="./game.css" rel="stylesheet" type="text/css" />
<link rel="icon" type="image/png" href="./lib/images/slytherin-logo.png">
<link href="https://fonts.googleapis.com/css?family=Fredericka+the+Great" rel="stylesheet">
</head>
<body>
<section class="header-container">
<h1>
<span>
<img class="snake-s" src="./lib/images/slytherin-logo.png" alt="Snake shaped like an s">
</span>lytherin
<span><img class="snake-s" src="./lib/images/slytherin-logo.png" alt="Snake shaped like an s"></span> nake</h1>
<img class="snake-s" src="./lib/images/slytherin-logo.png" alt="Snake shaped like an s">lytherin
<img class="snake-s" src="./lib/images/slytherin-logo.png" alt="Snake shaped like an s">nake
</h1>
</section>
<section class="main">
<article class="instructions-container">
Expand Down Expand Up @@ -43,7 +43,7 @@ <h3 class="game-over game-over-display">GAME OVER!!</h3>
title="Voldemort sad gif">
<input type="text" class="high-score-name game-over-display" placeholder="Your name here">
</section>
<audio controls loop id="theme-song">
<audio loop id="theme-song">
<source src="./lib/audio/harry-potter-theme.mp3" type="audio/ogg">
</audio>
<script src="main.bundle.js"></script>
Expand Down