This commit is contained in:
billy 2025-05-01 21:46:10 +00:00
parent 8b0d44e15c
commit 9979005193
6 changed files with 704 additions and 243 deletions

53
clock.html Normal file
View File

@ -0,0 +1,53 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0"/>
<title> Digital Clock</title>
<link href="https://fonts.googleapis.com/css2?family=Inter:wght@400;600&display=swap" rel="stylesheet">
<style>
body {
margin: 0;
height: 100vh;
display: flex;
align-items: center;
justify-content: center;
background-color: rgba(30, 30, 30, 0.7);
font-family: 'Inter', sans-serif;
}
.clock {
background: rgba(30, 30, 30, 0.7);
color: white;
font-size: 4rem;
padding: 30px 60px;
border-radius: 20px;
box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
font-weight: 600;
letter-spacing: 1px;
}
</style>
</head>
<body>
<div class="clock" id="clock">Loading...</div>
<script>
function updateClock() {
const now = new Date();
const utc = now.getTime() + (now.getTimezoneOffset() * 60000);
const estOffset = -5;
const est = new Date(utc + (3600000 * estOffset));
const hours = String(est.getHours()).padStart(2, '0');
const minutes = String(est.getMinutes()).padStart(2, '0');
const seconds = String(est.getSeconds()).padStart(2, '0');
document.getElementById('clock').textContent = `${hours}:${minutes}:${seconds}`;
}
updateClock();
setInterval(updateClock, 1000);
</script>
</body>
</html>

213
home/index.html Normal file
View File

@ -0,0 +1,213 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Home | InfiniteCamp</title>
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.0.0-beta3/css/all.min.css" />
<style>
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
body {
font-family: "Poppins", sans-serif;
color: #e0e0e0;
padding: 30px;
}
h1 {
margin-bottom: 20px;
color: #f5f5f5;
font-size: 32px;
}
.container {
display: grid;
grid-template-columns: 1fr 2fr;
gap: 30px;
}
.left-column {
display: flex;
flex-direction: column;
gap: 20px;
}
.student-cards {
display: flex;
flex-direction: column;
gap: 20px;
}
.student-card {
display: flex;
align-items: center;
background: rgba(30, 30, 30, 0.7);
border-radius: 15px;
padding: 20px;
box-shadow: 0 4px 10px rgba(0, 0, 0, 0.8);
transition: transform 0.3s, box-shadow 0.3s;
animation: fadeInUp 0.6s ease forwards;
}
.student-card:hover {
transform: translateY(-5px);
box-shadow: 0 8px 20px rgba(0, 0, 0, 1);
}
.info h2 {
margin-bottom: 8px;
font-size: 20px;
color: #f0f0f0;
}
.info p {
margin: 3px 0;
color: #aaa;
}
.side-widgets {
display: grid;
grid-template-columns: 1fr 1fr;
gap: 20px;
}
.widget {
background: rgba(30, 30, 30, 0.7);
padding: 20px;
border-radius: 15px;
box-shadow: 0 4px 10px rgba(0, 0, 0, 0.7);
transition: transform 0.3s, box-shadow 0.3s;
animation: fadeInUp 0.6s ease forwards;
}
.widget:nth-child(even) {
animation-delay: 0.3s;
}
.widget:hover {
transform: translateY(-5px);
box-shadow: 0 8px 20px rgba(0, 0, 0, 1);
}
.widget h3 {
margin-bottom: 15px;
color: #fafafa;
}
.widget ul {
list-style: none;
}
.widget ul li {
margin-bottom: 8px;
}
.widget ul li a {
color: #b39ddb;
text-decoration: none;
transition: color 0.2s;
}
.widget ul li a:hover {
color: #9575cd;
}
.right-column {
position: relative;
height: calc(100vh - 100px);
}
.iframe-container {
width: 100%;
height: 60%;
background: rgba(30, 30, 30, 0.7);
border-radius: 15px;
overflow: hidden;
box-shadow: 0 4px 10px rgba(0, 0, 0, 0.8);
animation: fadeInUp 0.6s ease forwards;
animation-delay: 0.2s;
}
iframe {
width: 100%;
height: 100%;
border: none;
}
@keyframes fadeInUp {
from {
opacity: 0;
transform: translateY(30px);
}
to {
opacity: 1;
transform: translateY(0);
}
}
@media (max-width: 1024px) {
.container {
grid-template-columns: 1fr;
}
.right-column {
height: 500px;
}
}
</style>
</head>
<body>
<h1>Home</h1>
<div class="container">
<div class="left-column">
<section class="student-cards">
<div class="student-card">
<div class="info">
<h2>Welcome to Webbite3</h2>
<p><strong>50+</strong> Games</p>
</div>
</div>
<div class="student-card">
<div class="info">
<h2>Changelog</h2>
<p><strong>Webbite 3 - Beta 0.1.0</strong> Added everything in the site</p>
</div>
</div>
</section>
<section class="side-widgets">
<div class="widget">
<h3>Announcements</h3>
<p>No announcements.</p>
</div>
<div class="widget">
<h3>Inbox</h3>
<p>No new messages...</p>
</div>
<div class="widget">
<h3>Quick Links</h3>
<ul>
<li><a href="https://discord.gg/RJdX6WzFtP">Discord</a></li>
<li><a href="https://github.com/PlanckNetwork/">Github Organization</a></li>
</ul>
</div>
<div class="widget">
<h3>Navigation Tips</h3>
<p>Use the sidebar icons for quick navigation between pages.</p>
</div>
</section>
</div>
<div class="right-column">
<div class="iframe-container">
<iframe src="../clock.html" width="100%" height="600px"></iframe>
</div>
</div>
</div>
</body>
</html>

