File "index.php"

Full Path: C:/wamp64/www/loteo1/index.php
File size: 7.57 KB
MIME-type: text/x-php
Charset: utf-8

<?php
// Iniciar la sesión
session_start();

// Incluir conexión a la base de datos (usando SQL Server)
include("connection.php");
?>
<!DOCTYPE html>
<html lang="es">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta name="author" content="Sebastian Obando">
    <meta name="copyright" content="Sebastian Obando">
    <title>Menú Entregas Loteo - Avicampo</title>
    <link rel="icon" type="image/png" href="img/icono.png">
    <style>
        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }
        
        body {
            font-family: Arial, sans-serif;
            min-height: 100vh;
            background-image: linear-gradient(to right, #FF8626, #E6B881);
            display: flex;
            justify-content: center;
            align-items: center;
            padding: 20px;
        }
        
        /* Contenedor principal */
        .main-container {
            width: 100%;
            max-width: 1000px;
            background-color: rgba(255, 255, 255, 0.95);
            border-radius: 15px;
            box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
            padding: 30px;
            position: relative;
        }
        
        .logo {
            display: block;
            margin: 0 auto 1.5rem;
            max-width: 100%;
            height: auto;
        }
        
        .user-info {
            text-align: right;
            padding: 8px 15px;
            background-color: rgba(255, 255, 255, 0.9);
            border-radius: 5px;
            display: inline-block;
            position: absolute;
            top: 20px;
            right: 20px;
            box-shadow: 0 2px 5px rgba(0,0,0,0.1);
        }
        
        .logout {
            margin-left: 10px;
            padding: 3px 8px;
            background-color: #e74c3c;
            color: white;
            text-decoration: none;
            border-radius: 3px;
            font-size: 14px;
            transition: background-color 0.3s;
        }
        
        .logout:hover {
            background-color: #c0392b;
        }
        
        /* Estilos del menú */
        .menu-container {
            display: flex;
            justify-content: center;
            padding: 20px;
            flex-wrap: wrap;
            gap: 25px;
            margin-top: 20px;
        }
        
        .menu-button {
            width: 180px;
            height: 200px;
            border-radius: 15px;
            border: 2px solid #FF8C00;
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: space-between;
            color: #000;
            font-weight: bold;
            text-decoration: none;
            cursor: pointer;
            transition: all 0.3s ease;
            background-color: white;
            padding: 20px 15px;
            box-shadow: 0 4px 8px rgba(0,0,0,0.1);
        }
        
        .menu-button:hover {
            transform: scale(1.05);
            box-shadow: 0 8px 16px rgba(0,0,0,0.15);
            border-color: #d0101d;
        }
        
        .button-image {
            width: 100px;
            height: 100px;
            background-size: contain;
            background-position: center;
            background-repeat: no-repeat;
            margin-bottom: 15px;
        }
        
        .button-text {
            background-color:
            color: white;
            padding: 8px 12px;
            border-radius: 5px;
            text-align: center;
            font-size: 14px;
            width: 100%;
            transition: all 0.3s ease;
        }
        
        .menu-button:hover .button-text {
            background-color: 
        }
        
        /* Estilos del footer */
        .footer {
            margin-top: 40px;
            text-align: center;
        }
        
        @font-face {
            font-family: 'Gardenia';
            src: local('Gardenia Black Italic'), local('Gardenia-Black-Italic'),
                url('Gardenia-BlackItalic.woff2') format('woff2'),
                url('Gardenia-BlackItalic.woff') format('woff'),
                url('Gardenia-BlackItalic.ttf') format('truetype');
            font-weight: 900;
            font-style: italic;
        }

        .copyright {
            display: inline-block;
            padding: 8px 20px;
            background-color: white;
            border: 1px solid #FF8C00;
            border-radius: 5px;
            font-size: 14px;
            font-family: 'Gardenia', sans-serif;
            font-weight: 900;
            font-style: italic;
            color: #FF8C00;
        }
        
        /* Estilo para el título principal */
        .main-title {
            font-family: 'Gardenia', sans-serif;
            font-weight: 900;
            font-style: italic;
            color: #FF8C00;
            text-align: center;
            font-size: 42px;
            margin: 20px 0 30px;
            text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
            letter-spacing: 1px;
            -webkit-text-stroke: 1px #000;
        }
        
        /* Responsive design */
        @media (max-width: 768px) {
            .main-container {
                padding: 20px;
            }
            
            .main-title {
                font-size: 32px;
                margin: 15px 0 25px;
            }
            
            .menu-button {
                width: 150px;
                height: 180px;
            }
            
            .button-image {
                width: 80px;
                height: 80px;
            }
			.logo {
				margin: 0 auto 1rem; /* Reducir el margen inferior */
				max-width: 50%; /* Hacer el logo un poco más pequeño */
			}
        }
        
        @media (max-width: 480px) {
            .main-title {
                font-size: 28px;
            }
            
            .menu-button {
                width: 140px;
                height: 170px;
            }
            
            .button-image {
                width: 70px;
                height: 70px;
            }
			.logo {
				margin: 0 auto 1rem; /* Reducir el margen inferior */
				max-width: 20%; /* Hacer el logo un poco más pequeño */
			}
        }
    </style>
</head>
<body>

<!-- Contenedor principal -->
<div class="main-container">
    <!-- Logo -->
    <img src="img/LOGO.png" alt="Logo Avicampo" class="logo" style="max-width: 450px;">

    <!-- Título principal -->
    <h1 class="main-title">CONTROL DE ENTREGAS LOTEO</h1>

    <!-- Menú de botones -->
    <div class="menu-container">
        <?php
        $buttons = [
            ['text' => 'REGISTRAR ENTREGA', 'link' => 'registrar.php', 'image' => 'img/entrada.png'],
            ['text' => 'REGISTRAR DEVOLUCION', 'link' => 'devolucion.php', 'image' => 'img/salida.png']
        ];
        
        foreach ($buttons as $button) {
            echo '<a href="' . $button['link'] . '" class="menu-button">';
            echo '<div class="button-image" style="background-image: url(\'' . $button['image'] . '\');"></div>';
            echo '<span class="button-text">' . $button['text'] . '</span>';
            echo '</a>';
        }
        ?>
    </div>

    <!-- Footer con copyright -->
    <div class="footer">
        <div class="copyright">
            &#169; Avicampo <?php echo date('Y'); ?>
        </div>
    </div>
</div>

</body>
</html>