Skip to content

Commit

Permalink
Updated some stuff, Added default font and extra
Browse files Browse the repository at this point in the history
  • Loading branch information
tay committed Oct 15, 2024
1 parent fa006b8 commit e44432d
Show file tree
Hide file tree
Showing 5 changed files with 281 additions and 139 deletions.
103 changes: 103 additions & 0 deletions content/about-test/index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,103 @@
<link rel="stylesheet" href="/assets/css/about/style.css" />
<script src="/assets/js/about.js" defer></script>
<main>
<div class="about">
<div class="overlay" id="overlay">
<button id="enterButton" class="enter-button">Click to Continue To About</button>
</div>
<div id="content" style="display: none;">
<div class="content">
<div class="bgbox">
<h1>Hiya, Call me Tee!</h1>
<iframe
width="570"
height="212"
src="https://lanyard.cnrad.dev/api/1050531216589332581"
frameborder="0"
allowfullscreen="false"
style="margin-left: 0px"
></iframe>
<div id="images">
<a href="https://discord.gg/gjypyNkPPp" target="_blank">
<img
src="/assets/imgs/socials/haven.png"
class="social-logo"
alt="Haven Community"
/>
</a>
<a href="https://discord.com/users/1050531216589332581" target="_blank">
<img
src="/assets/imgs/socials/discord.png"
class="social-logo"
alt="Discord"
/>
</a>
<a href="https://github.com/tayrp" target="_blank">
<img
src="/assets/imgs/socials/github.png"
class="social-logo"
alt="Github"
/>
</a>
<a href="https://www.last.fm/user/MystixMew" target="_blank">
<img
src="/assets/imgs/socials/lastfm.png"
class="social-logo"
alt="Last.fm"
/>
</a>
<a href="https://www.youtube.com/@MystixMew" target="_blank">
<img
src="/assets/imgs/socials/youtube.png"
class="social-logo"
alt="YouTube"
/>
</a>
<a href="https://namemc.com/profile/MystixMew.1" target="_blank">
<img
src="/assets/imgs/socials/namemc.png"
class="social-logo"
alt="NameMC"
/>
</a>
</div>
</div>
<video muted autoplay loop id="aboutvideo">
<source
src="https://index.havenmc.org/website/assets/mp4/fightsong.mp4"
type="video/mp4"
/>
This browser does not support HTML5 video or the server is offline.
</video>