View File

@ -1,91 +1,62 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<title>InfiniteCamp</title>
<link rel="stylesheet" href="https:
<link rel="stylesheet" href="styles.css" />
</head>
<body>
<header class="topbar">
<div id="menu-button" class="menu-icon">&#9776;</div>
<div class="logo">WB3 - Beta</div>
<div class="icons">
<div class="profile">👤</div>
<div class="void-background"></div>
<aside class="sidebar">
<ul>
<li class="active">
<i class="fas fa-home"></i>
<span class="tooltip">Home</span>
</li>
<li>
<i class="fas fa-cube"></i>
<span class="tooltip">Minecraft</span>
</li>
<li>
<i class="fas fa-gamepad"></i>
<span class="tooltip">Games</span>
</li>
<li>
<i class="fas fa-radiation"></i>
<span class="tooltip">Exploits</span>
</li>
<li>
<i class="fas fa-cog"></i>
<span class="tooltip">Settings</span>
</li>
</ul>
</aside>
<div class="content-wrapper">
<!-- Tab Bar -->
<div class="tabs">
<div class="tab active" data-page="home">
<i class="fas fa-home"></i>
Home
<span class="close-btn">×</span>
</div>
<div class="new-tab-btn">
<i class="fas fa-plus"></i>
</div>
</div>
<div class="container">
<main class="main">
</main>
</div>
</header>
<div class="container">
<aside id="sidebar" class="sidebar">
<ul>
<li class="active" onclick="location.href='/'">
<i class="fas fa-home"></i> Home
</li>
<li onclick="location.href='/minecraft'">
<i class="fas fa-globe"></i> Minecraft
</li>
<li onclick="location.href='/games'">
<i class="fas fa-gamepad"></i> Games
</li>
<li onclick="location.href='/exploits'">
<i class="fas fa-radiation"></i> Exploits
</li>
<li onclick="location.href='/settings'">
<i class="fas fa-cogs"></i> Settings
</li>
</ul>
</aside>
<main class="main">
<h1>Home</h1>
<section class="student-cards">
<div class="student-card animate">
<div class="info">
<h2>Welcome to Webbite3</h2>
<p><strong>50+</strong> Games</p>
</div>
</div>
<div class="student-card animate delay">
<div class="info">
<h2>Changelog</h2>
<p><strong>Webbite 3 - Beta 0.1.0</strong> Added everything in the site</p>
</div>
</div>
</section>
<section class="side-widgets">
<div class="widget animate">
<h3>Announcements</h3>
<p>No announcements.</p>
</div>
<div class="widget animate delay">
<h3>Inbox</h3>
<p>No new messages...</p>
</div>
<div class="widget animate">
<h3>Quick Links</h3>
<ul>
<li><a href="https://discord.gg/RJdX6WzFtP">Discord</a></li>
<li>
<a href="https://github.com/PlanckNetwork/">Github Organization</a>
</li>
</ul>
</div>
<div class="widget animate delay">
<h3>How to Access Other Tabs</h3>
<p>Hit the three lines on the top left to access nav bar</p>
</div>
</section>
</main>
</div>
<script src="script.js"></script>
</body>
<script src="/global.js" defer></script>
</html>

