-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
20 changed files
with
154 additions
and
0 deletions.
There are no files selected for viewing
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,84 @@ | ||
<!DOCTYPE html> | ||
<html lang="en"> | ||
<head> | ||
<meta charset="UTF-8"> | ||
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | ||
<title>Bedrock Tweaks</title> | ||
<link rel="stylesheet" href="landing-page.css"> | ||
</head> | ||
<body> | ||
<br> | ||
<div class="image-container"> | ||
<img id="title" alt="BedrockTweaks" src="title.png"> | ||
</div> | ||
<div id="background-container"></div> | ||
<script> | ||
// Array of textures | ||
const textures = [ | ||
{ src: "dirt/0.png" }, | ||
{ src: "dirt/1.png" }, | ||
{ src: "dirt/2.png" }, | ||
{ src: "dirt/3.png" }, | ||
{ src: "dirt/4.png" }, | ||
{ src: "dirt/5.png" }, | ||
{ src: "dirt/6.png" }, | ||
{ src: "dirt/7.png" }, | ||
{ src: "dirt/8.png" }, | ||
{ src: "dirt/9.png" }, | ||
{ src: "dirt/10.png" }, | ||
{ src: "dirt/11.png" }, | ||
{ src: "dirt/12.png" }, | ||
{ src: "dirt/13.png" }, | ||
{ src: "dirt/14.png" }, | ||
{ src: "dirt/15.png" } | ||
]; | ||
|
||
// Function to select a texture with equal probability | ||
function selectTexture() { | ||
const index = Math.floor(Math.random() * textures.length); | ||
return textures[index].src; | ||
} | ||
|
||
// Function to create tiles with random background images | ||
function createTiles() { | ||
const container = document.getElementById("background-container"); | ||
const numColumns = Math.ceil(window.innerWidth / 100) + 2; | ||
const numRows = Math.ceil(window.innerHeight / 100) + 2; | ||
|
||
container.innerHTML = ""; | ||
|
||
for (let i = 0; i < numColumns; i++) { | ||
const rowDiv = document.createElement("div"); | ||
rowDiv.className = "row"; // Add a class for styling purposes if needed | ||
|
||
for (let j = 0; j < numRows; j++) { | ||
const tile = document.createElement("div"); | ||
tile.className = "tile"; | ||
tile.style.backgroundImage = `url("${selectTexture()}")`; | ||
rowDiv.appendChild(tile); | ||
} | ||
|
||
container.appendChild(rowDiv); | ||
} | ||
} | ||
|
||
// Call the function to create tiles | ||
createTiles(); | ||
|
||
// Redraw tiles on window resize to maintain the grid | ||
window.addEventListener("resize", () => { | ||
document.getElementById("background-container").innerHTML = ""; | ||
createTiles(); | ||
}); | ||
</script> | ||
<div class="text"> | ||
<p>Welcome to <a href="https://bedrocktweaks.github.io">bedrocktweaks.github.io</a>, an open-sourced, updated version of <a href="https://bedrocktweaks.net">bedrocktweaks.net</a></p> | ||
<p>Currently, we are in the process of shifting Crafting Tweaks and Addons to their seperate website</p> | ||
<p>Server sponsorship are accepted, as self-hosting is not really a good option</p> | ||
</div> | ||
<div class="text"> | ||
<h3>Pages:</h3> | ||
<button class="button" onclick="document.location='https://bedrocktweaks.github.io/resource-packs'">Resource Packs</button> | ||
</div> | ||
</body> | ||
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,70 @@ | ||
@import url('https://fonts.googleapis.com/css2?family=Pixelify+Sans:wght@400..700&display=swap'); | ||
body { | ||
/* Because I can*/ | ||
font-family: "Pixelify Sans"; | ||
margin: 0; | ||
padding: 0; | ||
color: black; | ||
z-index: 3; | ||
} | ||
header { | ||
color: white; | ||
padding: 10px 0; | ||
text-align: center; | ||
} | ||
.button { | ||
width: 200px; | ||
height: 50px; | ||
font-size: 20px; | ||
padding: 10px 20px; | ||
color: white; | ||
background: url('others/stone.png'); | ||
background-repeat: repeat; | ||
border: 2px solid #111; | ||
cursor: pointer; | ||
} | ||
.image-container { | ||
text-align: center; | ||
size: cover; | ||
position: relative; | ||
z-index: 1; | ||
} | ||
.text { | ||
text-align: center; | ||
margin: 20px; | ||
position: relative; | ||
z-index: 1; | ||
background: rgb(72,73,74); | ||
padding: 5px; | ||
border-radius: 5px; | ||
border: opaque; | ||
border-style: solid; | ||
border-width: 5px; | ||
border-color: rgb(84,85,86) rgb(49,50,51) rgb(49,50,51) rgb(84,85,86); | ||
} | ||
.tile { | ||
width: 100px; | ||
height: 100px; | ||
background-size: cover; | ||
overflow: hidden; | ||
} | ||
#background-container { | ||
grid-template-columns: repeat(auto-fill, 100px); | ||
grid-template-rows: repeat(auto-fill, 100px); | ||
width: 100%; | ||
height: 100%; | ||
background-size: cover; | ||
position: fixed; | ||
top: 0; | ||
left: 0; | ||
z-index: 0; | ||
pointer-events: none; | ||
overflow: visible; | ||
display: flex; | ||
flex-wrap: nowrap; | ||
} | ||
#title { | ||
max-width: 100%; | ||
height: auto; | ||
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); | ||
} |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.