Skip to content
This repository has been archived by the owner on Jul 7, 2024. It is now read-only.

Commit

Permalink
Update index.html
Browse files Browse the repository at this point in the history
  • Loading branch information
MyBooty165 authored Dec 17, 2023
1 parent eb38be9 commit a519a7d
Showing 1 changed file with 27 additions and 37 deletions.
64 changes: 27 additions & 37 deletions games/bacon-may-die/index.html
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@


<!DOCTYPE HTML>
<html lang="en">
<head>
Expand Down Expand Up @@ -35,20 +37,10 @@
}
</style>
<style>
main {
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
text-align: center;
}

.game-area {
box-shadow: 0 0 5px #fff;
position: relative;
text-align: center;
display: flex;
align-items: center;
}

.game-frame {
Expand All @@ -59,6 +51,22 @@
object-cover: fill;
}

.controls {
box-shadow: 0 0 5px #fff;
position: absolute;
border: 1px solid #fff;
top: 95%;
left: 0;
right: 0;
display: flex;
justify-content: space-between;
align-items: center;
padding: 10px;
background-color: #616161;
border-radius: 0 0 5px 5px;
height: 40px;
}

.game-title {
font-family: 'Source Sans Pro', sans-serif;
font-weight: bold;
Expand All @@ -68,40 +76,22 @@
margin: 0;
}

.controls {
box-shadow: 0 0 5px #fff;
position: absolute;
border: 1px solid #fff;
top: 95%;
left: 0;
right: 0;
display: flex;
justify-content: space-between;
align-items: center;
padding: 10px;
background-color: #616161;
border-radius: 0 0 5px 5px;
height: 40px;
}

.go-to-game,
.fullscreen {
background: transparent;
font-size: 20px;
color: #fff;
cursor: pointer;
border: none;
margin-right: 100px;
}
.fullscreen {
background: transparent;
font-size: 20px;
color: #fff;
cursor: pointer;
border: none;
}
</style>
</head>
<body style="overflow: hidden;">
<script src="/js/header.js"></script>
<main>
<div class="game-area">
<iframe src="game.html" class="game-frame" allowfullscreen="true" id="gameIframe"></iframe>
<iframe src="game/play.html" class="game-frame" allowfullscreen="true" id="gameIframe"></iframe>
<div class="controls">
<p class="game-title">0h n0</p>
<p class="game-title">Bacon May Die</p>
<button class="fullscreen" onclick="toggleFullscreen()"><i class="fas fa-expand"></i></button>
</div>
</div>
Expand Down

0 comments on commit a519a7d

Please sign in to comment.