Skip to content

Commit

Permalink
Merge branch 'master' of https://github.com/olga3emes/IIernaStaff
Browse files Browse the repository at this point in the history
  • Loading branch information
martaboso98 committed Feb 19, 2024
2 parents 92a7b70 + 680cfbf commit 4069d59
Show file tree
Hide file tree
Showing 4 changed files with 44 additions and 17 deletions.
Binary file modified Resources/img/cosasTCAE/fondo.jpg
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 Resources/img/cosasTCAE/fondo.webp
Binary file not shown.
32 changes: 31 additions & 1 deletion css/TCAE.css
Original file line number Diff line number Diff line change
@@ -1,4 +1,34 @@
.tab {
body {
background-position: center;
background-image: url("../Resources/img/cosasTCAE/fondo.jpg");
background-repeat: repeat;

}

.background-img {

background-repeat: repeat;
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
z-index: -1;
opacity: 0.5;
}

/* Estilo para el contenedor de las tarjetas */
.card-container {
position: relative;
z-index: 1; /* Asegura que las tarjetas estén por encima de la imagen de fondo */
}

.card {
width: 600px; /* Ancho aumentado */
max-width: 90%; /* Para que no exceda el ancho de la pantalla en dispositivos pequeños */
border: 1px solid #ace8e9;
border-radius: 15px; /* Bordes redondeados */
margin: 20px auto;
cursor: pointer;
}

Expand Down
29 changes: 13 additions & 16 deletions js/TCAE.js
Original file line number Diff line number Diff line change
@@ -1,16 +1,13 @@
document.addEventListener("DOMContentLoaded", function() {
var tabs = document.querySelectorAll(".tab");
tabs.forEach(function(tab) {
tab.addEventListener("click", function() {
var tabId = this.getAttribute("data-tab");
var infoTabs = document.querySelectorAll(".info");
infoTabs.forEach(function(infoTab) {
if (infoTab.getAttribute("id") === tabId) {
infoTab.style.display = "block";
} else {
infoTab.style.display = "none";
}
});
});
});
});
"use strict"

function toggleCardBody(cardId) {
// Ocultar todas las tarjetas
var cards = document.querySelectorAll('.card-body');
cards.forEach(function(card) {
card.style.display = 'none';
});

// Mostrar la tarjeta seleccionada
var selectedCard = document.querySelector('#' + cardId);
selectedCard.style.display = 'block';
}

0 comments on commit 4069d59

Please sign in to comment.