<!DOCTYPE html>
<html lang="hu">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Welcome to the Server</title>
<style>
* { box-sizing: border-box; }
:root {
--bg: #232428;
--panel: #313338;
--blue: #5865f2;
--text: #f2f3f5;
--muted: #b5bac1;
}
body {
margin: 0;
min-height: 100vh;
background: var(--bg);
color: var(--text);
font-family: Arial, sans-serif;
overflow-x: hidden;
}
body::before {
content: "";
position: fixed;
inset: -50%;
z-index: -1;
background:
radial-gradient(ellipse at 25% 30%,
#5865f233, transparent 35%),
radial-gradient(ellipse at 75% 70%,
#5865f222, transparent 35%);
animation: backgroundMove 12s ease-in-out infinite alternate;
}
@keyframes backgroundMove {
to { transform: translate(3%, 2%) rotate(8deg); }
}
.page {
display: none;
min-height: 100vh;
padding: 32px 18px;
align-items: center;
justify-content: center;
}
.page.active {
display: flex;
animation: fadeIn .5s ease both;
}
@keyframes fadeIn {
from { opacity: 0; transform: translateY(12px); }
to { opacity: 1; transform: translateY(0); }
}
.card {
width: min(540px, 100%);
padding: 32px;
background: #313338ed;
border: 1px solid #ffffff12;
border-radius: 22px;
box-shadow: 0 25px 90px #0004;
backdrop-filter: blur(18px);
}
.welcome {
max-width: 420px;
text-align: center;
padding: 44px 30px;
}
.logo {
width: 82px;
height: 82px;
margin-bottom: 20px;
filter: drop-shadow(0 0 24px #5865f255);
animation: float 3s ease-in-out infinite;
}
@keyframes float {
50% { transform: translateY(-7px); }
}
h1 {
font-size: 28px;
margin: 0 0 12px;
letter-spacing: -.6px;
}
p {
color: var(--muted);
line-height: 1.65;
}
button {
width: 100%;
padding: 15px 18px;
border: none;
border-radius: 10px;
background: var(--blue);
color: white;
font-size: 15px;
font-weight: bold;
cursor: pointer;
transition: .2s;
}
button:hover {
background: #4752c4;
transform: translateY(-2px);
box-shadow: 0 8px 24px #5865f244;
}
button:focus-visible,
input:focus-visible {
outline: 2px solid white;
outline-offset: 3px;
}
.rules {
max-height: 310px;
overflow-y: auto;
padding: 16px;
background: #232428;
border-radius: 12px;
margin: 22px 0;
scrollbar-color: #5865f2 #232428;
}
.rules h2 {
font-size: 17px;
margin-top: 0;
}
.rules h3 {
font-size: 14px;
margin: 18px 0 5px;
}
.rules p {
font-size: 13px;
margin: 5px 0;
}
.checkrow {
display: flex;
gap: 11px;
align-items: flex-start;
margin: 18px 0;
cursor: pointer;
font-size: 14px;
line-height: 1.5;
}
.checkrow input {
width: 18px;
height: 18px;
flex-shrink: 0;
accent-color: var(--blue);
cursor: pointer;
}
.captcha {
margin: 22px 0;
padding: 20px;
background: #232428;
border: 1px solid #ffffff0d;
border-radius: 12px;
}
.captcha-title {
font-size: 14px;
font-weight: bold;
margin-bottom: 12px;
}
.number {
font-size: 34px;
font-weight: 800;
letter-spacing: 9px;
text-align: center;
padding: 15px 0;
color: #fff;
text-shadow: 0 0 22px #5865f288;
user-select: none;
}
.captcha input {
width: 100%;
padding: 13px;
border-radius: 8px;
border: 1px solid #454750;
background: #313338;
color: white;
font-size: 17px;
text-align: center;
letter-spacing: 5px;
}
.captcha input::placeholder {
color: #949ba4;
letter-spacing: 1px;
font-size: 13px;
}
.message {
min-height: 20px;
font-size: 13px;
margin-top: 10px;
}
.error { color: #fa777c; }
.success { color: #57f287; }
.small {
text-align: center;
font-size: 12px;
color: #949ba4;
margin-top: 18px;
}
@media (max-width: 480px) {
.card { padding: 23px 18px; }
.welcome { padding: 38px 23px; }
h1 { font-size: 24px; }
}
</style>
</head>
<body>
<!-- 1. WELCOME PAGE -->
<section class="page active" id="welcomePage">
<main class="card welcome">
<!-- Discord logo -->
<svg class="logo" viewBox="0 0 127 96"
xmlns="http://www.w3.org/2000/svg"
aria-label="Discord logo" role="img">
<path fill="#fff"
d="M104 8A103 103 0 0 0 78 0l-3 6a94 94 0 0 0-24 0l-3-6A103 103 0 0 0 23 8C7 32 3 56 5 80a104 104 0 0 0 32 16l7-11-11-5 3-2c20 9 41 9 61 0l3 2-11 5 7 11a104 104 0 0 0 32-16c3-28-5-52-24-72ZM43 65c-6 0-11-6-11-13s5-13 11-13 11 6 11 13-5 13-11 13Zm41 0c-6 0-11-6-11-13s5-13 11-13 11 6 11 13-5 13-11 13Z"/>
</svg>
<h1>Welcome to the server</h1>
<p>Click continue to proceed.</p>
<button id="continueBtn">CONTINUE →</button>
</main>
</section>
<!-- 2. RULES AND VERIFICATION -->
<section class="page" id="rulesPage">
<main class="card">
<h1>📜 Server Rules</h1>
<p>Please read and accept all rules before continuing.</p>
<div class="rules">
<h2>📜 SZERVER SZABÁLYZAT</h2>
<h3>1. Tisztelet</h3>
<p>Minden taggal kulturáltan és tisztelettel kell viselkedni. Tilos a zaklatás, fenyegetés, személyeskedés és mások szándékos provokálása.</p>
<h3>2. Spam</h3>
<p>Tilos a flood, spam, indokolatlan pingelés, valamint a csatornák rendeltetésellenes használata.</p>
<h3>3. Reklám</h3>
<p>Más szerverek, oldalak vagy szolgáltatások reklámozása csak a staff engedélyével megengedett.</p>
<h3>4. Nem megfelelő tartalom</h3>
<p>Tilos pornográf, szélsőségesen erőszakos, illegális vagy egyéb káros tartalom közzététele.</p>
<h3>5. Személyes adatok</h3>
<p>Más személy személyes adatainak közzététele vagy terjesztése szigorúan tilos.</p>
<h3>6. Voice</h3>
<p>Tilos mások szándékos zavarása, ordibálás, hangspam, illetve zavaró hangok használata.</p>
<h3>7. Staff</h3>
<p>A staff döntéseit és utasításait tartsd tiszteletben. Probléma esetén ticketben vagy privátban jelezd a vezetőségnek.</p>
<h3>8. Büntetések</h3>
<p>A szabályszegés következménye lehet: Figyelmeztetés → Timeout → Kick → Ban.</p>
<p>Súlyos esetben a staff előzetes figyelmeztetés nélkül is intézkedhet.</p>
<h3>9. Discord szabályzat</h3>
<p>A Discord szabályai és irányelvei ezen a szerveren is érvényesek.</p>
<p>━━━━━━━━━━━━━━━━━━</p>
<p>A szerverhez való csatlakozással elfogadod a szabályzatot. Jó szórakozást és kulturált beszélgetést kívánunk!</p>
</div>
<label class="checkrow">
<input type="checkbox" id="acceptRules">
<span>Elolvastam és elfogadom a szerver szabályait.</span>
</label>
<div class="captcha">
<div class="captcha-title">🤖 Nem vagyok robot — ellenőrzés</div>
<p>Az alábbi hatjegyű számot írd be fordított sorrendben!</p>
<div class="number" id="challenge">000000</div>
<input
id="captchaInput"
type="text"
inputmode="numeric"
autocomplete="off"
maxlength="6"
placeholder="Írd be a fordított számot"
aria-label="Hatjegyű szám fordított sorrendben">
<div class="message" id="message" aria-live="polite"></div>
</div>
<button id="joinBtn">ACCEPT & CONTINUE →</button>
<div class="small">Discord Community</div>
</main>
</section>
<script>
const INVITE_URL = "https://discord.gg/s2v4UQ3Mt";
const welcomePage = document.getElementById("welcomePage");
const rulesPage = document.getElementById("rulesPage");
const challenge = document.getElementById("challenge");
const captchaInput = document.getElementById("captchaInput");
const acceptRules = document.getElementById("acceptRules");
const message = document.getElementById("message");
let currentNumber = "";
function showPage(page) {
document.querySelectorAll(".page").forEach(el => {
el.classList.remove("active");
});
page.classList.add("active");
window.scrollTo({ top: 0, behavior: "smooth" });
}
function generateChallenge() {
currentNumber = String(
Math.floor(100000 + Math.random() * 900000)
);
challenge.textContent = currentNumber;
captchaInput.value = "";
message.textContent = "";
message.className = "message";
}
document.getElementById("continueBtn").addEventListener("click", () => {
generateChallenge();
showPage(rulesPage);
});
document.getElementById("joinBtn").addEventListener("click", () => {
if (!acceptRules.checked) {
message.textContent = "Először fogadd el a szabályokat!";
message.className = "message error";
return;
}
if (!/^\d{6}$/.test(captchaInput.value)) {
message.textContent = "Írj be egy hatjegyű számot!";
message.className = "message error";
return;
}
if (captchaInput.value !== currentNumber.split("").reverse().join("")) {
message.textContent = "Hibás szám! Próbáld újra.";
message.className = "message error";
generateChallenge();
return;
}
message.textContent = "Sikeres ellenőrzés! Átirányítás...";
message.className = "message success";
document.getElementById("joinBtn").disabled = false;
setTimeout(() => {
window.location.assign(INVITE_URL);
}, 800);
});
</script>
</body>
</html>