-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Moved banner to seperate page (embed into required pages), added late…
…st video popup
- Loading branch information
Showing
12 changed files
with
291 additions
and
93 deletions.
There are no files selected for viewing
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
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,33 @@ | ||
<!-- Copyright (c) 2022 Infernal Studios, All Rights Reserved unless otherwise explicitly stated. --> | ||
<!DOCTYPE html> | ||
<html lang="en"> | ||
<head> | ||
<title>Infernal Studios | Under Contruction</title> | ||
<link rel="stylesheet" href="/css/spectre.css" defer /> | ||
<link rel="stylesheet" href="/css/style.css" defer /> | ||
<link rel="stylesheet" href="/css/banner.css" defer /> | ||
<script src="/script/common.js" type="text/javascript" defer></script> | ||
<script src="/script/banner.js" type="text/javascript" defer></script> | ||
</head> | ||
|
||
<body> | ||
<div id="patreon-banner" draggable="false"> | ||
<noscript> | ||
<img class="banner-bg" src="/img/patreon-banner-textless-1.webp" /> | ||
</noscript> | ||
<div class="banner-text"> | ||
<p class="smol">Want to support the creation of mods like these?</p> | ||
<p class="big">Consider supporting us on</p> | ||
<p class="humongous"> | ||
<img src="/img/patreon-logo.webp" class="pr-5" draggable="false" /> | ||
<noscript> | ||
<a href="/patreon"> PATREON </a> | ||
</noscript> | ||
<script> | ||
document.write("PATREON"); | ||
</script> | ||
</p> | ||
</div> | ||
</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,68 @@ | ||
/* Copyright (c) 2022 Infernal Studios, All Rights Reserved unless otherwise explicitly stated. */ | ||
* { | ||
margin: 0; | ||
padding: 0; | ||
font-family: "Helvetica Neue", "Helvetica", "Arial", sans-serif; | ||
} | ||
|
||
#patreon-banner { | ||
height: calc(100vw * (250 / 1920) + ((1920px - 100vw) / 15)); | ||
user-select: none; | ||
cursor: pointer; | ||
|
||
background-repeat: no-repeat; | ||
background-size: cover; | ||
background-position: center; | ||
} | ||
|
||
#patreon-banner .banner-bg { | ||
position: absolute; | ||
z-index: -1; | ||
height: calc(100vw * (250 / 1920) + ((1920px - 100vw) / 15)); | ||
width: 100vw; | ||
} | ||
|
||
#patreon-banner .banner-text { | ||
--banner-text-width: calc((100vw * (250 / 1920) + ((1920px - 100vw) / 15)) * 2.5); | ||
|
||
font-family: "Century Gothic", "Arial Narrow", Arial, sans-serif; | ||
font-size: calc(var(--banner-text-width) / 30); | ||
font-weight: 600; | ||
color: white; | ||
|
||
text-shadow: black 0 0 15px; | ||
|
||
display: flex; | ||
margin-left: auto; | ||
margin-right: 5%; | ||
min-width: 330px; | ||
max-width: var(--banner-text-width); | ||
height: 100%; | ||
|
||
flex-direction: column; | ||
justify-content: center; | ||
align-items: center; | ||
} | ||
|
||
#patreon-banner .banner-text p { | ||
padding: 0; | ||
margin: 0; | ||
} | ||
|
||
#patreon-banner .banner-text .smol { | ||
font-size: 1em; | ||
} | ||
#patreon-banner .banner-text .big { | ||
font-size: 2em; | ||
} | ||
#patreon-banner .banner-text .humongous { | ||
font-size: 3.5em; | ||
display: flex; | ||
justify-content: center; | ||
align-items: center; | ||
flex-direction: row; | ||
} | ||
|
||
#patreon-banner .banner-text .humongous img { | ||
max-height: 3.5rem; | ||
} |
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
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
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,31 @@ | ||
/* eslint-disable no-undef */ | ||
|
||
function preloadImage(url) { | ||
const img = new Image(); | ||
img.src = url; | ||
} | ||
|
||
const patreonBannerImgs = [ | ||
"/img/patreon-banner-textless-1.webp", | ||
"/img/patreon-banner-textless-2.webp", | ||
"/img/patreon-banner-textless-3.webp", | ||
]; | ||
|
||
for (let i = 0; i < patreonBannerImgs.length; i++) { | ||
preloadImage(patreonBannerImgs[i]); | ||
} | ||
preloadImage("/img/patreon-logo.webp"); | ||
|
||
// Patreon banner | ||
window.addEventListener("DOMContentLoaded", () => { | ||
/** @type {HTMLDivElement} */ | ||
const bannerContainer = document.getElementById("patreon-banner"); | ||
|
||
bannerContainer.style.backgroundImage = `url(${JSON.stringify( | ||
patreonBannerImgs[Math.floor(Math.random() * patreonBannerImgs.length)] | ||
)})`; | ||
|
||
bannerContainer.addEventListener("click", () => { | ||
window.location.href = "/patreon"; | ||
}); | ||
}); |
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
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
Oops, something went wrong.