diff --git a/cabecera.php b/cabecera.php index 0bf9863..605722e 100644 --- a/cabecera.php +++ b/cabecera.php @@ -14,171 +14,10 @@ $username = $isLoggedIn ? $_SESSION['usuario'] : ''; - + diff --git a/css/index.css b/css/index.css index 3f37d81..3d21ea2 100644 --- a/css/index.css +++ b/css/index.css @@ -1,142 +1,162 @@ :root { - --kahoot-purple: #46178f; - --kahoot-blue: #1368ce; - --kahoot-red: #e21b3c; - --kahoot-yellow: #ffa602; - --kahoot-green: #26890c; - --kahoot-green-hover: #1f6f09; -} + --kahoot-purple: #46178f; + --kahoot-blue: #1368ce; + --kahoot-red: #e21b3c; + --kahoot-yellow: #ffa602; + --kahoot-green: #26890c; + --kahoot-green-hover: #1f6f09; + } -body { - font-family: "Fredoka", sans-serif; - background-color: #f2f2f2; - min-height: 100vh; -} + body { + font-family: 'Fredoka', sans-serif; + background-color: #f2f2f2; + min-height: 100vh; + } -.navbar-kahoot { - background-color: var(--kahoot-purple); - box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15); -} + .navbar-kahoot { + background-color: var(--kahoot-purple); + box-shadow: 0 4px 12px rgba(0,0,0,0.15); + } -.navbar-brand { - font-weight: 700; - font-size: 1.8rem; - color: #fff !important; - letter-spacing: 1px; - text-shadow: 2px 2px 0px rgba(0, 0, 0, 0.2); -} + .navbar-brand { + font-weight: 700; + font-size: 1.8rem; + color: #fff !important; + letter-spacing: 1px; + text-shadow: 2px 2px 0px rgba(0, 0, 0, 0.2); + } -.btn-kahoot-login { - background-color: var(--kahoot-blue); - color: white; - font-weight: 600; - border: none; - border-bottom: 4px solid #0c4891; - transition: all 0.2s ease; -} + .btn-kahoot-login { + background-color: var(--kahoot-blue); + color: white; + font-weight: 600; + border: none; + border-bottom: 4px solid #0c4891; + transition: all 0.2s ease; + } -.btn-kahoot-login:hover { - background-color: #0f56ab; - color: white; - transform: translateY(-2px); -} + .btn-kahoot-login:hover { + background-color: #0f56ab; + color: white; + transform: translateY(-2px); + } -/* Estilos del Dropdown de usuario */ -.user-dropdown-btn { - background: rgba(255, 255, 255, 0.15); - color: white; - border: 2px solid rgba(255, 255, 255, 0.3); - border-radius: 50px; - padding: 8px 18px; - font-weight: 600; - transition: all 0.2s ease; -} + .btn-kahoot-register { + background-color: var(--kahoot-green); + color: white; + font-weight: 600; + border: none; + border-bottom: 4px solid var(--kahoot-green-hover); + transition: all 0.2s ease; + } -.user-dropdown-btn:hover, -.user-dropdown-btn:focus, -.user-dropdown-btn.show { - background: rgba(255, 255, 255, 0.3); - color: white; - border-color: #fff; - box-shadow: none; -} + .btn-kahoot-register:hover { + background-color: #2bb00f; + color: white; + transform: translateY(-2px); + } -.user-dropdown-menu { - border-radius: 15px; - border: none; - box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2); - padding: 10px; - min-width: 200px; - margin-top: 10px !important; -} + .user-dropdown-btn { + background: rgba(255, 255, 255, 0.15); + color: white; + border: 2px solid rgba(255, 255, 255, 0.3); + border-radius: 50px; + padding: 8px 18px; + font-weight: 600; + transition: all 0.2s ease; + } -.user-dropdown-menu .dropdown-item { - border-radius: 10px; - font-weight: 600; - padding: 10px 15px; - transition: all 0.15s ease; -} + .user-dropdown-btn:hover, + .user-dropdown-btn:focus, + .user-dropdown-btn.show { + background: rgba(255, 255, 255, 0.3); + color: white; + border-color: #fff; + box-shadow: none; + } -.user-dropdown-menu .dropdown-item:hover { - background-color: #f0eafb; - color: var(--kahoot-purple); -} + .user-dropdown-menu { + border-radius: 15px; + border: none; + box-shadow: 0 10px 25px rgba(0,0,0,0.2); + padding: 10px; + min-width: 200px; + margin-top: 10px !important; + } -.user-dropdown-menu .dropdown-item.logout-item { - color: var(--kahoot-red); -} + .user-dropdown-menu .dropdown-item { + border-radius: 10px; + font-weight: 600; + padding: 10px 15px; + transition: all 0.15s ease; + } -.user-dropdown-menu .dropdown-item.logout-item:hover { - background-color: #fde8ea; - color: var(--kahoot-red); -} + .user-dropdown-menu .dropdown-item:hover { + background-color: #f0eafb; + color: var(--kahoot-purple); + } -.btn-play-kahoot { - background-color: var(--kahoot-green); - color: white; - font-size: 2.2rem; - font-weight: 700; - width: 100%; - padding: 30px 20px; - border-radius: 20px; - border: none; - border-bottom: 8px solid var(--kahoot-green-hover); - box-shadow: 0 8px 15px rgba(0, 0, 0, 0.2); - transition: all 0.1s ease; - display: flex; - align-items: center; - justify-content: center; - gap: 15px; -} + .user-dropdown-menu .dropdown-item.logout-item { + color: var(--kahoot-red); + } -.btn-play-kahoot:hover { - background-color: #2bb00f; - color: white; - transform: translateY(-3px); - box-shadow: 0 12px 20px rgba(0, 0, 0, 0.25); -} + .user-dropdown-menu .dropdown-item.logout-item:hover { + background-color: #fde8ea; + color: var(--kahoot-red); + } -.btn-play-kahoot:active { - transform: translateY(4px); - border-bottom: 2px solid var(--kahoot-green-hover); -} + .btn-play-kahoot { + background-color: var(--kahoot-green); + color: white; + font-size: 2.2rem; + font-weight: 700; + width: 100%; + padding: 30px 20px; + border-radius: 20px; + border: none; + border-bottom: 8px solid var(--kahoot-green-hover); + box-shadow: 0 8px 15px rgba(0,0,0,0.2); + transition: all 0.1s ease; + display: flex; + align-items: center; + justify-content: center; + gap: 15px; + } -.ranking-card { - border-radius: 20px; - border: none; - box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08); - overflow: hidden; -} + .btn-play-kahoot:hover { + background-color: #2bb00f; + color: white; + transform: translateY(-3px); + box-shadow: 0 12px 20px rgba(0,0,0,0.25); + } -.ranking-header { - background-color: var(--kahoot-yellow); - color: #333; - padding: 15px 20px; - font-weight: 700; -} + .btn-play-kahoot:active { + transform: translateY(4px); + border-bottom: 2px solid var(--kahoot-green-hover); + } -.trophy-icon { - font-size: 3rem; - color: var(--kahoot-yellow); - margin-bottom: 10px; -} + .ranking-card { + border-radius: 20px; + border: none; + box-shadow: 0 8px 20px rgba(0,0,0,0.08); + overflow: hidden; + } + + .ranking-header { + background-color: var(--kahoot-yellow); + color: #333; + padding: 15px 20px; + font-weight: 700; + } + + .trophy-icon { + font-size: 3rem; + color: var(--kahoot-yellow); + margin-bottom: 10px; + } + + /* Estilos modales */ + .modal-content { + border-radius: 20px; + overflow: hidden; + } \ No newline at end of file diff --git a/css/juego.css b/css/juego.css new file mode 100644 index 0000000..252da22 --- /dev/null +++ b/css/juego.css @@ -0,0 +1,119 @@ +* { + box-sizing: border-box; + margin: 0; + padding: 0; + font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; + } + + body { + background-color: #f2f2f2; + display: flex; + flex-direction: column; + height: 100vh; + justify-content: space-between; + padding: 20px; + } + + /* Área de la Pregunta */ + .question-container { + background-color: white; + border-radius: 8px; + box-shadow: 0 4px 6px rgba(0,0,0,0.1); + padding: 30px; + text-align: center; + font-size: 24px; + font-weight: bold; + color: #333; + margin-bottom: 20px; + flex-grow: 0; + } + + /* Cuadrícula de Respuestas */ + .answers-grid { + display: grid; + grid-template-columns: repeat(2, 1fr); + gap: 15px; + flex-grow: 1; + } + + /* Botones de Respuesta Básicos */ + .btn-answer { + border: none; + border-radius: 8px; + color: white; + font-size: 22px; + font-weight: bold; + display: flex; + align-items: center; + padding: 20px; + cursor: pointer; + transition: transform 0.1s ease, filter 0.1s ease; + box-shadow: 0 6px 0 rgba(0,0,0,0.2); + text-align: left; + } + + .btn-answer:active { + transform: translateY(4px); + box-shadow: 0 2px 0 rgba(0,0,0,0.2); + } + + /* Variaciones de Color y Formas */ + .red { + background-color: #e21b3c; + } + .red:hover { filter: brightness(1.1); } + + .blue { + background-color: #1368ce; + } + .blue:hover { filter: brightness(1.1); } + + .yellow { + background-color: #d89e00; + } + .yellow:hover { filter: brightness(1.1); } + + .green { + background-color: #26890c; + } + .green:hover { filter: brightness(1.1); } + + /* Iconos Geométricos Simulados con CSS */ + .shape { + display: inline-block; + width: 30px; + height: 30px; + margin-right: 20px; + flex-shrink: 0; + background-color: white; + } + + .triangle { + clip-path: polygon(50% 0%, 0% 100%, 100% 100%); + } + + .diamond { + clip-path: polygon(50% 0%, 100% 50%, 50% 100%, 0% 50%); + } + + .circle { + border-radius: 50%; + } + + .square { + /* Por defecto es un cuadrado */ + } + + /* Adaptabilidad para Móviles */ + @media (max-width: 768px) { + .answers-grid { + grid-template-columns: 1fr; + } + .question-container { + font-size: 20px; + padding: 20px; + } + .btn-answer { + font-size: 18px; + } + } \ No newline at end of file diff --git a/juego.php b/juego.php new file mode 100644 index 0000000..0a3bfcd --- /dev/null +++ b/juego.php @@ -0,0 +1,45 @@ + + + + + + + Proyecto Trivial + + + + + + + ¿Cuál es el planeta más grande de nuestro sistema solar? + + + + + + + Marte + + + + + Júpiter + + + + + Saturno + + + + + Tierra + + + + + + + \ No newline at end of file diff --git a/perfil.php b/perfil.php index 5cf6b78..8a7b389 100644 --- a/perfil.php +++ b/perfil.php @@ -210,6 +210,26 @@ + + + + + + + + + + + Crear pregunta + + + + + @@ -223,14 +243,192 @@ + + + + + + + + + + + + + + + + + + + Crear pregunta + + + + + + + + + + + + + + + + + + + + + + + + + Pregunta + + + + + + + + + + + + + + + + Respuesta correcta + + + + + + + + + + + + + + + + Respuestas incorrectas + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +