Spaces:
Running
Running
Quiero que al igual que al darle al boton demitología me aparece su seccion, la darle al resto de botones (lectura, musica, etimologia, idiomas) aparezcan sus secciones. Y todas completas
Browse files- index.html +32 -36
- script.js +3 -0
- style.css +5 -1
index.html
CHANGED
|
@@ -91,41 +91,41 @@
|
|
| 91 |
<p class="text-center text-lg text-gray-700 mb-12 max-w-2xl mx-auto hovered-element" data-i18n="blog_subtitle">
|
| 92 |
El mundo que me inspira y enriquece mi trabajo como traductora
|
| 93 |
</p>
|
| 94 |
-
<div class="max-w-6xl mx-auto">
|
| 95 |
-
|
| 96 |
-
|
| 97 |
-
|
| 98 |
-
|
| 99 |
-
|
| 100 |
-
|
| 101 |
-
|
| 102 |
-
|
| 103 |
-
|
| 104 |
-
|
| 105 |
-
|
| 106 |
-
|
| 107 |
-
|
| 108 |
-
|
| 109 |
-
|
| 110 |
-
|
| 111 |
-
|
| 112 |
-
|
| 113 |
-
|
| 114 |
-
|
| 115 |
-
|
| 116 |
-
|
| 117 |
<!-- Mythology Content -->
|
| 118 |
<div class="bg-white rounded-xl shadow-lg p-8 md:p-12 mb-12" data-category-content="mitologia">
|
| 119 |
-
|
| 120 |
<div>
|
| 121 |
<h3 class="text-3xl font-playfair font-bold mb-4 text-gray-900" data-i18n="blog_mythology_title">El Poder de los Mitos</h3>
|
| 122 |
<p class="text-lg leading-relaxed mb-4" data-i18n="blog_mythology_p1">
|
| 123 |
La mitología ha sido mi pasión desde la infancia. Los mitos antiguos no son solo historias fascinantes, sino ventanas a la comprensión de diferentes culturas y la psique humana.
|
| 124 |
-
|
| 125 |
-
<p class="text-lg leading-relaxed mb-4" data-i18n="blog_mythology_p2">
|
| 126 |
Cada mito encierra lecciones universales sobre el valor, el amor, la traición y la redención. Mi favorito es el mito de Orfeo y Eurídice, una historia sobre el amor que trasciende la muerte y el poder transformador de la música.
|
| 127 |
-
|
| 128 |
-
<p class="text-gray-600 italic" data-i18n="blog_mythology_quote">
|
| 129 |
"Los mitos son historias que nunca sucedieron pero siempre están sucediendo." - Salustio
|
| 130 |
</p>
|
| 131 |
</div>
|
|
@@ -134,10 +134,9 @@
|
|
| 134 |
</div>
|
| 135 |
</div>
|
| 136 |
</div>
|
| 137 |
-
|
| 138 |
<!-- Reading Content -->
|
| 139 |
<div class="bg-white rounded-xl shadow-lg p-8 md:p-12 mb-12 hidden" data-category-content="lectura">
|
| 140 |
-
|
| 141 |
<div class="order-2 md:order-1">
|
| 142 |
<h3 class="text-3xl font-playfair font-bold mb-4 text-gray-900" data-i18n="blog_reading_title">El Universo en las Páginas</h3>
|
| 143 |
<p class="text-lg leading-relaxed mb-4" data-i18n="blog_reading_p1">
|
|
@@ -157,10 +156,9 @@
|
|
| 157 |
</div>
|
| 158 |
</div>
|
| 159 |
</div>
|
| 160 |
-
|
| 161 |
<!-- Music Content -->
|
| 162 |
<div class="bg-white rounded-xl shadow-lg p-8 md:p-12 mb-12 hidden" data-category-content="musica">
|
| 163 |
-
|
| 164 |
<div>
|
| 165 |
<h3 class="text-3xl font-playfair font-bold mb-4 text-gray-900" data-i18n="blog_music_title">El Ritmo de las Palabras</h3>
|
| 166 |
<p class="text-lg leading-relaxed mb-4" data-i18n="blog_music_p1">
|
|
@@ -180,10 +178,9 @@
|
|
| 180 |
</div>
|
| 181 |
</div>
|
| 182 |
</div>
|
| 183 |
-
|
| 184 |
<!-- Etymology Content -->
|
| 185 |
<div class="bg-white rounded-xl shadow-lg p-8 md:p-12 mb-12 hidden" data-category-content="etimologia">
|
| 186 |
-
|
| 187 |
<div class="order-2 md:order-1">
|
| 188 |
<h3 class="text-3xl font-playfair font-bold mb-4 text-gray-900" data-i18n="blog_etymology_title">Raíces y Evolución</h3>
|
| 189 |
<p class="text-lg leading-relaxed mb-4" data-i18n="blog_etymology_p1">
|
|
@@ -203,10 +200,9 @@
|
|
| 203 |
</div>
|
| 204 |
</div>
|
| 205 |
</div>
|
| 206 |
-
|
| 207 |
<!-- Languages Content -->
|
| 208 |
<div class="bg-white rounded-xl shadow-lg p-8 md:p-12 mb-12 hidden" data-category-content="idiomas">
|
| 209 |
-
|
| 210 |
<div>
|
| 211 |
<h3 class="text-3xl font-playfair font-bold mb-4 text-gray-900" data-i18n="blog_languages_title">Puentes entre Culturas</h3>
|
| 212 |
<p class="text-lg leading-relaxed mb-4" data-i18n="blog_languages_p1">
|
|
|
|
| 91 |
<p class="text-center text-lg text-gray-700 mb-12 max-w-2xl mx-auto hovered-element" data-i18n="blog_subtitle">
|
| 92 |
El mundo que me inspira y enriquece mi trabajo como traductora
|
| 93 |
</p>
|
| 94 |
+
<div class="max-w-6xl mx-auto">
|
| 95 |
+
<div class="flex flex-wrap justify-center gap-2 mb-8">
|
| 96 |
+
<button data-category="mitologia" class="category-btn active-category flex items-center gap-2 px-4 py-2 bg-amber-700 text-white rounded-lg font-medium">
|
| 97 |
+
<i data-feather="award" class="w-4 h-4"></i>
|
| 98 |
+
<span>Mitología</span>
|
| 99 |
+
</button>
|
| 100 |
+
<button data-category="lectura" class="category-btn flex items-center gap-2 px-4 py-2 bg-white text-gray-700 rounded-lg font-medium">
|
| 101 |
+
<i data-feather="book-open" class="w-4 h-4"></i>
|
| 102 |
+
<span>Lectura</span>
|
| 103 |
+
</button>
|
| 104 |
+
<button data-category="musica" class="category-btn flex items-center gap-2 px-4 py-2 bg-white text-gray-700 rounded-lg font-medium">
|
| 105 |
+
<i data-feather="music" class="w-4 h-4"></i>
|
| 106 |
+
<span data-i18n="blog_music">Música</span>
|
| 107 |
+
</button>
|
| 108 |
+
<button data-category="etimologia" class="category-btn flex items-center gap-2 px-4 py-2 bg-white text-gray-700 rounded-lg font-medium">
|
| 109 |
+
<i data-feather="type" class="w-4 h-4"></i>
|
| 110 |
+
<span data-i18n="blog_etymology">Etimología</span>
|
| 111 |
+
</button>
|
| 112 |
+
<button data-category="idiomas" class="category-btn flex items-center gap-2 px-4 py-2 bg-white text-gray-700 rounded-lg font-medium">
|
| 113 |
+
<i data-feather="globe" class="w-4 h-4"></i>
|
| 114 |
+
<span data-i18n="blog_languages">Idiomas</span>
|
| 115 |
+
</button>
|
| 116 |
+
</div>
|
| 117 |
<!-- Mythology Content -->
|
| 118 |
<div class="bg-white rounded-xl shadow-lg p-8 md:p-12 mb-12" data-category-content="mitologia">
|
| 119 |
+
<div class="grid md:grid-cols-2 gap-8 items-center">
|
| 120 |
<div>
|
| 121 |
<h3 class="text-3xl font-playfair font-bold mb-4 text-gray-900" data-i18n="blog_mythology_title">El Poder de los Mitos</h3>
|
| 122 |
<p class="text-lg leading-relaxed mb-4" data-i18n="blog_mythology_p1">
|
| 123 |
La mitología ha sido mi pasión desde la infancia. Los mitos antiguos no son solo historias fascinantes, sino ventanas a la comprensión de diferentes culturas y la psique humana.
|
| 124 |
+
</p>
|
| 125 |
+
<p class="text-lg leading-relaxed mb-4" data-i18n="blog_mythology_p2">
|
| 126 |
Cada mito encierra lecciones universales sobre el valor, el amor, la traición y la redención. Mi favorito es el mito de Orfeo y Eurídice, una historia sobre el amor que trasciende la muerte y el poder transformador de la música.
|
| 127 |
+
</p>
|
| 128 |
+
<p class="text-gray-600 italic" data-i18n="blog_mythology_quote">
|
| 129 |
"Los mitos son historias que nunca sucedieron pero siempre están sucediendo." - Salustio
|
| 130 |
</p>
|
| 131 |
</div>
|
|
|
|
| 134 |
</div>
|
| 135 |
</div>
|
| 136 |
</div>
|
|
|
|
| 137 |
<!-- Reading Content -->
|
| 138 |
<div class="bg-white rounded-xl shadow-lg p-8 md:p-12 mb-12 hidden" data-category-content="lectura">
|
| 139 |
+
<div class="grid md:grid-cols-2 gap-8 items-center">
|
| 140 |
<div class="order-2 md:order-1">
|
| 141 |
<h3 class="text-3xl font-playfair font-bold mb-4 text-gray-900" data-i18n="blog_reading_title">El Universo en las Páginas</h3>
|
| 142 |
<p class="text-lg leading-relaxed mb-4" data-i18n="blog_reading_p1">
|
|
|
|
| 156 |
</div>
|
| 157 |
</div>
|
| 158 |
</div>
|
|
|
|
| 159 |
<!-- Music Content -->
|
| 160 |
<div class="bg-white rounded-xl shadow-lg p-8 md:p-12 mb-12 hidden" data-category-content="musica">
|
| 161 |
+
<div class="grid md:grid-cols-2 gap-8 items-center">
|
| 162 |
<div>
|
| 163 |
<h3 class="text-3xl font-playfair font-bold mb-4 text-gray-900" data-i18n="blog_music_title">El Ritmo de las Palabras</h3>
|
| 164 |
<p class="text-lg leading-relaxed mb-4" data-i18n="blog_music_p1">
|
|
|
|
| 178 |
</div>
|
| 179 |
</div>
|
| 180 |
</div>
|
|
|
|
| 181 |
<!-- Etymology Content -->
|
| 182 |
<div class="bg-white rounded-xl shadow-lg p-8 md:p-12 mb-12 hidden" data-category-content="etimologia">
|
| 183 |
+
<div class="grid md:grid-cols-2 gap-8 items-center">
|
| 184 |
<div class="order-2 md:order-1">
|
| 185 |
<h3 class="text-3xl font-playfair font-bold mb-4 text-gray-900" data-i18n="blog_etymology_title">Raíces y Evolución</h3>
|
| 186 |
<p class="text-lg leading-relaxed mb-4" data-i18n="blog_etymology_p1">
|
|
|
|
| 200 |
</div>
|
| 201 |
</div>
|
| 202 |
</div>
|
|
|
|
| 203 |
<!-- Languages Content -->
|
| 204 |
<div class="bg-white rounded-xl shadow-lg p-8 md:p-12 mb-12 hidden" data-category-content="idiomas">
|
| 205 |
+
<div class="grid md:grid-cols-2 gap-8 items-center">
|
| 206 |
<div>
|
| 207 |
<h3 class="text-3xl font-playfair font-bold mb-4 text-gray-900" data-i18n="blog_languages_title">Puentes entre Culturas</h3>
|
| 208 |
<p class="text-lg leading-relaxed mb-4" data-i18n="blog_languages_p1">
|
script.js
CHANGED
|
@@ -38,6 +38,9 @@ document.addEventListener('DOMContentLoaded', function() {
|
|
| 38 |
content.classList.add('hidden');
|
| 39 |
}
|
| 40 |
});
|
|
|
|
|
|
|
|
|
|
| 41 |
});
|
| 42 |
});
|
| 43 |
// Form submission handling
|
|
|
|
| 38 |
content.classList.add('hidden');
|
| 39 |
}
|
| 40 |
});
|
| 41 |
+
|
| 42 |
+
// Replace feather icons
|
| 43 |
+
feather.replace();
|
| 44 |
});
|
| 45 |
});
|
| 46 |
// Form submission handling
|
style.css
CHANGED
|
@@ -110,13 +110,17 @@ body {
|
|
| 110 |
background-color: #f3f4f6 !important;
|
| 111 |
box-shadow: 0 4px 6px rgba(0,0,0,0.1);
|
| 112 |
}
|
| 113 |
-
|
| 114 |
/* Category Content */
|
| 115 |
[data-category-content] {
|
| 116 |
display: none;
|
|
|
|
| 117 |
}
|
| 118 |
|
| 119 |
[data-category-content="mitologia"] {
|
| 120 |
display: block;
|
| 121 |
}
|
| 122 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 110 |
background-color: #f3f4f6 !important;
|
| 111 |
box-shadow: 0 4px 6px rgba(0,0,0,0.1);
|
| 112 |
}
|
|
|
|
| 113 |
/* Category Content */
|
| 114 |
[data-category-content] {
|
| 115 |
display: none;
|
| 116 |
+
animation: fadeIn 0.5s ease-out;
|
| 117 |
}
|
| 118 |
|
| 119 |
[data-category-content="mitologia"] {
|
| 120 |
display: block;
|
| 121 |
}
|
| 122 |
|
| 123 |
+
@keyframes fadeIn {
|
| 124 |
+
from { opacity: 0; transform: translateY(10px); }
|
| 125 |
+
to { opacity: 1; transform: translateY(0); }
|
| 126 |
+
}
|