starting website

This commit is contained in:
fatmeat 2025-04-18 20:17:36 +02:00
commit 1a7ca18b54
3 changed files with 248 additions and 0 deletions

146
www/css/style.css Normal file
View File

@ -0,0 +1,146 @@
body {
margin: 0;
font-family: 'Orbitron', sans-serif;
color: #f0f0f0;
background: #0d0d0d;
overflow-x: hidden;
}
.grid-bg {
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
background: repeating-linear-gradient(
to right,
rgba(0, 255, 255, 0.1) 0px,
rgba(0, 255, 255, 0.1) 1px,
transparent 1px,
transparent 40px
),
repeating-linear-gradient(
to bottom,
rgba(0, 255, 255, 0.1) 0px,
rgba(0, 255, 255, 0.1) 1px,
transparent 1px,
transparent 40px
);
background-color: #0d0d0d;
z-index: -2;
}
.crt-overlay {
position: fixed;
top: 0;
left: 0;
width: 100vw;
height: 100vh;
background-image: repeating-linear-gradient(
to bottom,
rgba(255, 255, 255, 0.05) 0px,
rgba(255, 255, 255, 0.05) 1px,
transparent 1px,
transparent 3px
);
pointer-events: none;
z-index: -1;
mix-blend-mode: overlay;
animation: flicker 0.2s infinite;
border-radius: 1.5% / 1%;
box-shadow: inset 0 0 40px rgba(0, 255, 255, 0.1);
}
@keyframes flicker {
0%, 100% { opacity: 0.9; }
50% { opacity: 1; }
}
.foreground-container {
max-width: 960px;
aspect-ratio: 4 / 3;
margin: 0 auto;
background-color: rgba(0, 0, 0, 0.85);
box-shadow: 0 0 20px rgba(255, 0, 255, 0.5);
padding: 2rem;
position: relative;
border-radius: 2% / 1.5%;
box-shadow: 0 0 40px rgba(255, 0, 255, 0.3), inset 0 0 20px rgba(0, 255, 255, 0.1);
}
header {
display: flex;
justify-content: space-between;
align-items: center;
padding: 1rem 2rem;
background: rgba(0, 0, 0, 0.8);
border-bottom: 2px solid #ff00ff;
}
header h1 {
font-size: 2rem;
color: #ff00ff;
text-shadow: 0 0 5px #ff00ff;
}
nav ul {
display: flex;
gap: 1rem;
list-style: none;
}
nav ul li a {
text-decoration: none;
color: #00ffff;
padding: 0.5rem 1rem;
border: 1px solid #00ffff;
border-radius: 4px;
text-shadow: 0 0 3px #00ffff;
}
nav ul li a:hover {
background: #00ffff;
color: #0d0d0d;
}
.hidden {
display: none;
}
/* Terminal-style containers */
.terminal {
background: rgba(0, 0, 0, 0.9);
border: 2px solid #ff00ff;
padding: 2rem;
width: 300px;
margin: 2rem auto;
box-shadow: 0 0 10px #ff00ff;
}
.terminal input {
background: #1a1a1a;
border: 1px solid #00ffff;
color: #00ffff;
width: 100%;
padding: 0.5rem;
margin-bottom: 1rem;
font-family: monospace;
}
.terminal button {
background: #ff00ff;
border: none;
color: #0d0d0d;
padding: 0.5rem 1rem;
cursor: pointer;
font-family: monospace;
text-shadow: 0 0 3px #ff00ff;
}
/* Section headings */
main section h2 {
color: #ff00ff;
text-shadow: 0 0 5px #ff00ff;
margin-top: 2rem;
text-align: center;
}
/* Placeholder styles for posts and news */
#posts p, #news-ticker p {
text-align: center;
font-style: italic;
padding: 1rem;
}

84
www/index.html Normal file
View File

@ -0,0 +1,84 @@
<!-- index.html -->
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Synthwave Game Studio</title>
<!-- Google Font -->
<link href="https://fonts.googleapis.com/css2?family=Orbitron:wght@400;700&display=swap" rel="stylesheet">
<link rel="stylesheet" href="css/style.css">
</head>
<body>
<!-- Grid Background -->
<div class="grid-bg"></div>
<!-- CRT Overlay -->
<div class="crt-overlay"></div>
<!-- Foreground Container -->
<div class="foreground-container">
<!-- Header / Navigation -->
<header>
<h1>Synthwave Game Studio</h1>
<nav>
<ul>
<li><a href="#" id="nav-landing">Home</a></li>
<li><a href="#" id="nav-login">Login</a></li>
<li><a href="#" id="nav-blog">Blog</a></li>
<li><a href="#" id="nav-chat">Chat</a></li>
<li><a href="#" id="nav-news">News</a></li>
</ul>
</nav>
</header>
<!-- Main Content Sections -->
<main id="main-content">
<!-- Landing Section -->
<section id="landing-section">
<h2>Welcome to the Future Retro</h2>
<p>Experience our games in neon-lit glory...</p>
</section>
<!-- Login Section (hidden by default) -->
<section id="login-section" class="hidden">
<div class="terminal">
<h2>Login</h2>
<form id="login-form">
<input type="text" placeholder="Username" id="username" required>
<input type="password" placeholder="Password" id="password" required>
<button type="submit">Enter</button>
</form>
</div>
</section>
<!-- Blog Section -->
<section id="blog-section" class="hidden">
<h2>Studio Blog</h2>
<div id="posts">
<!-- Posts will load here -->
<p>Coming soon...</p>
</div>
</section>
<!-- Chat (IRC) Section -->
<section id="chat-section" class="hidden">
<h2>Community Chat</h2>
<div id="chat-window" class="terminal">
<p><em>IRC interface coming soon...</em></p>
</div>
</section>
<!-- Newsfeed Section -->
<section id="news-section" class="hidden">
<h2>Newsfeed</h2>
<div id="news-ticker">
<p><em>Latest studio news will appear here...</em></p>
</div>
</section>
</main>
</div>
<script src="js/script.js"></script>
</body>
</html>

18
www/js/index.js Normal file
View File

@ -0,0 +1,18 @@
/* js/script.js */
document.querySelectorAll('nav ul li a').forEach(link => {
link.addEventListener('click', e => {
e.preventDefault();
const target = e.target.id.replace('nav-', '') + '-section';
document.querySelectorAll('main section').forEach(sec => sec.classList.add('hidden'));
const section = document.getElementById(target);
if (section) section.classList.remove('hidden');
});
});
document.getElementById('login-form')?.addEventListener('submit', e => {
e.preventDefault();
const username = document.getElementById('username').value;
alert(`Logging in as ${username}...`);
// TODO: call backend API for authentication
});