Auto commit: 2026-02-14T20:39:23.792Z
This commit is contained in:
parent
b79dba006e
commit
71305ca910
BIN
assets/pasted-20260214-203505-f7d808c3.jpg
Normal file
BIN
assets/pasted-20260214-203505-f7d808c3.jpg
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 75 KiB |
BIN
assets/pasted-20260214-203540-699a2e6a.png
Normal file
BIN
assets/pasted-20260214-203540-699a2e6a.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 182 KiB |
463
index.php
463
index.php
@ -33,8 +33,10 @@ $whatsapp_link = "https://chat.whatsapp.com/DkG96pTzAFO3hvLqmzwmTY";
|
||||
:root {
|
||||
--accent-color: #00e676; /* WhatsApp Green */
|
||||
--primary-color: #38bdf8; /* Sky Blue */
|
||||
--bg-overlay: rgba(15, 23, 42, 0.5); /* More transparent overlay */
|
||||
--glass-bg: rgba(15, 23, 42, 0.3); /* Transparent card background */
|
||||
--secondary-color: #f472b6; /* Pink */
|
||||
--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);
|
||||
}
|
||||
|
||||
@ -45,7 +47,7 @@ $whatsapp_link = "https://chat.whatsapp.com/DkG96pTzAFO3hvLqmzwmTY";
|
||||
height: 100%;
|
||||
font-family: 'Inter', sans-serif;
|
||||
color: #ffffff;
|
||||
background-color: #000;
|
||||
background-color: #0f172a;
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
@ -55,18 +57,37 @@ $whatsapp_link = "https://chat.whatsapp.com/DkG96pTzAFO3hvLqmzwmTY";
|
||||
left: 0;
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
background: url('assets/images/background.jpg') center/cover no-repeat;
|
||||
background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
|
||||
z-index: -1;
|
||||
}
|
||||
|
||||
.background::after {
|
||||
content: '';
|
||||
position: absolute;
|
||||
top: 0;
|
||||
left: 0;
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
background: var(--bg-overlay);
|
||||
.background-blob {
|
||||
position: fixed;
|
||||
width: 500px;
|
||||
height: 500px;
|
||||
background: radial-gradient(circle, rgba(56, 189, 248, 0.15) 0%, rgba(56, 189, 248, 0) 70%);
|
||||
border-radius: 50%;
|
||||
z-index: -1;
|
||||
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 {
|
||||
@ -76,6 +97,7 @@ $whatsapp_link = "https://chat.whatsapp.com/DkG96pTzAFO3hvLqmzwmTY";
|
||||
align-items: center;
|
||||
padding: 2rem;
|
||||
box-sizing: border-box;
|
||||
position: relative;
|
||||
}
|
||||
|
||||
/* Left Side: Player */
|
||||
@ -84,178 +106,217 @@ $whatsapp_link = "https://chat.whatsapp.com/DkG96pTzAFO3hvLqmzwmTY";
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
justify-content: center;
|
||||
max-width: 500px;
|
||||
max-width: 520px;
|
||||
z-index: 10;
|
||||
}
|
||||
|
||||
.glass-card {
|
||||
background: var(--glass-bg);
|
||||
backdrop-filter: blur(8px);
|
||||
-webkit-backdrop-filter: blur(8px);
|
||||
backdrop-filter: blur(16px);
|
||||
-webkit-backdrop-filter: blur(16px);
|
||||
border: 1px solid var(--glass-border);
|
||||
border-radius: 24px;
|
||||
border-radius: 32px;
|
||||
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 {
|
||||
font-size: 2.5rem;
|
||||
font-weight: 700;
|
||||
font-size: 3rem;
|
||||
font-weight: 800;
|
||||
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-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 {
|
||||
font-size: 1rem;
|
||||
opacity: 0.8;
|
||||
font-size: 1.1rem;
|
||||
font-weight: 300;
|
||||
opacity: 0.9;
|
||||
margin-bottom: 2rem;
|
||||
color: #94a3b8;
|
||||
}
|
||||
|
||||
/* Radio Player UI */
|
||||
.radio-player {
|
||||
display: flex;
|
||||
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 {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 1rem;
|
||||
background: rgba(0, 0, 0, 0.3);
|
||||
padding: 1rem;
|
||||
border-radius: 12px;
|
||||
gap: 1.2rem;
|
||||
position: relative;
|
||||
z-index: 2;
|
||||
}
|
||||
|
||||
.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;
|
||||
color: var(--primary-color);
|
||||
animation: pulse 2s infinite;
|
||||
box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.2);
|
||||
}
|
||||
|
||||
.track-info {
|
||||
flex: 1;
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
.track-title {
|
||||
font-weight: 600;
|
||||
font-size: 1.1rem;
|
||||
font-weight: 700;
|
||||
font-size: 1.25rem;
|
||||
white-space: nowrap;
|
||||
overflow: hidden;
|
||||
text-overflow: ellipsis;
|
||||
color: #f8fafc;
|
||||
}
|
||||
|
||||
.track-status {
|
||||
font-size: 0.85rem;
|
||||
opacity: 0.6;
|
||||
font-size: 0.75rem;
|
||||
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 {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 1rem;
|
||||
gap: 1.5rem;
|
||||
background: rgba(255, 255, 255, 0.03);
|
||||
padding: 1rem;
|
||||
border-radius: 20px;
|
||||
}
|
||||
|
||||
.play-btn {
|
||||
width: 64px;
|
||||
height: 64px;
|
||||
border-radius: 50%;
|
||||
background: var(--primary-color);
|
||||
width: 72px;
|
||||
height: 72px;
|
||||
border-radius: 24px;
|
||||
background: linear-gradient(135deg, var(--primary-color), #0284c7);
|
||||
border: none;
|
||||
color: #fff;
|
||||
font-size: 1.5rem;
|
||||
font-size: 2rem;
|
||||
cursor: pointer;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
transition: transform 0.2s, background 0.2s;
|
||||
box-shadow: 0 4px 15px rgba(56, 189, 248, 0.4);
|
||||
transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
|
||||
box-shadow: 0 15px 30px -5px rgba(56, 189, 248, 0.4);
|
||||
}
|
||||
|
||||
.play-btn:hover {
|
||||
transform: scale(1.05);
|
||||
background: #0ea5e9;
|
||||
transform: translateY(-4px) scale(1.02);
|
||||
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 {
|
||||
flex: 1;
|
||||
height: 6px;
|
||||
-webkit-appearance: none;
|
||||
background: rgba(255, 255, 255, 0.2);
|
||||
border-radius: 3px;
|
||||
background: rgba(255, 255, 255, 0.1);
|
||||
border-radius: 10px;
|
||||
outline: none;
|
||||
}
|
||||
|
||||
.volume-slider::-webkit-slider-thumb {
|
||||
-webkit-appearance: none;
|
||||
width: 16px;
|
||||
height: 16px;
|
||||
width: 18px;
|
||||
height: 18px;
|
||||
background: #fff;
|
||||
border-radius: 50%;
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
/* 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;
|
||||
box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
|
||||
border: 2px solid var(--primary-color);
|
||||
}
|
||||
|
||||
/* Right Side: Featured Image */
|
||||
@ -264,157 +325,158 @@ $whatsapp_link = "https://chat.whatsapp.com/DkG96pTzAFO3hvLqmzwmTY";
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
padding-left: 2rem;
|
||||
padding-left: 4rem;
|
||||
}
|
||||
|
||||
.featured-img-container {
|
||||
width: 100%;
|
||||
max-width: 600px;
|
||||
position: relative;
|
||||
border-radius: 24px;
|
||||
border-radius: 40px;
|
||||
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;
|
||||
background: #1e293b;
|
||||
}
|
||||
|
||||
.featured-img-container img {
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
object-fit: cover;
|
||||
transition: transform 0.5s;
|
||||
transition: transform 0.8s cubic-bezier(0.2, 0, 0.2, 1);
|
||||
}
|
||||
|
||||
.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 {
|
||||
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 {
|
||||
margin: 1rem auto;
|
||||
margin: 1rem auto 0;
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
}
|
||||
|
||||
.qr-container img {
|
||||
max-width: 200px;
|
||||
transition: transform 0.3s;
|
||||
}
|
||||
|
||||
.qr-container img:hover {
|
||||
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;
|
||||
.qr-placeholder {
|
||||
width: 160px;
|
||||
height: 160px;
|
||||
background: rgba(255,255,255,0.05);
|
||||
border: 2px dashed rgba(255,255,255,0.2);
|
||||
border-radius: 20px;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
text-decoration: none;
|
||||
transition: transform 0.3s;
|
||||
flex-direction: column;
|
||||
gap: 0.8rem;
|
||||
color: #94a3b8;
|
||||
transition: all 0.3s ease;
|
||||
}
|
||||
|
||||
.whatsapp-float:hover {
|
||||
transform: scale(1.1);
|
||||
color: #fff;
|
||||
}
|
||||
|
||||
@keyframes pulse {
|
||||
0% { transform: scale(1); opacity: 1; }
|
||||
50% { transform: scale(1.1); opacity: 0.7; }
|
||||
100% { transform: scale(1); opacity: 1; }
|
||||
.qr-placeholder:hover {
|
||||
border-color: var(--primary-color);
|
||||
color: var(--primary-color);
|
||||
background: rgba(56, 189, 248, 0.05);
|
||||
}
|
||||
|
||||
/* Responsive */
|
||||
@media (max-width: 992px) {
|
||||
@media (max-width: 1024px) {
|
||||
.app-container {
|
||||
flex-direction: column;
|
||||
height: auto;
|
||||
overflow-y: auto;
|
||||
padding-top: 4rem;
|
||||
padding: 2rem 1rem;
|
||||
}
|
||||
.player-section {
|
||||
max-width: 100%;
|
||||
margin-bottom: 2rem;
|
||||
width: 100%;
|
||||
margin-bottom: 3rem;
|
||||
}
|
||||
.image-section {
|
||||
padding-left: 0;
|
||||
width: 100%;
|
||||
}
|
||||
.featured-img-container {
|
||||
aspect-ratio: 1 / 1;
|
||||
.glass-card {
|
||||
padding: 1.5rem;
|
||||
}
|
||||
.brand h1 {
|
||||
font-size: 2.2rem;
|
||||
}
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<div class="background"></div>
|
||||
<div class="background-blob"></div>
|
||||
<div class="background-blob-2"></div>
|
||||
|
||||
<div class="app-container">
|
||||
<!-- Left Section: Player -->
|
||||
<section class="player-section">
|
||||
<div class="glass-card">
|
||||
<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>
|
||||
<p>Siente la música, vive el ritmo.</p>
|
||||
</header>
|
||||
|
||||
<div class="radio-player">
|
||||
<div class="now-playing">
|
||||
<i class="bi bi-broadcast"></i>
|
||||
<div class="track-info">
|
||||
<div class="track-status">EN VIVO</div>
|
||||
<div id="track-title" class="track-title">Cargando stream...</div>
|
||||
<div class="now-playing-container">
|
||||
<div class="now-playing">
|
||||
<div class="now-playing-icon">
|
||||
<i class="bi bi-broadcast"></i>
|
||||
</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>
|
||||
<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 class="controls">
|
||||
<button id="play-pause" class="play-btn" onclick="togglePlay()">
|
||||
<i id="play-icon" class="bi bi-play-fill"></i>
|
||||
</button>
|
||||
<i class="bi bi-volume-up"></i>
|
||||
<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 class="volume-container">
|
||||
<i class="bi bi-volume-up" style="font-size: 1.2rem; opacity: 0.6;"></i>
|
||||
<input type="range" class="volume-slider" min="0" max="1" step="0.01" value="1" oninput="changeVolume(this.value)">
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!-- Transfermovil QR 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 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;">
|
||||
<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>
|
||||
<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);">
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@ -436,15 +498,11 @@ $whatsapp_link = "https://chat.whatsapp.com/DkG96pTzAFO3hvLqmzwmTY";
|
||||
<section class="image-section">
|
||||
<div class="featured-img-container">
|
||||
<img src="assets/pasted-20260214-202809-06aae656.png" alt="Lili Records Featured">
|
||||
<div class="featured-img-overlay"></div>
|
||||
</div>
|
||||
</section>
|
||||
</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>
|
||||
|
||||
<script>
|
||||
@ -452,16 +510,19 @@ $whatsapp_link = "https://chat.whatsapp.com/DkG96pTzAFO3hvLqmzwmTY";
|
||||
const playBtn = document.getElementById('play-pause');
|
||||
const playIcon = document.getElementById('play-icon');
|
||||
const trackTitle = document.getElementById('track-title');
|
||||
const nowPlaying = document.querySelector('.now-playing-container');
|
||||
|
||||
function togglePlay() {
|
||||
if (audio.paused) {
|
||||
audio.play();
|
||||
playIcon.classList.remove('bi-play-fill');
|
||||
playIcon.classList.add('bi-pause-fill');
|
||||
nowPlaying.classList.add('is-playing');
|
||||
} else {
|
||||
audio.pause();
|
||||
playIcon.classList.remove('bi-pause-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;
|
||||
}
|
||||
|
||||
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
|
||||
async function updateMetadata() {
|
||||
try {
|
||||
@ -520,9 +561,13 @@ $whatsapp_link = "https://chat.whatsapp.com/DkG96pTzAFO3hvLqmzwmTY";
|
||||
audio.addEventListener('error', function(e) {
|
||||
console.error('Audio error:', e);
|
||||
trackTitle.textContent = "Error de conexión. Reintentando...";
|
||||
nowPlaying.classList.remove('is-playing');
|
||||
setTimeout(() => {
|
||||
audio.load();
|
||||
if (!audio.paused) audio.play();
|
||||
if (!audio.paused) {
|
||||
audio.play();
|
||||
nowPlaying.classList.add('is-playing');
|
||||
}
|
||||
}, 5000);
|
||||
});
|
||||
</script>
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user