<label for="volumeControl">Volume:</label>
<input
type="range"
id="volumeControl"
min="0"
max="1"
step="0.01"
value="0.25"
/>
<span id="volumePercentage">1%</span>
<a
class="btn btn-link-3"
id="aboutpauseBtn"
onclick="togglePause()"
style="
font-size: 27px;
padding: 0;
color: #a81cbe;
width: 30px;
height: 30px;
line-height: 27px;
display: inline-block;
text-align: center;
position: relative;
top: -2px;
"
></a>
</div>
</div>
</div>
</main>
116 changes: 42 additions & 74 deletions content/about/index.html
Original file line number Diff line number Diff line change
@@ -1,10 +1,13 @@
<link rel="stylesheet" href="/assets/css/about/style.css" />
<script src="/assets/js/about.js" defer></script>
<main>
<div class="about">
<div>
<body>
<div class="content">
<div class="bgbox">
<div class="overlay" id="overlay">
<button id="enterButton" class="enter-button">Click to Continue To About</button>
</div>
<div id="content" style="display: none;">
<div class="content">
<div class="bgbox">
<h1>Hiya, Call me Tee!</h1>
<iframe
width="570"
Expand All @@ -15,49 +18,53 @@ <h1>Hiya, Call me Tee!</h1>
style="margin-left: 0px"
></iframe>
<div id="images">
<a href="https://discord.gg/gjypyNkPPp" target="_blank"
><img
src="/assets/imgs/socials/haven.png"
class="social-logo"
alt="Haven Community"
/></a>
<a
href="https://discord.com/users/1050531216589332581"
target="_blank"
><img
<a href="https://discord.gg/gjypyNkPPp" target="_blank">
<img
src="/assets/imgs/socials/haven.png"
class="social-logo"
alt="Haven Community"
/>
</a>
<a href="https://discord.com/users/1050531216589332581" target="_blank">
<img
src="/assets/imgs/socials/discord.png"
class="social-logo"
alt="Discord"
/></a>
<a href="https://github.com/tayrp" target="_blank"
><img
/>
</a>
<a href="https://github.com/tayrp" target="_blank">
<img
src="/assets/imgs/socials/github.png"
class="social-logo"
alt="Github"
/></a>
<a href="https://www.last.fm/user/MystixMew" target="_blank"
><img
/>
</a>
<a href="https://www.last.fm/user/MystixMew" target="_blank">
<img
src="/assets/imgs/socials/lastfm.png"
class="social-logo"
alt="Last.fm"
/></a>
<a href="https://www.youtube.com/@MystixMew" target="_blank"
><img
/>
</a>
<a href="https://www.youtube.com/@MystixMew" target="_blank">
<img
src="/assets/imgs/socials/youtube.png"
class="social-logo"
alt="YouTube"
/></a>
<a href="https://namemc.com/profile/MystixMew.1" target="_blank"
><img
src="/assets/imgs/socials/namemc.png"
class="social-logo"
alt="NameMC"
/></a>
</div>
/>
</a>
<a href="https://namemc.com/profile/MystixMew.1" target="_blank">
<img
src="/assets/imgs/socials/namemc.png"
class="social-logo"
alt="NameMC"
/>
</a>
</div>
</div>
<video autoplay loop id="aboutvideo">
<video muted autoplay loop id="aboutvideo">
<source
src="https://index.havenmc.org/website/assets/mp4/fightsong.mp4"
src="https://index.havenmc.org/website/assets/mp4/usurper.mp4"
type="video/mp4"
/>
This browser does not support HTML5 video or the server is offline.
Expand Down Expand Up @@ -89,47 +96,8 @@ <h1>Hiya, Call me Tee!</h1>
position: relative;
top: -2px;
"
></a
>
<script>
var video = document.getElementById("aboutvideo");
var btn = document.getElementById("aboutpauseBtn");
var volumeControl = document.getElementById("volumeControl");
var volumePercentage = document.getElementById("volumePercentage");
video.volume = volumeControl.value;
volumePercentage.innerHTML =
Math.round(volumeControl.value * 100) + "%";

function togglePause() {
var btn = document.getElementById("aboutpauseBtn");

if (video.paused) {
video.play();
btn.innerHTML = "⏸";
btn.style.fontSize = "27px";
btn.style.padding = "0";
btn.style.width = "30px";
btn.style.height = "30px";
btn.style.lineHeight = "30px";
btn.style.textAlign = "center";
} else {
video.pause();
btn.innerHTML = "⏵";
btn.style.fontSize = "27px";
btn.style.padding = "0";
btn.style.width = "30px";
btn.style.height = "30px";
btn.style.lineHeight = "27px";
btn.style.textAlign = "center";
}
}
volumeControl.addEventListener("input", function () {
video.volume = volumeControl.value;
var percentage = Math.round(volumeControl.value * 100);
volumePercentage.innerHTML = percentage + "%";
});
</script>
</body>
></a>
</div>
</div>
</div>
</main>
22 changes: 22 additions & 0 deletions content/font/index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
<button class="font-toggle-button" onclick="toggleFont()">Switch to Vujahday</button>

<script>
document.addEventListener('DOMContentLoaded', function () {
// Check for stored font preference and apply it
if (localStorage.getItem('font') === 'vujahday') {
document.body.classList.add('custom-font');
}
});

function toggleFont() {
// Toggle the font class
document.body.classList.toggle('custom-font');

// Update localStorage based on the current font state
if (document.body.classList.contains('custom-font')) {
localStorage.setItem('font', 'vujahday');
} else {
localStorage.removeItem('font'); // Reset to default
}
}
</script>
Loading

0 comments on commit e44432d

Please sign in to comment.