6
package-lock.json generated Normal file
View File

@ -0,0 +1,6 @@
{
"name": "Void",
"lockfileVersion": 3,
"requires": true,
"packages": {}
}

176
script.js Normal file
View File

@ -0,0 +1,176 @@
const pageURLs = {
home: '/home/',
minecraft: '/minecraft/',
games: '/games/',
exploits: '/exploits/',
settings: '/settings/'
};
let tabCounter = 1;
function createNewTab(pageName, pageTitle, icon) {
const tabsContainer = document.querySelector('.tabs');
const newTab = document.createElement('div');
newTab.className = 'tab';
newTab.dataset.page = pageName;
newTab.dataset.tabId = `tab-${tabCounter++}`;
newTab.innerHTML = `
<i class="fas fa-${icon}"></i>
${pageTitle}
<span class="close-btn">×</span>
`;
newTab.addEventListener('click', function() {
activateTab(this);
});
newTab.querySelector('.close-btn').addEventListener('click', function(e) {
e.stopPropagation();
closeTab(newTab);
});
tabsContainer.appendChild(newTab);
const mainContainer = document.querySelector('.main');
const iframe = document.createElement('iframe');
iframe.className = 'tab-content';
iframe.id = newTab.dataset.tabId;
iframe.src = pageURLs[pageName];
iframe.title = pageTitle;
mainContainer.appendChild(iframe);
positionNewTabButton();
return newTab;
}
function positionNewTabButton() {
const tabsContainer = document.querySelector('.tabs');
const newTabBtn = document.querySelector('.new-tab-btn');
newTabBtn.remove();
tabsContainer.appendChild(newTabBtn);
}
function activateTab(tab) {
document.querySelectorAll('.tab').forEach(t => t.classList.remove('active'));
document.querySelectorAll('.tab-content').forEach(tc => tc.classList.remove('active'));
tab.classList.add('active');
const tabContent = document.getElementById(tab.dataset.tabId);
if (tabContent) {
tabContent.classList.add('active');
}
}
function closeTab(tab) {
const tabs = document.querySelectorAll('.tab');
if (tabs.length > 1) {
const wasActive = tab.classList.contains('active');
const tabId = tab.dataset.tabId;
tab.remove();
const iframe = document.getElementById(tabId);
if (iframe) {
iframe.remove();
}
if (wasActive) {
activateTab(document.querySelector('.tab'));
}
positionNewTabButton();
}
}
function navigateToPage(pageName) {
const activeTab = document.querySelector('.tab.active');
if (activeTab) {
const tabId = activeTab.dataset.tabId;
const iframe = document.getElementById(tabId);
if (iframe) {
iframe.src = pageURLs[pageName];
}
}
}
window.onload = function () {
const tabsContainer = document.querySelector('.tabs');
const newTabBtn = document.querySelector('.new-tab-btn');
newTabBtn.remove();
tabsContainer.appendChild(newTabBtn);
const tabs = document.querySelectorAll('.tab');
tabs.forEach(tab => {
const pageName = tab.dataset.page;
const tabId = `tab-${tabCounter++}`;
tab.dataset.tabId = tabId;
const mainContainer = document.querySelector('.main');
const iframe = document.createElement('iframe');
iframe.className = 'tab-content';
iframe.id = tabId;
iframe.src = pageURLs[pageName];
iframe.title = tab.textContent.trim().replace('×', '');
mainContainer.appendChild(iframe);
tab.addEventListener('click', function() {
activateTab(this);
});
});
const closeBtns = document.querySelectorAll('.close-btn');
closeBtns.forEach(btn => {
btn.addEventListener('click', function(e) {
e.stopPropagation();
closeTab(this.parentElement);
});
});
const sidebarItems = document.querySelectorAll('.sidebar li');
const pageNames = ['home', 'minecraft', 'games', 'exploits', 'settings'];
sidebarItems.forEach((item, index) => {
item.addEventListener('click', function() {
sidebarItems.forEach(i => i.classList.remove('active'));
this.classList.add('active');
navigateToPage(pageNames[index]);
});
});
newTabBtn.addEventListener('click', function() {
const newTab = createNewTab('home', 'New Tab', 'home');
activateTab(newTab);
});
activateTab(document.querySelector('.tab'));
};

View File

