Auto commit: 2026-02-14T20:39:23.792Z

This commit is contained in:
Flatlogic Bot 2026-02-14 20:39:23 +00:00
parent b79dba006e
commit 71305ca910
3 changed files with 254 additions and 209 deletions

Binary file not shown.

After

Width:  |  Height:  |  Size: 75 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 182 KiB

463
index.php
View File

@ -33,8 +33,10 @@ $whatsapp_link = "https://chat.whatsapp.com/DkG96pTzAFO3hvLqmzwmTY";
:root { :root {
--accent-color: #00e676; /* WhatsApp Green */ --accent-color: #00e676; /* WhatsApp Green */
--primary-color: #38bdf8; /* Sky Blue */ --primary-color: #38bdf8; /* Sky Blue */
--bg-overlay: rgba(15, 23, 42, 0.5); /* More transparent overlay */ --secondary-color: #f472b6; /* Pink */
--glass-bg: rgba(15, 23, 42, 0.3); /* Transparent card background */ --vibrant-green: #22c55e;
--bg-overlay: rgba(15, 23, 42, 0.4);
--glass-bg: rgba(15, 23, 42, 0.4);
--glass-border: rgba(255, 255, 255, 0.2); --glass-border: rgba(255, 255, 255, 0.2);
} }
@ -45,7 +47,7 @@ $whatsapp_link = "https://chat.whatsapp.com/DkG96pTzAFO3hvLqmzwmTY";
height: 100%; height: 100%;
font-family: 'Inter', sans-serif; font-family: 'Inter', sans-serif;
color: #ffffff; color: #ffffff;
background-color: #000; background-color: #0f172a;
overflow: hidden; overflow: hidden;
} }
@ -55,18 +57,37 @@ $whatsapp_link = "https://chat.whatsapp.com/DkG96pTzAFO3hvLqmzwmTY";
left: 0; left: 0;
width: 100%; width: 100%;
height: 100%; height: 100%;
background: url('assets/images/background.jpg') center/cover no-repeat; background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
z-index: -1; z-index: -1;
} }
.background::after { .background-blob {
content: ''; position: fixed;
position: absolute; width: 500px;
top: 0; height: 500px;
left: 0; background: radial-gradient(circle, rgba(56, 189, 248, 0.15) 0%, rgba(56, 189, 248, 0) 70%);
width: 100%; border-radius: 50%;
height: 100%; z-index: -1;
background: var(--bg-overlay); filter: blur(50px);
animation: move 20s infinite alternate;
}
.background-blob-2 {
position: fixed;
bottom: -100px;
right: -100px;
width: 600px;
height: 600px;
background: radial-gradient(circle, rgba(244, 114, 182, 0.15) 0%, rgba(244, 114, 182, 0) 70%);
border-radius: 50%;
z-index: -1;
filter: blur(50px);
animation: move 25s infinite alternate-reverse;
}
@keyframes move {
from { transform: translate(0, 0); }
to { transform: translate(100px, 100px); }
} }
.app-container { .app-container {
@ -76,6 +97,7 @@ $whatsapp_link = "https://chat.whatsapp.com/DkG96pTzAFO3hvLqmzwmTY";
align-items: center; align-items: center;
padding: 2rem; padding: 2rem;
box-sizing: border-box; box-sizing: border-box;
position: relative;
} }
/* Left Side: Player */ /* Left Side: Player */
@ -84,178 +106,217 @@ $whatsapp_link = "https://chat.whatsapp.com/DkG96pTzAFO3hvLqmzwmTY";
display: flex; display: flex;
flex-direction: column; flex-direction: column;
justify-content: center; justify-content: center;
max-width: 500px; max-width: 520px;
z-index: 10; z-index: 10;
} }
.glass-card { .glass-card {
background: var(--glass-bg); background: var(--glass-bg);
backdrop-filter: blur(8px); backdrop-filter: blur(16px);
-webkit-backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(16px);
border: 1px solid var(--glass-border); border: 1px solid var(--glass-border);
border-radius: 24px; border-radius: 32px;
padding: 2.5rem; padding: 2.5rem;
box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.3); box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
transition: transform 0.3s ease;
} }
.brand h1 { .brand h1 {
font-size: 2.5rem; font-size: 3rem;
font-weight: 700; font-weight: 800;
margin: 0 0 0.5rem; margin: 0 0 0.5rem;
background: linear-gradient(to right, #fff, var(--primary-color)); background: linear-gradient(to right, #fff, var(--primary-color), var(--secondary-color));
-webkit-background-clip: text; -webkit-background-clip: text;
-webkit-text-fill-color: transparent; -webkit-text-fill-color: transparent;
letter-spacing: -0.05em;
}
.brand-logo {
width: 150px;
height: auto;
margin-bottom: 1.5rem;
display: block;
filter: drop-shadow(0 0 15px rgba(56, 189, 248, 0.4));
transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.brand-logo:hover {
transform: scale(1.08) rotate(-2deg);
} }
.brand p { .brand p {
font-size: 1rem; font-size: 1.1rem;
opacity: 0.8; font-weight: 300;
opacity: 0.9;
margin-bottom: 2rem; margin-bottom: 2rem;
color: #94a3b8;
} }
/* Radio Player UI */ /* Radio Player UI */
.radio-player { .radio-player {
display: flex; display: flex;
flex-direction: column; flex-direction: column;
gap: 1.5rem; gap: 2rem;
}
.now-playing-container {
position: relative;
background: rgba(15, 23, 42, 0.6);
border-radius: 20px;
padding: 1.5rem;
border: 1px solid rgba(255, 255, 255, 0.1);
overflow: hidden;
} }
.now-playing { .now-playing {
display: flex; display: flex;
align-items: center; align-items: center;
gap: 1rem; gap: 1.2rem;
background: rgba(0, 0, 0, 0.3); position: relative;
padding: 1rem; z-index: 2;
border-radius: 12px;
} }
.now-playing i { .now-playing-icon {
width: 50px;
height: 50px;
background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
border-radius: 14px;
display: flex;
align-items: center;
justify-content: center;
font-size: 1.5rem; font-size: 1.5rem;
color: var(--primary-color); box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.2);
animation: pulse 2s infinite;
} }
.track-info { .track-info {
flex: 1;
overflow: hidden; overflow: hidden;
} }
.track-title { .track-title {
font-weight: 600; font-weight: 700;
font-size: 1.1rem; font-size: 1.25rem;
white-space: nowrap; white-space: nowrap;
overflow: hidden; overflow: hidden;
text-overflow: ellipsis; text-overflow: ellipsis;
color: #f8fafc;
} }
.track-status { .track-status {
font-size: 0.85rem; font-size: 0.75rem;
opacity: 0.6; font-weight: 700;
text-transform: uppercase;
letter-spacing: 0.1em;
color: var(--secondary-color);
display: flex;
align-items: center;
gap: 0.4rem;
}
.live-dot {
width: 8px;
height: 8px;
background-color: var(--secondary-color);
border-radius: 50%;
display: inline-block;
box-shadow: 0 0 10px var(--secondary-color);
}
/* Visualizer */
.visualizer {
display: flex;
align-items: flex-end;
gap: 3px;
height: 30px;
margin-top: 10px;
padding-left: 2px;
}
.bar {
width: 4px;
background: linear-gradient(to top, var(--primary-color), var(--secondary-color));
border-radius: 2px;
height: 3px;
transition: height 0.2s ease;
}
.is-playing .bar {
animation: equalize 1s infinite alternate;
}
.is-playing .bar:nth-child(1) { animation-duration: 0.4s; }
.is-playing .bar:nth-child(2) { animation-duration: 0.7s; }
.is-playing .bar:nth-child(3) { animation-duration: 0.5s; }
.is-playing .bar:nth-child(4) { animation-duration: 0.9s; }
.is-playing .bar:nth-child(5) { animation-duration: 0.6s; }
.is-playing .bar:nth-child(6) { animation-duration: 0.8s; }
.is-playing .bar:nth-child(7) { animation-duration: 0.4s; }
.is-playing .bar:nth-child(8) { animation-duration: 0.7s; }
@keyframes equalize {
0% { height: 5px; }
100% { height: 25px; }
} }
.controls { .controls {
display: flex; display: flex;
align-items: center; align-items: center;
gap: 1rem; gap: 1.5rem;
background: rgba(255, 255, 255, 0.03);
padding: 1rem;
border-radius: 20px;
} }
.play-btn { .play-btn {
width: 64px; width: 72px;
height: 64px; height: 72px;
border-radius: 50%; border-radius: 24px;
background: var(--primary-color); background: linear-gradient(135deg, var(--primary-color), #0284c7);
border: none; border: none;
color: #fff; color: #fff;
font-size: 1.5rem; font-size: 2rem;
cursor: pointer; cursor: pointer;
display: flex; display: flex;
align-items: center; align-items: center;
justify-content: center; justify-content: center;
transition: transform 0.2s, background 0.2s; transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
box-shadow: 0 4px 15px rgba(56, 189, 248, 0.4); box-shadow: 0 15px 30px -5px rgba(56, 189, 248, 0.4);
} }
.play-btn:hover { .play-btn:hover {
transform: scale(1.05); transform: translateY(-4px) scale(1.02);
background: #0ea5e9; box-shadow: 0 20px 40px -5px rgba(56, 189, 248, 0.5);
}
.play-btn:active {
transform: scale(0.95);
}
.volume-container {
flex: 1;
display: flex;
align-items: center;
gap: 1rem;
} }
.volume-slider { .volume-slider {
flex: 1; flex: 1;
height: 6px; height: 6px;
-webkit-appearance: none; -webkit-appearance: none;
background: rgba(255, 255, 255, 0.2); background: rgba(255, 255, 255, 0.1);
border-radius: 3px; border-radius: 10px;
outline: none; outline: none;
} }
.volume-slider::-webkit-slider-thumb { .volume-slider::-webkit-slider-thumb {
-webkit-appearance: none; -webkit-appearance: none;
width: 16px; width: 18px;
height: 16px; height: 18px;
background: #fff; background: #fff;
border-radius: 50%; border-radius: 50%;
cursor: pointer; cursor: pointer;
} box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
border: 2px solid var(--primary-color);
/* Interaction Form */
.interaction-form {
margin-top: 2rem;
display: flex;
flex-direction: column;
gap: 1rem;
text-align: left;
}
.interaction-form label {
font-size: 0.85rem;
font-weight: 600;
margin-bottom: -0.5rem;
opacity: 0.9;
}
.interaction-form input,
.interaction-form textarea {
width: 100%;
padding: 0.8rem;
border-radius: 12px;
border: 1px solid rgba(255, 255, 255, 0.2);
background-color: rgba(255, 255, 255, 0.9); /* Semi-transparent white */
color: #0f172a;
font-family: inherit;
font-size: 0.95rem;
box-sizing: border-box;
outline: none;
transition: all 0.2s;
}
.interaction-form textarea {
resize: none;
height: 80px;
}
.interaction-form input::placeholder,
.interaction-form textarea::placeholder {
color: #64748b;
}
.send-whatsapp-btn {
background-color: var(--accent-color);
color: #fff;
border: none;
padding: 0.8rem;
border-radius: 12px;
font-weight: 700;
cursor: pointer;
display: flex;
align-items: center;
justify-content: center;
gap: 0.5rem;
transition: transform 0.2s, background 0.2s;
}
.send-whatsapp-btn:hover {
transform: translateY(-2px);
background-color: #00c853;
} }
/* Right Side: Featured Image */ /* Right Side: Featured Image */
@ -264,157 +325,158 @@ $whatsapp_link = "https://chat.whatsapp.com/DkG96pTzAFO3hvLqmzwmTY";
display: flex; display: flex;
justify-content: center; justify-content: center;
align-items: center; align-items: center;
padding-left: 2rem; padding-left: 4rem;
} }
.featured-img-container { .featured-img-container {
width: 100%; width: 100%;
max-width: 600px; max-width: 600px;
position: relative; position: relative;
border-radius: 24px; border-radius: 40px;
overflow: hidden; overflow: hidden;
box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6); box-shadow: 0 30px 60px -12px rgba(0, 0, 0, 0.7);
aspect-ratio: 16 / 9; aspect-ratio: 16 / 9;
background: #1e293b;
} }
.featured-img-container img { .featured-img-container img {
width: 100%; width: 100%;
height: 100%; height: 100%;
object-fit: cover; object-fit: cover;
transition: transform 0.5s; transition: transform 0.8s cubic-bezier(0.2, 0, 0.2, 1);
} }
.featured-img-container:hover img { .featured-img-container:hover img {
transform: scale(1.05); transform: scale(1.08);
} }
/* Transfermovil QR Section */ .featured-img-overlay {
position: absolute;
inset: 0;
background: linear-gradient(to top, rgba(15, 23, 42, 0.6), transparent);
pointer-events: none;
}
/* Payment Section */
.payment-section { .payment-section {
margin-top: 2rem; margin-top: 2rem;
text-align: center; background: rgba(255, 255, 255, 0.02);
padding: 1.5rem;
border-radius: 24px;
border: 1px solid rgba(255, 255, 255, 0.05);
} }
.qr-container { .qr-container {
margin: 1rem auto; margin: 1rem auto 0;
display: flex; display: flex;
justify-content: center; justify-content: center;
} }
.qr-container img { .qr-placeholder {
max-width: 200px; width: 160px;
transition: transform 0.3s; height: 160px;
} background: rgba(255,255,255,0.05);
border: 2px dashed rgba(255,255,255,0.2);
.qr-container img:hover { border-radius: 20px;
transform: scale(1.1);
}
/* Floating WhatsApp Button */
.whatsapp-float {
position: fixed;
bottom: 2rem;
right: 2rem;
width: 60px;
height: 60px;
background-color: var(--accent-color);
color: #FFF;
border-radius: 50%;
text-align: center;
font-size: 30px;
box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.3);
z-index: 100;
display: flex; display: flex;
align-items: center; align-items: center;
justify-content: center; justify-content: center;
text-decoration: none; flex-direction: column;
transition: transform 0.3s; gap: 0.8rem;
color: #94a3b8;
transition: all 0.3s ease;
} }
.whatsapp-float:hover { .qr-placeholder:hover {
transform: scale(1.1); border-color: var(--primary-color);
color: #fff; color: var(--primary-color);
} background: rgba(56, 189, 248, 0.05);
@keyframes pulse {
0% { transform: scale(1); opacity: 1; }
50% { transform: scale(1.1); opacity: 0.7; }
100% { transform: scale(1); opacity: 1; }
} }
/* Responsive */ /* Responsive */
@media (max-width: 992px) { @media (max-width: 1024px) {
.app-container { .app-container {
flex-direction: column; flex-direction: column;
height: auto; height: auto;
overflow-y: auto; overflow-y: auto;
padding-top: 4rem; padding: 2rem 1rem;
} }
.player-section { .player-section {
max-width: 100%; max-width: 100%;
margin-bottom: 2rem; width: 100%;
margin-bottom: 3rem;
} }
.image-section { .image-section {
padding-left: 0; padding-left: 0;
width: 100%; width: 100%;
} }
.featured-img-container { .glass-card {
aspect-ratio: 1 / 1; padding: 1.5rem;
}
.brand h1 {
font-size: 2.2rem;
} }
} }
</style> </style>
</head> </head>
<body> <body>
<div class="background"></div> <div class="background"></div>
<div class="background-blob"></div>
<div class="background-blob-2"></div>
<div class="app-container"> <div class="app-container">
<!-- Left Section: Player --> <!-- Left Section: Player -->
<section class="player-section"> <section class="player-section">
<div class="glass-card"> <div class="glass-card">
<header class="brand"> <header class="brand">
<img src="assets/pasted-20260214-203540-699a2e6a.png?v=<?php echo time(); ?>" alt="Lili Records Logo" class="brand-logo">
<h1>Lili Records</h1> <h1>Lili Records</h1>
<p>Siente la música, vive el ritmo.</p> <p>Siente la música, vive el ritmo.</p>
</header> </header>
<div class="radio-player"> <div class="radio-player">
<div class="now-playing"> <div class="now-playing-container">
<i class="bi bi-broadcast"></i> <div class="now-playing">
<div class="track-info"> <div class="now-playing-icon">
<div class="track-status">EN VIVO</div> <i class="bi bi-broadcast"></i>
<div id="track-title" class="track-title">Cargando stream...</div> </div>
<div class="track-info">
<div class="track-status">
<span class="live-dot"></span> EN VIVO
</div>
<div id="track-title" class="track-title">Conectando...</div>
<div id="visualizer" class="visualizer">
<div class="bar"></div>
<div class="bar"></div>
<div class="bar"></div>
<div class="bar"></div>
<div class="bar"></div>
<div class="bar"></div>
<div class="bar"></div>
<div class="bar"></div>
</div>
</div>
<a href="<?= $whatsapp_link ?>" target="_blank" title="WhatsApp directo" style="color: var(--accent-color); font-size: 2rem; margin-left: auto; display: flex; align-items: center; transition: transform 0.2s;">
<i class="bi bi-whatsapp"></i>
</a>
</div> </div>
<a href="<?= $whatsapp_link ?>" target="_blank" title="WhatsApp directo" style="color: var(--accent-color); font-size: 1.8rem; margin-left: auto; display: flex; align-items: center;">
<i class="bi bi-whatsapp"></i>
</a>
</div> </div>
<div class="controls"> <div class="controls">
<button id="play-pause" class="play-btn" onclick="togglePlay()"> <button id="play-pause" class="play-btn" onclick="togglePlay()">
<i id="play-icon" class="bi bi-play-fill"></i> <i id="play-icon" class="bi bi-play-fill"></i>
</button> </button>
<i class="bi bi-volume-up"></i> <div class="volume-container">
<input type="range" class="volume-slider" min="0" max="1" step="0.01" value="1" oninput="changeVolume(this.value)"> <i class="bi bi-volume-up" style="font-size: 1.2rem; opacity: 0.6;"></i>
</div> <input type="range" class="volume-slider" min="0" max="1" step="0.01" value="1" oninput="changeVolume(this.value)">
</div>
<div class="interaction-form">
<label for="user-name">TU NOMBRE</label>
<input type="text" id="user-name" placeholder="Ej: Juan Pérez">
<label for="user-message">TU MENSAJE / PEDIDO</label>
<textarea id="user-message" placeholder="Escribe aquí tu saludo o canción favorita..."></textarea>
<button class="send-whatsapp-btn" onclick="sendToWhatsApp()">
<i class="bi bi-whatsapp"></i> ENVIAR AL WHATSAPP
</button>
</div> </div>
<!-- Transfermovil QR Section --> <!-- Transfermovil QR Section -->
<div class="payment-section"> <div class="payment-section">
<p style="font-size: 0.85rem; font-weight: 600; margin-bottom: 0.5rem; opacity: 0.9;">APOYA LA RADIO (TRANSFERMÓVIL)</p> <p style="font-size: 0.8rem; font-weight: 700; text-align: center; color: #94a3b8; text-transform: uppercase; letter-spacing: 0.1em; margin: 0;">APOYA LA RADIO</p>
<div class="qr-container"> <div class="qr-container">
<div style="width: 180px; height: 180px; background: rgba(255,255,255,0.1); border: 2px dashed rgba(255,255,255,0.3); border-radius: 12px; display: flex; align-items: center; justify-content: center; flex-direction: column; gap: 0.5rem;"> <img src="assets/pasted-20260214-203505-f7d808c3.jpg?v=<?php echo time(); ?>" alt="Transfermóvil QR" style="width: 160px; height: 160px; object-fit: contain; border-radius: 20px; border: 2px solid rgba(255,255,255,0.1); background: #fff; padding: 5px; box-shadow: 0 10px 25px rgba(0,0,0,0.3);">
<i class="bi bi-qr-code" style="font-size: 3rem; opacity: 0.5;"></i>
<span style="font-size: 0.7rem; opacity: 0.5;">ESPACIO PARA QR</span>
</div>
</div> </div>
</div> </div>
</div> </div>
@ -436,15 +498,11 @@ $whatsapp_link = "https://chat.whatsapp.com/DkG96pTzAFO3hvLqmzwmTY";
<section class="image-section"> <section class="image-section">
<div class="featured-img-container"> <div class="featured-img-container">
<img src="assets/pasted-20260214-202809-06aae656.png" alt="Lili Records Featured"> <img src="assets/pasted-20260214-202809-06aae656.png" alt="Lili Records Featured">
<div class="featured-img-overlay"></div>
</div> </div>
</section> </section>
</div> </div>
<!-- WhatsApp Button -->
<a href="<?= $whatsapp_link ?>" class="whatsapp-float" target="_blank">
<i class="bi bi-whatsapp"></i>
</a>
<audio id="radio-audio" src="https://listen.radioking.com/radio/828046/stream/897251" preload="none"></audio> <audio id="radio-audio" src="https://listen.radioking.com/radio/828046/stream/897251" preload="none"></audio>
<script> <script>
@ -452,16 +510,19 @@ $whatsapp_link = "https://chat.whatsapp.com/DkG96pTzAFO3hvLqmzwmTY";
const playBtn = document.getElementById('play-pause'); const playBtn = document.getElementById('play-pause');
const playIcon = document.getElementById('play-icon'); const playIcon = document.getElementById('play-icon');
const trackTitle = document.getElementById('track-title'); const trackTitle = document.getElementById('track-title');
const nowPlaying = document.querySelector('.now-playing-container');
function togglePlay() { function togglePlay() {
if (audio.paused) { if (audio.paused) {
audio.play(); audio.play();
playIcon.classList.remove('bi-play-fill'); playIcon.classList.remove('bi-play-fill');
playIcon.classList.add('bi-pause-fill'); playIcon.classList.add('bi-pause-fill');
nowPlaying.classList.add('is-playing');
} else { } else {
audio.pause(); audio.pause();
playIcon.classList.remove('bi-pause-fill'); playIcon.classList.remove('bi-pause-fill');
playIcon.classList.add('bi-play-fill'); playIcon.classList.add('bi-play-fill');
nowPlaying.classList.remove('is-playing');
} }
} }
@ -469,26 +530,6 @@ $whatsapp_link = "https://chat.whatsapp.com/DkG96pTzAFO3hvLqmzwmTY";
audio.volume = val; audio.volume = val;
} }
function sendToWhatsApp() {
const name = document.getElementById('user-name').value;
const message = document.getElementById('user-message').value;
const phoneNumber = '5359177041';
if (!message.trim()) {
alert('Por favor, escribe un mensaje.');
return;
}
let finalMessage = `Hola Lili Records! `;
if (name.trim()) {
finalMessage += `Soy ${name}. `;
}
finalMessage += message;
const url = `https://wa.me/${phoneNumber}?text=${encodeURIComponent(finalMessage)}`;
window.open(url, '_blank');
}
// Fetch Now Playing Metadata from RadioKing // Fetch Now Playing Metadata from RadioKing
async function updateMetadata() { async function updateMetadata() {
try { try {
@ -520,9 +561,13 @@ $whatsapp_link = "https://chat.whatsapp.com/DkG96pTzAFO3hvLqmzwmTY";
audio.addEventListener('error', function(e) { audio.addEventListener('error', function(e) {
console.error('Audio error:', e); console.error('Audio error:', e);
trackTitle.textContent = "Error de conexión. Reintentando..."; trackTitle.textContent = "Error de conexión. Reintentando...";
nowPlaying.classList.remove('is-playing');
setTimeout(() => { setTimeout(() => {
audio.load(); audio.load();
if (!audio.paused) audio.play(); if (!audio.paused) {
audio.play();
nowPlaying.classList.add('is-playing');
}
}, 5000); }, 5000);
}); });
</script> </script>