<main>
<section class="server-form">
<h2>Adicione seu Servidor</h2>
<label for="server-name">Nome do Servidor:</label>
<input type="text" id="server-name" placeholder="Digite o nome do servidor">
<label for="server-description">Descrição do Servidor:</label>
<textarea id="server-description" rows="4" placeholder="Descreva seu servidor"></textarea>
<button id="publish-button">Publicar Servidor</button>
</section>
<section class="server-list">
<h2>Servidores Publicados</h2>
<div id="servers-container">
<!-- Os servidores aparecerão aqui -->
</div>
</section>
</main>
<script>
document.getElementById('publish-button').addEventListener('click', function() {
const serverName = document.getElementById('server-name').value;
const serverDescription = document.getElementById('server-description').value;
if (serverName && serverDescription) {
const serverItem = document.createElement('div');
serverItem.className = 'server-item';
const serverTitle = document.createElement('h3');
serverTitle.textContent = serverName;
serverItem.appendChild(serverTitle);
const serverDesc = document.createElement('p');
serverDesc.textContent = serverDescription;
serverItem.appendChild(serverDesc);
document.getElementById('servers-container').appendChild(serverItem);
// Limpar campos após adicionar o servidor
document.getElementById('server-name').value = '';
document.getElementById('server-description').value = '';
} else {
alert('Por favor, preencha todos os campos.');
}
});
// Placeholder para a funcionalidade de login com Discord
document.getElementById('login-button').addEventListener('click', function() {
alert('Função de login com Discord será implementada.');
});
</script>
-
Notifications
You must be signed in to change notification settings - Fork 0
Kaikmachado12/Servidores-do-discord
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
 |  | |||
 |  | |||
Repository files navigation
About
Venha colocar o seu servidor pra divulgar 😜
Topics
Resources
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published