diff --git a/assets/css/custom.css b/assets/css/custom.css new file mode 100644 index 0000000..3e38c3e --- /dev/null +++ b/assets/css/custom.css @@ -0,0 +1,85 @@ + +body { + background-color: #264653; + color: #FFFFFF; + font-family: 'Poppins', sans-serif; +} + +.welcome-container { + min-height: 100vh; + display: flex; + align-items: center; + justify-content: center; +} + +.welcome-card { + background-color: #2F5666; + border: none; + border-radius: 0.5rem; + box-shadow: 0 10px 30px rgba(0,0,0,0.2); + padding: 2rem; + width: 100%; + max-width: 450px; +} + +.welcome-card .card-title { + color: #E9C46A; + font-weight: 700; + text-align: center; + margin-bottom: 1.5rem; +} + +.btn-primary { + background-color: #2A9D8F; + border-color: #2A9D8F; + font-weight: 600; + padding: 0.75rem 1.5rem; + border-radius: 0.5rem; + transition: all 0.3s ease; +} + +.btn-primary:hover { + background-color: #248a7e; + border-color: #248a7e; + transform: translateY(-2px); +} + +.btn-secondary { + background-color: #E9C46A; + border-color: #E9C46A; + color: #264653; + font-weight: 600; + padding: 0.75rem 1.5rem; + border-radius: 0.5rem; + transition: all 0.3s ease; +} + +.btn-secondary:hover { + background-color: #d4b35f; + border-color: #d4b35f; + transform: translateY(-2px); +} + +.form-control { + background-color: #264653; + border: 1px solid #2A9D8F; + color: #FFFFFF; + border-radius: 0.5rem; + padding: 0.75rem 1rem; +} + +.form-control:focus { + background-color: #264653; + color: #FFFFFF; + border-color: #E9C46A; + box-shadow: 0 0 0 0.25rem rgba(233, 196, 106, 0.25); +} + +.form-label { + color: #E9C46A; + font-weight: 600; +} + +.hidden { + display: none; +} diff --git a/assets/js/main.js b/assets/js/main.js new file mode 100644 index 0000000..ffddb9f --- /dev/null +++ b/assets/js/main.js @@ -0,0 +1,50 @@ +document.addEventListener('DOMContentLoaded', function() { + const initialChoiceDiv = document.getElementById('initial-choice'); + const guestFormDiv = document.getElementById('guest-form-div'); + const registerFormDiv = document.getElementById('register-form-div'); + + const showGuestBtn = document.getElementById('show-guest-form'); + const showRegisterBtn = document.getElementById('show-register-form'); + + const guestForm = document.getElementById('guest-form'); + const registerForm = document.getElementById('register-form'); + + if (showGuestBtn) { + showGuestBtn.addEventListener('click', () => { + initialChoiceDiv.classList.add('hidden'); + guestFormDiv.classList.remove('hidden'); + }); + } + + if (showRegisterBtn) { + showRegisterBtn.addEventListener('click', () => { + initialChoiceDiv.classList.add('hidden'); + registerFormDiv.classList.remove('hidden'); + }); + } + + if (guestForm) { + guestForm.addEventListener('submit', (e) => { + e.preventDefault(); + const username = document.getElementById('guest-username').value; + if (username.trim() === '') { + alert('Por favor, ingresa un nombre de usuario.'); + } else { + alert(`¡Bienvenido, ${username}! La lógica del juego se implementará en el siguiente paso.`); + } + }); + } + + if (registerForm) { + registerForm.addEventListener('submit', (e) => { + e.preventDefault(); + const username = document.getElementById('register-username').value; + const email = document.getElementById('register-email').value; + if (username.trim() === '' || email.trim() === '') { + alert('Por favor, completa todos los campos.'); + } else { + alert(`¡Registro exitoso para ${username}! La lógica de inicio de sesión se implementará a continuación.`); + } + }); + } +}); diff --git a/index.php b/index.php index 7205f3d..15c5d52 100644 --- a/index.php +++ b/index.php @@ -1,150 +1,90 @@ - - - + + - - - New Style - - - - - - - - - - - - - - - - - - - + + + + + Draftosaurus - Digital + + + + + + + + + + + + + + + + + + + + + + -
-
-

Analyzing your requirements and generating your website…

-
- Loading… -
-

AI is collecting your requirements and applying the first changes.

-

This page will update automatically as the plan is implemented.

-

Runtime: PHP — UTC

+ +
+
+

DRAFTO SAURUS

+ + +
+

Bienvenido al proyecto escolar de la digitalización del juego de mesa.

+
+ + +
+
+ + + + + + + +
-
- + + + + - + \ No newline at end of file