Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Binary file added Imagenes/anuncio.jpeg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added Imagenes/pop.jpeg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
20 changes: 20 additions & 0 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,24 @@
</head>

<body>
<div id="anuncio">
<div class="contenido">
<button class="cerrar" onclick="cerrarAnuncio()">✖</button>
<a href="https://www.billboard.com/espanol/noticias/premios-mtv-videos-musicales-2025-lista-de-ganadores-1236060993/" target="_blank" rel="noopener noreferrer">
<img src="Imagenes/anuncio.jpeg" alt="Anuncio promocional">
</a>
<p>¡Haz clic en el anuncio para más información!</p>
</div>
</div>

<script>
function cerrarAnuncio() {
document.getElementById("anuncio").style.display = "none";
}
</script>



<button id="celebrarBtn" class="my-button2">Album del Año</button>
<script src="celebration.js"></script>
<script>
Expand Down Expand Up @@ -119,5 +137,7 @@ <h4>OFFICIAL PAGE</h4>
<button class="my-button2" onclick="location.href='index3.html'">A CERCA DE MI</button>
<footer class="cursor">
<p style="font-size: 25px; color:skyblue;">Copyright © 2025 Sergio Lopez Unda</p>
<p style="font-size: 20px; color:skyblue;">All rights reserved.</p>
</footer>
</body>
</html>
1 change: 1 addition & 0 deletions prueba.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Hola mundo
42 changes: 42 additions & 0 deletions style2.css
Original file line number Diff line number Diff line change
Expand Up @@ -175,3 +175,45 @@
pointer-events: none;
z-index: 9999;
}



#anuncio {
display: flex; /* se muestra al cargar */
position: fixed;
inset: 0;
background: rgba(0,0,0,0.6);
align-items: center;
justify-content: center;
z-index: 9999;
}

/* Contenedor del anuncio */
#anuncio .contenido {
background: #fff;
padding: 20px;
border-radius: 10px;
max-width: 500px;
width: 90%;
text-align: center;
position: relative;
box-shadow: 0 4px 10px rgba(0,0,0,0.3);
}

/* Botón de cerrar (X) */
#anuncio .cerrar {
position: absolute;
top: 10px;
right: 15px;
font-size: 20px;
cursor: pointer;
border: none;
background: none;
font-weight: bold;
}

#anuncio img {
width: 100%;
height: auto;
border-radius: 8px;
}