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

Revert "Fixes #22 Added Background Video for Small Screens and Increase Cell Opacity" #68

Closed
Closed
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
29 changes: 7 additions & 22 deletions css/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -5,23 +5,12 @@ body {
align-items: center;
height: 100vh;
background: url("https://blenderartists.org/uploads/default/original/4X/0/5/f/05fb495b0f4ce4fb15ddc0cd136250a6aaae67c2.jpeg")
no-repeat center center fixed;
background-size: cover; /*This makes the image cover the entire background*/
no-repeat center center fixed;
background-size: cover; /* This makes the image cover the entire background */
font-family: "Arial", sans-serif;
color: #fff;
}

#backgroundVideo {
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
object-fit: cover;
z-index: -1; /* Ensures the video stays behind other content */
}


/* Rest of your CSS remains unchanged */

#currentPlayer {
Expand Down Expand Up @@ -55,7 +44,7 @@ body {
width: 100px;
height: 100px;

background-color: rgba(255, 255, 255, 0.3);
background-color: rgba(255, 255, 255, 0.1);
border: 2px solid rgba(255, 255, 255, 0.3);
border-radius: 10px;
display: flex;
Expand All @@ -81,12 +70,12 @@ body {
}

.cell:hover {
background-color: rgba(255, 255, 255, 0.463);
background-color: rgba(255, 255, 255, 0.2);
transform: scale(1.05);
}
#result {
margin-top: 20px;
font-size: 1.7em;
font-size: 1.5em;
text-align: center;
animation: glow 1.5s infinite alternate;
color: #ff007f;
Expand Down Expand Up @@ -155,12 +144,11 @@ body {
body {
height: auto;
padding: 20px;
background:none;
background-size: cover;
display:block;
}

#gameBoard {

grid-template-columns: repeat(3, 70px);
grid-template-rows: repeat(3, 70px);
gap: 5px;
Expand Down Expand Up @@ -200,7 +188,7 @@ body {
body {
height: auto;
padding: 20px;
background:none;
background-size: cover;
}

#gameBoard {
Expand Down Expand Up @@ -240,9 +228,6 @@ body {
padding: 0;
background-size: cover;
}
#backgroundVideo {
display: none;
}

#gameBoard {
grid-template-columns: repeat(3, 100px);
Expand Down
6 changes: 0 additions & 6 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,6 @@

</head>
<body>
<!-- Background Video -->
<video autoplay muted loop id="backgroundVideo">
<source src="/tictac.mp4" type="video/mp4">
Your browser does not support the video tag.
</video>

<div class="currentPlayer">
<div id="currentPlayer">Current Player: X</div>
</div class="content">
Expand Down
Binary file removed tictac.mp4
Binary file not shown.
Loading