@ -10,128 +10,240 @@ body {
font-family: "Poppins", sans-serif;
background: #121212;
color: #e0e0e0;
}
.topbar {
background: #1f1f1f;
color: #e0e0e0;
padding: 15px 25px;
display: flex;
justify-content: space-between;
align-items: center;
position: sticky;
top: 0;
z-index: 10;
box-shadow: 0 2px 5px rgba(0, 0, 0, 0.7);
}
.menu-icon {
font-size: 28px;
cursor: pointer;
transition: transform 0.3s;
}
.menu-icon:hover {
transform: rotate(90deg);
}
.logo {
font-weight: 600;
font-size: 22px;
}
.icons {
display: flex;
align-items: center;
gap: 20px;
}
.bell {
overflow: hidden;
position: relative;
}
.badge {
position: absolute;
top: -6px;
right: -10px;
background: red;
color: white;
font-size: 10px;
padding: 2px 6px;
border-radius: 50%;
.void-background {
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
z-index: -1;
overflow: hidden;
background: linear-gradient(to bottom right, #000000, #923CB5);
animation: pulseBackground 8s ease-in-out infinite alternate;
}
.container {
display: flex;
@keyframes pulseBackground {
0% {
opacity: 1;
}
50% {
opacity: 0.95;
}
100% {
opacity: 1;
}
}
.sidebar {
width: 70px;
background: rgba(26, 26, 26, 0.8);
height: 100vh;
position: fixed;
top: 60px;
left: 0;
width: 220px;
background: #1a1a1a;
height: calc(100vh - 60px);
overflow-y: auto;
z-index: 20;
transform: translateX(-100%);
transition: transform 0.4s ease, box-shadow 0.3s;
top: 0;
box-shadow: 2px 0 10px rgba(0, 0, 0, 0.5);
scrollbar-width: thin;
scrollbar-color: #333 #1a1a1a;
}
.sidebar-show {
transform: translateX(0);
}
.sidebar::-webkit-scrollbar {
width: 8px;
}
.sidebar::-webkit-scrollbar-track {
background: #1a1a1a;
}
.sidebar::-webkit-scrollbar-thumb {
background-color: #333;
border-radius: 4px;
display: flex;
flex-direction: column;
align-items: center;
padding-top: 70px;
z-index: 10;
}
.sidebar ul {
list-style: none;
width: 100%;
}
.sidebar li {
padding: 15px 25px;
transition: background 0.3s, padding-left 0.3s;
width: 100%;
height: 70px;
display: flex;
justify-content: center;
align-items: center;
cursor: pointer;
transition: background 0.3s;
position: relative;
}
.sidebar li:hover {
background: #2a2a2a;
padding-left: 35px;
}
.sidebar li.active {
background: #333;
font-weight: 600;
border-left: 3px solid #9c27b0;
}
.sidebar i {
font-size: 24px;
color: #e0e0e0;
}
.sidebar li:hover i {
color: #9c27b0;
}
.sidebar li .tooltip {
position: absolute;
left: 80px;
background: #333;
padding: 5px 10px;
border-radius: 4px;
opacity: 0;
visibility: hidden;
transition: opacity 0.3s, visibility 0.3s;
white-space: nowrap;
z-index: 100;
}
.sidebar li:hover .tooltip {
opacity: 1;
visibility: visible;
}
.content-wrapper {
margin-left: 70px;
width: calc(100% - 70px);
min-height: 100vh;
display: flex;
flex-direction: column;
}
.tabs {
background: rgba(31, 31, 31, 0.9);
padding: 5px 5px 0 5px;
display: flex;
overflow-x: auto;
scrollbar-width: thin;
scrollbar-color: #333 #1f1f1f;
height: 42px;
position: fixed;
top: 0;
left: 70px;
width: calc(100% - 70px);
z-index: 20;
box-shadow: 0 2px 5px rgba(0, 0, 0, 0.7);
}
.tabs::-webkit-scrollbar {
height: 5px;
}
.tabs::-webkit-scrollbar-track {
background: #1f1f1f;
}
.tabs::-webkit-scrollbar-thumb {
background-color: #333;
border-radius: 4px;
}
.tab {
padding: 0 20px;
height: 37px;
display: flex;
align-items: center;
gap: 8px;
color: #aaa;
white-space: nowrap;
cursor: pointer;
border-top-left-radius: 8px;
border-top-right-radius: 8px;
background: #2a2a2a;
margin-right: 2px;
transition: background 0.3s, color 0.3s;
position: relative;
}
.tab:hover {
color: #e0e0e0;
background: #333;
}
.tab.active {
color: #e0e0e0;
background: #333;
box-shadow: 0 -2px 5px rgba(200, 0, 255, 0.3);
}
.tab i {
font-size: 16px;
}
.tab .close-btn {
margin-left: 8px;
font-size: 14px;
opacity: 0.5;
transition: opacity 0.3s;
}
.tab:hover .close-btn {
opacity: 1;
}
.new-tab-btn {
cursor: pointer;
font-size: 16px;
height: 37px;
padding: 0 10px;
display: flex;
align-items: center;
justify-content: center;
background: #2a2a2a;
color: #aaa;
border-top-left-radius: 8px;
border-top-right-radius: 8px;
transition: background 0.2s, color 0.2s;
margin: 5px 0 0 2px;
}
.new-tab-btn:hover {
background: #333;
color: #e0e0e0;
}
.container {
flex: 1;
display: flex;
position: relative;
margin-top: 42px;
}
.main {
flex: 1;
padding: 30px;
position: relative;
z-index: 5;
}
.tab-content {
display: none;
width: 100%;
height: calc(100vh - 42px);
border: none;
}
.tab-content.active {
display: block;
}
.student-cards {
margin-bottom: 30px;
z-index: 2;
position: relative;
}
.student-card {
display: flex;
align-items: center;
background: #1e1e1e;
background: rgba(30, 30, 30, 0.7);
border-radius: 15px;
margin-bottom: 20px;
padding: 20px;
@ -139,6 +251,7 @@ body {
transition: transform 0.3s, box-shadow 0.3s;
opacity: 0;
transform: translateY(30px);
backdrop-filter: blur(5px);
}
.student-card:hover {
@ -146,14 +259,6 @@ body {
box-shadow: 0 8px 20px rgba(0, 0, 0, 1);
}
.student-card img {
border-radius: 50%;
width: 80px;
height: 80px;
object-fit: cover;
margin-right: 20px;
}
.info h2 {
margin-bottom: 8px;
font-size: 20px;
@ -169,16 +274,19 @@ body {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
gap: 20px;
position: relative;
z-index: 2;
}
.widget {
background: #1e1e1e;
background: rgba(30, 30, 30, 0.7);
padding: 20px;
border-radius: 15px;
box-shadow: 0 4px 10px rgba(0, 0, 0, 0.7);
transition: transform 0.3s, box-shadow 0.3s;
opacity: 0;
transform: translateY(30px);
backdrop-filter: blur(5px);
}
.widget:hover {
@ -200,15 +308,16 @@ body {
}
.widget ul li a {
color: #81c784;
color: #b39ddb;
text-decoration: none;
transition: color 0.2s;
}
.widget ul li a:hover {
color: #66bb6a;
color: #9575cd;
}
/* Animations */
.animate {
animation: fadeInUp 0.6s ease forwards;
}
@ -226,81 +335,14 @@ body {
@media (max-width: 768px) {
.sidebar {
display: none;
width: 50px;
}
.container {
flex-direction: column;
.content-wrapper {
margin-left: 50px;
width: calc(100% - 50px);
}
}
.li {
cursor: pointer;
}
.play-button {
background: #525352;
color: white;
padding: 10px 20px;
border: none;
border-radius: 5px;
cursor: pointer;
transition: background 0.3s, transform 0.3s;
}
.play-button:hover {
background: #6b6b6b;
transform: scale(1.05);
}
.topbar {
display: flex;
justify-content: space-between;
align-items: center;
background: #1f1f1f;
color: #e0e0e0;
padding: 15px 25px;
position: sticky;
top: 0;
z-index: 10;
box-shadow: 0 2px 5px rgba(0, 0, 0, 0.7);
}
.menu-icon {
font-size: 28px;
cursor: pointer;
transition: transform 0.3s;
}
.menu-icon:hover {
transform: rotate(90deg);
}
.logo {
font-weight: 600;
font-size: 22px;
}
.nav-links {
display: flex;
gap: 20px;
}
.nav-links a {
color: #e0e0e0;
text-decoration: none;
font-weight: 500;
transition: color 0.2s;
}
.nav-links a:hover {
color: #81c784;
}
@media (max-width: 768px) {
.nav-links {
display: none;
.tabs {
left: 50px;
width: calc(100% - 50px);
}
}
}